<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 WONTFIX - [LLD/ELF] LLD change inflates elf binary size when linked with no-rosegment"
href="https://bugs.llvm.org/show_bug.cgi?id=43997">bug 43997</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>WONTFIX
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>REOPENED
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - [LLD/ELF] LLD change inflates elf binary size when linked with no-rosegment"
href="https://bugs.llvm.org/show_bug.cgi?id=43997#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - [LLD/ELF] LLD change inflates elf binary size when linked with no-rosegment"
href="https://bugs.llvm.org/show_bug.cgi?id=43997">bug 43997</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>Posted a qemu patch last Friday
<a href="https://lists.nongnu.org/archive/html/qemu-devel/2019-11/msg02480.html">https://lists.nongnu.org/archive/html/qemu-devel/2019-11/msg02480.html</a>
Some sections need to be placed first, e.g. .interp and some .note*. Core
dumpers give priority to first few pages. So the option may end up placing R
sections in both sides of RX. The code size inefficiency will also lower its
utility. R and RW on both sides of RX makes it less likely to cause relocation
overflows for large executables/shared objects.
Another point worth mentioning: -Ttext and -Ttext-segment are different in GNU
ld, but both lld and gold implement -Ttext and -Ttext-segment as aliases.
gold sets the segment address (GNU ld -Ttext-segment behavior) while lld sets
the .text address (GNU ld -Ttext behavior). We probably should remove
-Ttext-segment to avoid confusion, if we don't intend to support it (it is very
old-fashioned).</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>