From 6fe75997315a347c6fd610d0fd3b62b561e65c59 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 31 Jan 2012 16:52:13 +0200 Subject: [PATCH] kvm tools, bios: Don't specify ELF PHDRs The BIOS ROM is a flat binary so there's no need to specify ELF Program Headers. Cc: Ingo Molnar Cc: Sasha Levin Cc: Cyrill Gorcunov Signed-off-by: Pekka Enberg --- tools/kvm/x86/bios/rom.ld.S | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/tools/kvm/x86/bios/rom.ld.S b/tools/kvm/x86/bios/rom.ld.S index f122b9781f4e..98c53aa352a7 100644 --- a/tools/kvm/x86/bios/rom.ld.S +++ b/tools/kvm/x86/bios/rom.ld.S @@ -1,17 +1,10 @@ OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") OUTPUT_ARCH(i386) -PHDRS { - text PT_LOAD FLAGS(5); /* R_E */ - data PT_LOAD FLAGS(7); /* RWE */ - user PT_LOAD FLAGS(5); /* R_E */ - percpu PT_LOAD FLAGS(6); /* RW_ */ - init PT_LOAD FLAGS(7); /* RWE */ - note PT_NOTE FLAGS(0); /* ___ */ -} - SECTIONS { . = 0; - .text : { *(.text) } :text = 0x9090 + .text : { + *(.text) + } } -- 2.39.5