<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - ld.lld doesn't permit read-only relocations (-z text) as default compared to ld.bfd and ld.gold"
   href="https://bugs.llvm.org/show_bug.cgi?id=49810">bug 49810</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>i@maskray.me
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - ld.lld doesn't permit read-only relocations (-z text) as default compared to ld.bfd and ld.gold"
   href="https://bugs.llvm.org/show_bug.cgi?id=49810#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - ld.lld doesn't permit read-only relocations (-z text) as default compared to ld.bfd and ld.gold"
   href="https://bugs.llvm.org/show_bug.cgi?id=49810">bug 49810</a>
              from <span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>