]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Fix .efi and .efidrv linking
authorPiotr Jaroszyński <p.jaroszynski@gmail.com>
Tue, 30 Mar 2010 16:18:43 +0000 (18:18 +0200)
committerMichael Brown <mcb30@ipxe.org>
Thu, 27 May 2010 09:38:12 +0000 (10:38 +0100)
commitc68839d4d69742ac21c430aca8a9a4de81dd6ca5
treee5cc42d7e05387c02bab34e060502adf782e2e2d
parent7c6d3752c966758b0fb369d73bae59909aaa9ec1
[efi] Fix .efi and .efidrv linking

The linker chooses to look for _start first and always picks
efidrvprefix.o to satisfy it (probably because it's earlier in the
archive) which causes a multiple definition error when the linker
later has to pick efiprefix.o for other symbols.

Fix by using EFI-specific TGT_LD_FLAGS with an explicit entry point.

Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com>
Signed-off-by: Joshua Oreman <oremanj@rwcr.net>
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/Makefile.housekeeping
src/arch/x86/Makefile.efi
src/arch/x86/prefix/efidrvprefix.c
src/arch/x86/prefix/efiprefix.c
src/arch/x86/scripts/efi.lds