elflink: Fix boot sector booting
authorMatt Fleming <matt.fleming@intel.com>
Tue, 1 May 2012 07:55:45 +0000 (08:55 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 7 Jun 2012 13:19:20 +0000 (14:19 +0100)
commitc0d18deeee22f3466fd863d64b432660965ec66e
tree8fce613ef56efd6d112ede4e394051a99490a66f
parent4fc3fd1e14f4c1b9208ef262e5b6aef853e9fce4
elflink: Fix boot sector booting

This adds missing support for booting from a boot sector file such as
.bs, .bss or .0, by re-implementing the old asm bootsec code from
core/bootsect.inc in C.

This has resulted in some external changes. We've had to make StackBuf
a global symbol because we access it directly from execute.c. Also, we
need to move dsinfo.c into MINLIBOBJS because ldlinux now needs to
reference __syslinux_derivative_info.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/elflink/ldlinux/Makefile
com32/elflink/ldlinux/config.h
com32/elflink/ldlinux/execute.c
com32/elflink/ldlinux/loadhigh.c [moved from core/fs/loadhigh.c with 98% similarity]
com32/lib/Makefile
core/diskboot.inc
core/fs/fat/fat.c
core/include/core.h
core/include/fs.h
core/isolinux.asm
core/pxelinux.asm