x86-32: move _end to a dummy section
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 17 Mar 2009 21:14:31 +0000 (14:14 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 17 Mar 2009 21:16:02 +0000 (14:16 -0700)
Impact: build fix with CONFIG_RELOCATABLE

Move _end into a dummy section, so that relocs.c will know it is a
relocatable symbol.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
arch/x86/kernel/vmlinux_32.lds.S

index de14973e47fd505106d3eb9773d24a34658d7d78..62ad500d55f3e18bb2a405624a5890836f805398 100644 (file)
@@ -199,7 +199,9 @@ SECTIONS
        __brk_limit = . ;
   }
 
-  _end = . ;
+  .end : AT(ADDR(.end) - LOAD_OFFSET) {
+       _end = . ;
+  }
 
   /* Sections to be discarded */
   /DISCARD/ : {