Skip to contentSkip to conversation

: section names for m68k assembler routines, .text.init -> .init.text

PATCH New Greg Ungerer 1 participant 1 message Aug 5, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : section names for m68k assembler routines, .text.init -> .init.text

Hi All,

In linux-2.6.7...

The section specifiers in the include/asm-m68k/init.h are not the same as those used in the linker scripts. It currently has .text.init while the linker scripts use .init.text. Same goes for .data.init and .init.data. Looks like the init.h is out of date...

Regards
Greg

include/asm-m68k/init.h 2004-08-05 14:52:23.000000000 +1000 renamed from include/asm-m68k/init.h.org 2002-02-28 09:01:48.000000000 +1000 +4 -4
@@ -1,11 +1,11 @@
 #ifndef _M68K_INIT_H
 #define _M68K_INIT_H
 
-#define __init __attribute__ ((__section__ (".text.init")))
-#define __initdata __attribute__ ((__section__ (".data.init")))
+#define __init __attribute__ ((__section__ (".init.text")))
+#define __initdata __attribute__ ((__section__ (".init.data")))
 /* For assembly routines */
-#define __INIT         .section        ".text.init",#alloc,#execinstr
+#define __INIT         .section        ".init.text",#alloc,#execinstr
 #define __FINIT                .previous
-#define __INITDATA     .section        ".data.init",#alloc,#write
+#define __INITDATA     .section        ".init.data",#alloc,#write
 
 #endif

------------------------------------------------------------------------

Greg Ungerer  --  Chief Software Dude       EMAIL:     [email protected]
SnapGear -- a CyberGuard Company            PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com