[PATCH] D114186: [lld][CMake] Add LLD_DEFAULT_NOSTART_STOP_GC

Ed Maste via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 1 07:41:23 PST 2021


emaste added a comment.

> compatible with GNU ld newer than 2015-10

I do not understand this comment - FreeBSD used an ancient version of GNU ld (2.17.50, from mid 2000s) until we migrated all target architectures to lld. That old ld defaults to no GC start/stop, we have been using that behaviour for decades.

In any case, I do not think `LLD_DEFAULT_NOSTART_STOP_GC`is a solution to this general issue for FreeBSD. For the base system it doesn't really matter -- we can easily add `-z no-start-stop-gc` or whatever to default build flags. The concern is with third party software in the ports collection, for which we have found several instances. Those are probably not FreeBSD-specific issues, and will likely occur on any system using lld as the linker. Are there other projects that (a) use lld as the system or default linker and (b) build 30000+ different third party software packages?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114186



More information about the llvm-commits mailing list