Skip to content

Commit

Permalink
[efi] Inhibit harmless ld warning on unresolved symbol check
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Michael Brown committed Jan 5, 2009
1 parent 53a7dd2 commit 21cfab4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/arch/i386/Makefile.efi
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/arch/x86_64/Makefile.efi
Expand Up @@ -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
Expand Down

0 comments on commit 21cfab4

Please sign in to comment.