From a1dbb0adbd94a1b621ded85229fee3a4daf2e59d Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 8 Mar 2012 17:36:10 +0400 Subject: [PATCH] kvm tools, x86: Drop unneeded sections in rom building script 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 Signed-off-by: Cyrill Gorcunov Signed-off-by: Pekka Enberg --- x86/bios/rom.ld.S | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/x86/bios/rom.ld.S b/x86/bios/rom.ld.S index 98c53aa..f4f1835 100644 --- a/x86/bios/rom.ld.S +++ b/x86/bios/rom.ld.S @@ -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*) + } }