aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2025-03-31 13:37:35 +0000
committerEd Maste <emaste@FreeBSD.org>2025-04-11 19:44:40 +0000
commitca0fc8ef2f97709d3dfeac54e2c762e1c6ec6559 (patch)
treec6080675a1b0a2992cc63fdd2a0aac4765a1f612
parent971e22b7793c279e1a5fe8f3f025eaffbd6b18b1 (diff)
-rw-r--r--Makefile.inc112
-rw-r--r--usr.bin/Makefile4
-rw-r--r--usr.bin/elfcopy/Makefile (renamed from usr.bin/objcopy/Makefile)0
-rw-r--r--usr.bin/elfcopy/Makefile.depend (renamed from usr.bin/objcopy/Makefile.depend)0
4 files changed, 8 insertions, 8 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index af9e4736a65a..a18d10e80f17 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2910,14 +2910,14 @@ _dtrace_tools= cddl/lib/libctf cddl/lib/libspl cddl/usr.bin/ctfconvert \
.endif
.if ${MK_ELFTOOLCHAIN_BOOTSTRAP} != "no"
-# Some bespoke tools from or based on ELF Tool Chain. objcopy (elfcopy) is
-# included because llvm-objcopy is currently not capable of translating ELF to
-# PE32+, which is required for EFI boot programs.
+# Some bespoke tools from or based on ELF Tool Chain. elfcopy is included
+# because llvm-objcopy is currently not capable of translating ELF to PE32+,
+# which is required for EFI boot programs.
_elftctools= lib/libelftc \
lib/libpe \
+ usr.bin/elfcopy \
usr.bin/elfctl \
- usr.bin/elfdump \
- usr.bin/objcopy
+ usr.bin/elfdump
# If we're given an XNM we don't need to build standard binary utilities.
.if ${XNM:M/*} == ""
_elftctools+= usr.bin/nm \
@@ -3011,7 +3011,7 @@ NXBDIRS+= \
usr.bin/cmp \
usr.bin/diff \
usr.bin/dirname \
- usr.bin/objcopy \
+ usr.bin/elfcopy \
usr.bin/env \
usr.bin/fetch \
usr.bin/find \
diff --git a/usr.bin/Makefile b/usr.bin/Makefile
index b9e4d6c1153a..87896a2c0781 100644
--- a/usr.bin/Makefile
+++ b/usr.bin/Makefile
@@ -263,14 +263,14 @@ SUBDIR.${MK_TOOLCHAIN}+= ctags
.if ${MK_LLVM_CXXFILT} == "no"
SUBDIR.${MK_TOOLCHAIN}+= cxxfilt
.endif
+# ELF Tool Chain elfcopy required for EFI objects (PR280771)
+SUBDIR.${MK_TOOLCHAIN}+= elfcopy
SUBDIR.${MK_TOOLCHAIN}+= file2c
SUBDIR.${MK_TOOLCHAIN}+= gprof
SUBDIR.${MK_TOOLCHAIN}+= indent
SUBDIR.${MK_TOOLCHAIN}+= lex
SUBDIR.${MK_TOOLCHAIN}+= lorder
SUBDIR.${MK_TOOLCHAIN}+= mkstr
-# ELF Tool Chain elfcopy required for EFI objects (PR280771)
-SUBDIR.${MK_TOOLCHAIN}+= objcopy
SUBDIR.${MK_TOOLCHAIN}+= rpcgen
SUBDIR.${MK_TOOLCHAIN}+= unifdef
SUBDIR.${MK_TOOLCHAIN}+= xstr
diff --git a/usr.bin/objcopy/Makefile b/usr.bin/elfcopy/Makefile
index 2f3386d95ebe..2f3386d95ebe 100644
--- a/usr.bin/objcopy/Makefile
+++ b/usr.bin/elfcopy/Makefile
diff --git a/usr.bin/objcopy/Makefile.depend b/usr.bin/elfcopy/Makefile.depend
index 898aa8b2b146..898aa8b2b146 100644
--- a/usr.bin/objcopy/Makefile.depend
+++ b/usr.bin/elfcopy/Makefile.depend