[llvm-dev] Linker Option support for ELF
Joerg Sonnenberger via llvm-dev
llvm-dev at lists.llvm.org
Sun Jan 7 23:53:38 PST 2018
On Mon, Jan 08, 2018 at 12:14:15AM -0500, James Y Knight via llvm-dev wrote:
> But I'm very much against allowing any sort of option that specifies full
> paths to be embedded, including "-L". Typically, object files are
> location-independent -- if you want to copy them to another system and run
> the linker there (with an appropriate sysroot path), that's going to work
> perfectly fine. But as soon as you start allowing path options to be
> embedded, you're in a whole new world, with a whole new set of possible
> pain. And, AFAICT, other systems do not allow that, either.
It can be also very painful for deterministic builds. GCC wants to
include the command line via DWARF nowadays. Including the option to
make the path names deterministic. Guess what happens...
More information about the llvm-dev