Explorar el Código

[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.
tags/v0.9.7
Michael Brown hace 15 años
padre
commit
21cfab4fb8
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. 2
    1
      src/arch/i386/Makefile.efi
  2. 2
    1
      src/arch/x86_64/Makefile.efi

+ 2
- 1
src/arch/i386/Makefile.efi Ver fichero

@@ -16,7 +16,8 @@ NON_AUTO_MEDIA	+= efi
16 16
 #
17 17
 $(BIN)/%.efi.tmp-reloc : $(BIN)/%.efi.tmp $(EFILINK)
18 18
 	$(QM)$(ECHO) "  [EFILINK] $@"
19
-	$(Q)$(LD) -e 0 -o /dev/null $< # Check for unresolved symbols
19
+	$(Q)# Check for unresolved symbols
20
+	$(Q)$(LD) -e 0 --no-warn-mismatch -o /dev/null $<
20 21
 	$(Q)$(EFILINK) $< $@
21 22
 
22 23
 $(BIN)/%.efi : $(BIN)/%.efi.tmp-reloc

+ 2
- 1
src/arch/x86_64/Makefile.efi Ver fichero

@@ -20,7 +20,8 @@ NON_AUTO_MEDIA	+= efi
20 20
 #
21 21
 $(BIN)/%.efi.tmp-reloc : $(BIN)/%.efi.tmp $(EFILINK)
22 22
 	$(QM)$(ECHO) "  [EFILINK] $@"
23
-	$(Q)$(LD) -e 0 -o /dev/null $< # Check for unresolved symbols
23
+	$(Q)# Check for unresolved symbols
24
+	$(Q)$(LD) -e 0 --no-warn-mismatch -o /dev/null $<
24 25
 	$(Q)$(EFILINK) $< $@
25 26
 
26 27
 $(BIN)/%.efi : $(BIN)/%.efi.tmp-reloc

Loading…
Cancelar
Guardar