]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools, x86: Drop unneeded sections in rom building script
authorCyrill Gorcunov <gorcunov@openvz.org>
Thu, 8 Mar 2012 13:36:10 +0000 (17:36 +0400)
committerPekka Enberg <penberg@kernel.org>
Thu, 8 Mar 2012 13:51:06 +0000 (15:51 +0200)
Otherwise overlaps might happen (and actually having anything but .text
here at moment make no sense) and it triggers the following error on
Golden ld

 # ld: error: load segment overlap [0x0 -> 0x38c] and [0x0 -> 0x0]

Reported-and-tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/x86/bios/rom.ld.S

index 98c53aa352a7a074961d38f2b32bbeacb1b5364d..f4f183579327c25fae36e7627261d50d1027010b 100644 (file)
@@ -2,9 +2,15 @@ OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
 OUTPUT_ARCH(i386)
 
 SECTIONS {
-       . = 0;
-       .text : {
+       .text 0 : {
                *(.text)
        }
+
+       /DISCARD/ : {
+               *(.debug*)
+               *(.data)
+               *(.bss)
+               *(.eh_frame*)
+       }
 }