diff options
author | emaste <emaste@FreeBSD.org> | 2014-12-01 17:49:42 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-12-01 17:49:42 +0000 |
commit | c79f6538fe5b1fe35382903168b76167be44db9e (patch) | |
tree | b5191de270f7e85906a95d316dda5b037968fa58 /lib/libelftc | |
parent | 1941346c9da7dde6f28d67d3053d7713294d012c (diff) | |
download | FreeBSD-src-c79f6538fe5b1fe35382903168b76167be44db9e.zip FreeBSD-src-c79f6538fe5b1fe35382903168b76167be44db9e.tar.gz |
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
Diffstat (limited to 'lib/libelftc')
-rw-r--r-- | lib/libelftc/Makefile | 30 | ||||
-rw-r--r-- | lib/libelftc/elftc_version.c | 10 |
2 files changed, 40 insertions, 0 deletions
diff --git a/lib/libelftc/Makefile b/lib/libelftc/Makefile new file mode 100644 index 0000000..ccae1a5 --- /dev/null +++ b/lib/libelftc/Makefile @@ -0,0 +1,30 @@ +# $FreeBSD$ +.include <bsd.own.mk> + +INTERNALLIB= + +ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain + +.PATH: ${ELFTCDIR}/libelftc + +LIB= elftc + +SRCS= elftc_bfdtarget.c \ + elftc_copyfile.c \ + elftc_demangle.c \ + elftc_set_timestamps.c \ + elftc_string_table.c \ + elftc_version.c \ + libelftc_bfdtarget.c \ + libelftc_dem_arm.c \ + libelftc_dem_gnu2.c \ + libelftc_dem_gnu3.c \ + libelftc_hash.c \ + libelftc_vstr.c + +INCS= libelftc.h +CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common + +NO_MAN= yes + +.include <bsd.lib.mk> diff --git a/lib/libelftc/elftc_version.c b/lib/libelftc/elftc_version.c new file mode 100644 index 0000000..f04781f --- /dev/null +++ b/lib/libelftc/elftc_version.c @@ -0,0 +1,10 @@ +/* $FreeBSD$ */ + +#include <sys/types.h> +#include <libelftc.h> + +const char * +elftc_version(void) +{ + return "libelftc r2974"; +} |