diff options
author | Ed Maste <emaste@FreeBSD.org> | 2014-12-01 17:49:42 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2014-12-01 17:49:42 +0000 |
commit | 31942939034ecc9586d0e44f1c9ce30d0816dca9 (patch) | |
tree | b5191de270f7e85906a95d316dda5b037968fa58 /usr.bin/elfcopy | |
parent | 6afb32fc67fa07a0cae683ef3fffe318e1e983df (diff) | |
download | src-31942939034ecc9586d0e44f1c9ce30d0816dca9.tar.gz src-31942939034ecc9586d0e44f1c9ce30d0816dca9.zip |
Build infrastructure for elftoolchain tools
Set WITH_ELFTOOLCHAIN_TOOLS in src.conf to use the elftoolchain version
of the following tools:
* addr2line
* elfcopy (strip / mcs)
* nm
* size
* strings
Reviewed by: bapt (earlier version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1224
Notes
Notes:
svn path=/head/; revision=275373
Diffstat (limited to 'usr.bin/elfcopy')
-rw-r--r-- | usr.bin/elfcopy/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/usr.bin/elfcopy/Makefile b/usr.bin/elfcopy/Makefile new file mode 100644 index 000000000000..8e7f31d2b9bd --- /dev/null +++ b/usr.bin/elfcopy/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +.include <src.opts.mk> + +ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain +ELFCOPYDIR= ${ELFTCDIR}/elfcopy + +.PATH: ${ELFCOPYDIR} + +PROG= elfcopy + +SRCS= archive.c ascii.c binary.c main.c sections.c segments.c symbols.c + +WARNS?= 5 + +LIBADD= archive elftc elf + +CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common + +MAN= elfcopy.1 strip.1 + +LINKS= ${BINDIR}/elfcopy ${BINDIR}/strip + +.include <bsd.prog.mk> |