Skip to contentSkip to conversation

x86: add explicit ENTRY() declaration to linker scripts

PATCH New Avi Kivity 1 participant 1 message Aug 22, 2012 KVM

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

PATCH 1/1 x86: add explicit ENTRY() declaration to linker scripts

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

---
 flat.lds         | 1 +
 x86/realmode.lds | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
flat.lds +1 -0
index 4888f3a..a278b56 100644
@@ -18,3 +18,4 @@ SECTIONS
     edata = .;
 }
 
+ENTRY(start)
x86/realmode.lds +1 -1
index c7386b8..0ed3063 100644
@@ -9,4 +9,4 @@ SECTIONS
     .bss : { *(.bss) }
     edata = .;
 }
-
+ENTRY(start)
Signature · 1 line
1.7.11.3