quic-garvgupt wrote:

>One land-mine I've seen some people run into with LLD, is that it is 
>--no-apply-dynamic-relocs by default. This means that if --pie is used then 
>there must be a loader. However with --apply-dynamic-relocs no loader is 
>needed if the program is run at its static link address.
https://sourceware.org/binutils/docs/ld/ARM.html#index-_002d_002dno_002dapply_002ddynamic_002drelocs
sadly in GNU ld that option is AArch64 only so it couldn't be universally 
applied.

I think with `-static-pie` the idea is to provide your own loader. Moreover, I 
think `--no-apply-dynamic-relocs` is consistent with `-static-pie` because 
`--apply-dynamic-relocs` will create a position-dependent binary, by default 
which will render usage of `*-pie` meaningless.

https://github.com/llvm/llvm-project/pull/147589
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to