- addr2line
- elfcopy / strip / mcs
- nm
- size
- strings
Details
- Reviewers
bapt bdrewery - Commits
- rS275373: Build infrastructure for elftoolchain tools
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Right now this will install strip as bsdstrip, along with elfcopy and mcs. We can probably do without the latter.
My goal would be to bring in later on size, strings, and nm, and add a knob to use them instead of the GNU counterparts.
lib/libelftc/elftc_version.c | ||
---|---|---|
8 | Will change to "r3076" |
contrib/elftoolchain/elfcopy/Makefile | ||
---|---|---|
12 ↗ | (On Diff #2542) | Ah, this is the contrib Makefile that's not used. I could strip it out of contrib perhaps to avoid confusion, but I think my preference is to leave vendor imports as-is. Have a look at the lib/libelftc/Makefile. |
- Update libelftc to SVN r3076
- Update elfcopy to upstream SVN r3076
- Track libarchive API change
- Fix elftoolchain tools build on FreeBSD
- Remove non-FreeBSD bits for now
- Build infrastructure for elftoolchain tools
usr.bin/elfcopy/Makefile | ||
---|---|---|
21 | not sure it's worth installing mcs |
usr.bin/addr2line/Makefile | ||
---|---|---|
17–18 | Seems unnecessary |
If libelftc always implies libelf then you could just:
DPADD_elftc= ${DPADD_elf}
LDADD_elftc= ${LDADD_elf}
in src.libnames.mk
So everything linking to elftc will link to elf automatically and they only needs
LIBADD= elftc
Don't know it is worth or not in your case :)
lib/libelftc/Makefile | ||
---|---|---|
29 | LIBADD= elf | |
31 | Should be NO_MAN=yes |