]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Inhibit harmless ld warning on unresolved symbol check
authorMichael Brown <mcb30@etherboot.org>
Mon, 5 Jan 2009 20:54:40 +0000 (12:54 -0800)
committerMichael Brown <mcb30@etherboot.org>
Mon, 5 Jan 2009 20:54:40 +0000 (12:54 -0800)
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.

src/arch/i386/Makefile.efi
src/arch/x86_64/Makefile.efi

index f1eb6fdf054ccb3b93502dd5dc58826d1b271844..fec7a407404e0e70baca18eb1be9e839c1ea6e5f 100644 (file)
@@ -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
index 7e07088de3113e8bf5e396f6a9a01a7aba95984f..9b9b373ff609086ab3e19b090510eb0f7483f40e 100644 (file)
@@ -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