[llvm-bugs] [Bug 49810] ld.lld doesn't permit read-only relocations (-z text) as default compared to ld.bfd and ld.gold
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 15 22:58:05 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=49810
Fangrui Song <i at maskray.me> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
CC| |i at maskray.me
--- Comment #1 from Fangrui Song <i at maskray.me> ---
In GNU ld, -z notext/-z text/unspecified are a tri-state. For -z
notext/unspecified, the dynamic tags DT_TEXTREL and DF_TEXTREL are added on
demand. If unspecified and GNU ld is configured with
--enable-textrel-check=warning, a warning will be issued.
LLD has two states and adds DT_TEXTREL and DF_TEXTREL if -z notext is
specified.
The LLD handling is simpler and incompatible with old GNU ld (but more
compatible with new binutils behavior), but with the evolution of toolchain
when -z notext is phased out, this difference should not be a problem.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210416/b7908242/attachment.html>
More information about the llvm-bugs
mailing list