summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2015-12-21 19:40:32 +0000
committeremaste <emaste@FreeBSD.org>2015-12-21 19:40:32 +0000
commitfc1a3087a9b9b1a0b3d7c7d8729d5eac43dd12b7 (patch)
treea37c39b1c317dd3996660fcf468a41e4a5cae87c /sys/boot
parenta989874001d0c4a0dc8a628f98b7bef8fe8c3b4a (diff)
downloadFreeBSD-src-fc1a3087a9b9b1a0b3d7c7d8729d5eac43dd12b7.zip
FreeBSD-src-fc1a3087a9b9b1a0b3d7c7d8729d5eac43dd12b7.tar.gz
MFC r276146: 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
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/amd64/boot1.efi/Makefile2
-rw-r--r--sys/boot/amd64/efi/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/amd64/boot1.efi/Makefile b/sys/boot/amd64/boot1.efi/Makefile
index 3e3bc9f..dd8eaf9 100644
--- a/sys/boot/amd64/boot1.efi/Makefile
+++ b/sys/boot/amd64/boot1.efi/Makefile
@@ -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
diff --git a/sys/boot/amd64/efi/Makefile b/sys/boot/amd64/efi/Makefile
index bb32623..29e5389 100644
--- a/sys/boot/amd64/efi/Makefile
+++ b/sys/boot/amd64/efi/Makefile
@@ -92,7 +92,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
OpenPOWER on IntegriCloud