Thread (5 messages) flat view 5 messages, 4 authors, 2024-02-13

Re: [PATCH] powerpc/ftrace: Ignore ftrace locations in exit text sections

From: Naveen N Rao <naveen@kernel.org>
Date: 2024-02-13 05:40:03

On Mon, Feb 12, 2024 at 07:31:03PM +0000, Christophe Leroy wrote:

Le 09/02/2024 à 08:59, Naveen N Rao a écrit :
quoted
diff --git a/arch/powerpc/include/asm/sections.h 
b/arch/powerpc/include/asm/sections.h
index ea26665f82cf..d389dcecdb0b 100644
--- a/arch/powerpc/include/asm/sections.h
+++ b/arch/powerpc/include/asm/sections.h
@@ -14,6 +14,7 @@ typedef struct func_desc func_desc_t;
  
  extern char __head_end[];
  extern char __srwx_boundary[];
+extern char _sexittext[], _eexittext[];
Should we try to at least use the same symbols as others, or best try to 
move this into include/asm-generic/sections.h, just like inittext ?
I used this name based on what is used for init text start and end in 
the generic code: _sinittext and _einittext.
$ git grep exittext
arch/arm64/include/asm/sections.h:extern char __exittext_begin[], 
__exittext_end[];
Arm64 also uses the non-standard __inittext_begin/__inittext_end, so it 
looks to be something very specific to arm64.

I do agree it would be good to refactor and unify names across 
architectures.


- Naveen
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help