public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: section names for m68k assembler routines, .text.init -> .init.text
@ 2004-08-05  5:16 Greg Ungerer
  0 siblings, 0 replies; only message in thread
From: Greg Ungerer @ 2004-08-05  5:16 UTC (permalink / raw)
  To: linux-m68k, linux-kernel


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@snapgear.com>

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@snapgear.com
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-05  5:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-05  5:16 [PATCH]: section names for m68k assembler routines, .text.init -> .init.text Greg Ungerer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox