[PATCH] D119257: Revert "Re-land [LLD] Remove global state in lldCommon"

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 8 14:59:51 PST 2022


MaskRay added a comment.

In D119257#3306151 <https://reviews.llvm.org/D119257#3306151>, @krzysz00 wrote:

> Having checked with other folks more familiar with the context of our project, it looks like we might actually be fine using lld as a subprocess, since we'll always be sitting on top of a ROCm installation, which includes lld, and since "take this object file and wrap it into a shared library" is extremely unlikely to be broken by version changes.

Thanks for the flexibility :)

> That being said, I've also heard that when this code was initially landing (as part of mlir-rocm-runner, and before my time), the feedback was to use lld as a library and not a subprocess.

I guess they did not realize how tricky to make lld/ELF library usage more reliable ...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119257



More information about the cfe-commits mailing list