[tip:tools/kvm] kvm tools, x86: Drop unneeded sections in rom building script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  9b6361cc78b989cff56de8f16ed246e1b8aa5a27
Gitweb:     http://git.kernel.org/tip/9b6361cc78b989cff56de8f16ed246e1b8aa5a27
Author:     Cyrill Gorcunov <gorcunov@xxxxxxxxxx>
AuthorDate: Thu, 8 Mar 2012 17:36:10 +0400
Committer:  Pekka Enberg <penberg@xxxxxxxxxx>
CommitDate: Thu, 8 Mar 2012 15:51:06 +0200

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 <mingo@xxxxxxx>
Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx>
---
 tools/kvm/x86/bios/rom.ld.S |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/tools/kvm/x86/bios/rom.ld.S b/tools/kvm/x86/bios/rom.ld.S
index 98c53aa..f4f1835 100644
--- a/tools/kvm/x86/bios/rom.ld.S
+++ b/tools/kvm/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*)
+	}
 }
 
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux