mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 04:28:12 +03:00
[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>
This commit is contained in:
committed by
Michael Brown
parent
7c6d3752c9
commit
c68839d4d6
@@ -29,8 +29,8 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
* @v systab System table
|
||||
* @ret efirc EFI return status code
|
||||
*/
|
||||
EFI_STATUS EFIAPI _start ( EFI_HANDLE image_handle,
|
||||
EFI_SYSTEM_TABLE *systab ) {
|
||||
EFI_STATUS EFIAPI _efidrv_start ( EFI_HANDLE image_handle,
|
||||
EFI_SYSTEM_TABLE *systab ) {
|
||||
EFI_STATUS efirc;
|
||||
|
||||
/* Initialise EFI environment */
|
||||
|
||||
Reference in New Issue
Block a user