[PATCH] D125624: [gold] Remove an external dependency to GNU binutils' header file
Rui Ueyama via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 1 19:38:28 PDT 2022
ruiu added a comment.
> So what happens if LLVMgold.so uses one of the new structs or constants and then is built and run on system where binutils is old enough to not have these new structs and constants?
The same thing can happen with GCC and binutils. Imagine that you install a newer version of GCC binary to your system and use it with an older version of binutils ld which doesn't know anything about new structs and constants. The plugin should still work, as changes to this file must be made in such a way that that don't break ABI. The whole point of this interface is decoupling compiler versions from linker versions. So it's backward compatible.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125624/new/
https://reviews.llvm.org/D125624
More information about the cfe-commits
mailing list