[PATCH] D56650: [lld] [ELF] Support customizing behavior on target triple

Kamil Rytarowski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 30 07:06:18 PST 2019


krytarowski added a comment.

@rui we need some resolution here. We have stronger feelings from the community to customize the linker directly based on detected triple.

At least other !GNU platforms will benefit from it too (at least FreeBSD, OpenBSD and other BSD derivations like mentioned CheriBSD).
FreeBSD already adds such target customization based on an emulation name hack, we cannot repeat it on NetBSD in the same way.

In the worst case we can even produce a new flavor of lld target that resembles/duplicates original ELF and targets (Net)BSD.

Under what circumstances and what model will you let to support this approach?

It does allow us better customization with keeping compat with other toolchain components, especially from the the GNU world.

Ideally we would get something for LLVM 8.0.. as it could be still backportable at least for downstream purposes. RC2 is planned for Feburary 6th and we need unpatched lld functional out of the box.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56650/new/

https://reviews.llvm.org/D56650





More information about the cfe-commits mailing list