From: Michael Brown Date: Mon, 5 Jan 2009 20:54:40 +0000 (-0800) Subject: [efi] Inhibit harmless ld warning on unresolved symbol check X-Git-Tag: v0.9.7~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21cfab4fb86d6313413097a54528dfd841b3e8e1;p=thirdparty%2Fipxe.git [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. --- diff --git a/src/arch/i386/Makefile.efi b/src/arch/i386/Makefile.efi index f1eb6fdf0..fec7a4074 100644 --- a/src/arch/i386/Makefile.efi +++ b/src/arch/i386/Makefile.efi @@ -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 diff --git a/src/arch/x86_64/Makefile.efi b/src/arch/x86_64/Makefile.efi index 7e07088de..9b9b373ff 100644 --- a/src/arch/x86_64/Makefile.efi +++ b/src/arch/x86_64/Makefile.efi @@ -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