[build] Ensure an entry point symbol exists in all builds

Commit 623469d ("[build] Eliminate unused sections at link-time")
introduced a regression in several build formats, in which the prefix
would end up being garbage-collected out of existence.  Fix by
ensuring that an entry symbol exists in each possible prefix, and is
required by the linker script.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2011-02-23 20:20:55 +00:00
parent 7ef314514c
commit 295c2fd671
7 changed files with 16 additions and 3 deletions

View File

@@ -27,6 +27,8 @@ FILE_LICENCE ( GPL2_ONLY )
.text
.section ".prefix", "ax", @progbits
.code16
.globl start
start:
jmp $BOOTSEG, $go /* reload cs:ip to match relocation addr */
go: