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

From: Greg Ungerer
Date: Thu Aug 05 2004 - 00:18:31 EST



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...

Signed-of-by: Greg Ungerer <gerg@xxxxxxxxxxxx>

Regards
Greg



--- linux-2.6.x/include/asm-m68k/init.h.org 2002-02-28 09:01:48.000000000 +1000
+++ linux-2.6.x/include/asm-m68k/init.h 2004-08-05 14:52:23.000000000 +1000
@@ -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: gerg@xxxxxxxxxxxx
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/