Page MenuHomeFreeBSD

Move llvm-objdump from CLANG_EXTRAS to installed by default
ClosedPublic

Authored by emaste on Dec 21 2016, 5:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 3:05 AM
Unknown Object (File)
Thu, Apr 18, 11:50 PM
Unknown Object (File)
Apr 2 2024, 3:51 AM
Unknown Object (File)
Jan 9 2024, 7:15 AM
Unknown Object (File)
Jan 9 2024, 7:15 AM
Unknown Object (File)
Jan 9 2024, 6:59 AM
Unknown Object (File)
Jan 9 2024, 6:56 AM
Unknown Object (File)
Jan 9 2024, 4:20 AM
Subscribers

Details

Summary

We currently install three tools from binutils 2.17.50: as, ld, and objdump. Work is underway to migrate to a permissively-licensed tool-chain, with one goal being the retirement of binutils 2.17.50.

LLVM's llvm-objdump is intended to be compatible with GNU objdump although it is currently missing some options and may have formatting differences. Enable it by default for testing and further investigation. It may later be changed to install as /usr/bin/objdump, it becomes a fully viable replacement.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste retitled this revision from to Move llvm-objdump from CLANG_EXTRAS to installed by default.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added a reviewer: dim.
emaste added subscribers: bapt, jhb, imp.
emaste added inline comments.
lib/clang/libllvm/Makefile
311โ€“328 โ†—(On Diff #23180)

Perhaps there's something clever that can be done so that these are built for the target tools but not the host clang build? Not sure it's worth the complexity.

dim updated this object.
dim edited edge metadata.

Add a bit of extra logic to minimize the number of object files.

Use SRC_MIW to indicate minimal sources for the "world" stage.
Similarly, SRC_XDW for world with clang extras and lldb.

@emaste this works for me, but if you can try it out, please do. :)

Testing your version now

SRC_MIW/SRC_XDW version looks good to me

emaste edited edge metadata.
This revision is now accepted and ready to land.Dec 27 2016, 9:01 PM
This revision was automatically updated to reflect the committed changes.