Skip to contentSkip to conversation

add __[start|end]_rodata sections to asm-generic/sections.h

PATCH In review Heiko Carstens 2 participants 2 messages Jun 30, 2006 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 add __[start|end]_rodata sections to asm-generic/sections.h

From: Heiko Carstens <[email protected]>

Add __start_rodata and __end_rodata to sections.h to avoid extern declarations. Needed by s390 code (see following patch).

Cc Arjan van de Ven <[email protected]>
Cc Martin Schwidefsky <[email protected]>

---

 include/asm-generic/sections.h |    1 +
 1 file changed, 1 insertion(+)
include/asm-generic/sections.h +1 -0
index 0b49f9e..962cad7 100644
@@ -14,5 +14,6 @@ extern char _end[];
 extern char __per_cpu_start[], __per_cpu_end[];
 extern char __kprobes_text_start[], __kprobes_text_end[];
 extern char __initdata_begin[], __initdata_end[];
+extern char __start_rodata[], __end_rodata[];
 
 #endif /* _ASM_GENERIC_SECTIONS_H_ */
#1 lore raw
Quoted 18 lines · On Fri, 30 Jun 2006 11:03:21 +0200 Heiko Carstens <[email protected]>…

From: Heiko Carstens <[email protected]>

Add __start_rodata and __end_rodata to sections.h to avoid extern declarations. Needed by s390 code (see following patch).

Cc Arjan van de Ven <[email protected]>
Cc Martin Schwidefsky <[email protected]>

---

 include/asm-generic/sections.h |    1 +
 1 file changed, 1 insertion(+)
include/asm-generic/sections.h +0 -0
index 0b49f9e..962cad7 100644

include/asm-generic/sections.h extern char _end[]; · line 18

Quoted 5 lines
include/asm-generic/sections.h +1 -0
@@ -14,5 +14,6 @@ extern char _end[];
 extern char __per_cpu_start[], __per_cpu_end[];
 extern char __kprobes_text_start[], __kprobes_text_end[];
 extern char __initdata_begin[], __initdata_end[];
+extern char __start_rodata[], __end_rodata[];
 

OK. I'll queue this up and will clean up x86, parisc and x86_64 to suit.

The second patch could go via the shiny new s390 git tree if you like. Or I can handle it, but I don't know if it's a for-2.6.18 thing.