diff mbox

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

Message ID 1345646341-30676-1-git-send-email-avi@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Avi Kivity Aug. 22, 2012, 2:39 p.m. UTC
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@redhat.com>
---
 flat.lds         | 1 +
 x86/realmode.lds | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

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)