svn commit: r276146 - in head/sys/boot/amd64: boot1.efi efi
Ed Maste
emaste at FreeBSD.org
Tue Dec 23 15:58:46 UTC 2014
Author: emaste
Date: Tue Dec 23 15:58:45 2014
New Revision: 276146
URL: https://svnweb.freebsd.org/changeset/base/276146
Log:
Use explicit --output-target to set EFI file format
According to objcopy(1) --target is for use where the input and output
formats are the same ("no translation"). In practice it does detect the
input format in any case, but be explicit that we're specifying the
output format as we are translating from ELF to EFI PE format.
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/boot/amd64/boot1.efi/Makefile
head/sys/boot/amd64/efi/Makefile
Modified: head/sys/boot/amd64/boot1.efi/Makefile
==============================================================================
--- head/sys/boot/amd64/boot1.efi/Makefile Tue Dec 23 15:42:34 2014 (r276145)
+++ head/sys/boot/amd64/boot1.efi/Makefile Tue Dec 23 15:58:45 2014 (r276146)
@@ -51,7 +51,7 @@ boot1.efi: loader.sym
${OBJCOPY} -j .text -j .sdata -j .data \
-j .dynamic -j .dynsym -j .rel.dyn \
-j .rela.dyn -j .reloc -j .eh_frame -j set_Xcommand_set \
- --target=${EFI_TARGET} ${.ALLSRC} ${.TARGET}
+ --output-target=${EFI_TARGET} ${.ALLSRC} ${.TARGET}
CFLAGS+= -I${.CURDIR}/../../common
Modified: head/sys/boot/amd64/efi/Makefile
==============================================================================
--- head/sys/boot/amd64/efi/Makefile Tue Dec 23 15:42:34 2014 (r276145)
+++ head/sys/boot/amd64/efi/Makefile Tue Dec 23 15:58:45 2014 (r276146)
@@ -81,7 +81,7 @@ loader.efi: loader.sym
${OBJCOPY} -j .text -j .sdata -j .data \
-j .dynamic -j .dynsym -j .rel.dyn \
-j .rela.dyn -j .reloc -j .eh_frame -j set_Xcommand_set \
- --target=${EFI_TARGET} ${.ALLSRC} ${.TARGET}
+ --output-target=${EFI_TARGET} ${.ALLSRC} ${.TARGET}
LIBEFI= ${.OBJDIR}/../../efi/libefi/libefi.a
CFLAGS+= -I${.CURDIR}/../../common
More information about the svn-src-head
mailing list