[PATCH kvm-unit-tests] x86: add explicit ENTRY() declaration to linker scripts

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

 



It appears that some toolchain update caused the entry address in
the elf image to be zero.  Add explicit ENTRY() declarations as a
workaround.

Signed-off-by: Avi Kivity <avi@xxxxxxxxxx>
---
 flat.lds         | 1 +
 x86/realmode.lds | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/flat.lds b/flat.lds
index 4888f3a..a278b56 100644
--- a/flat.lds
+++ b/flat.lds
@@ -18,3 +18,4 @@ SECTIONS
     edata = .;
 }
 
+ENTRY(start)
diff --git a/x86/realmode.lds b/x86/realmode.lds
index c7386b8..0ed3063 100644
--- a/x86/realmode.lds
+++ b/x86/realmode.lds
@@ -9,4 +9,4 @@ SECTIONS
     .bss : { *(.bss) }
     edata = .;
 }
-
+ENTRY(start)
-- 
1.7.11.3

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux