mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
[efi] Inhibit harmless ld warning on unresolved symbol check
The check for unresolved symbols does not explicitly specify an output architecture format, and so causes a warning when building an i386 EFI binary on an x86_64 platform. This warning is harmless, and specifying the output architecture in multiple places is cumbersome, so just inhibit the warning.
This commit is contained in:
@@ -16,7 +16,8 @@ NON_AUTO_MEDIA += efi
|
||||
#
|
||||
$(BIN)/%.efi.tmp-reloc : $(BIN)/%.efi.tmp $(EFILINK)
|
||||
$(QM)$(ECHO) " [EFILINK] $@"
|
||||
$(Q)$(LD) -e 0 -o /dev/null $< # Check for unresolved symbols
|
||||
$(Q)# Check for unresolved symbols
|
||||
$(Q)$(LD) -e 0 --no-warn-mismatch -o /dev/null $<
|
||||
$(Q)$(EFILINK) $< $@
|
||||
|
||||
$(BIN)/%.efi : $(BIN)/%.efi.tmp-reloc
|
||||
|
||||
@@ -20,7 +20,8 @@ NON_AUTO_MEDIA += efi
|
||||
#
|
||||
$(BIN)/%.efi.tmp-reloc : $(BIN)/%.efi.tmp $(EFILINK)
|
||||
$(QM)$(ECHO) " [EFILINK] $@"
|
||||
$(Q)$(LD) -e 0 -o /dev/null $< # Check for unresolved symbols
|
||||
$(Q)# Check for unresolved symbols
|
||||
$(Q)$(LD) -e 0 --no-warn-mismatch -o /dev/null $<
|
||||
$(Q)$(EFILINK) $< $@
|
||||
|
||||
$(BIN)/%.efi : $(BIN)/%.efi.tmp-reloc
|
||||
|
||||
Reference in New Issue
Block a user