<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - linker script assignment loses relative nature of section"
href="https://bugs.llvm.org/show_bug.cgi?id=39857">39857</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>linker script assignment loses relative nature of section
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ndesaulniers@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, peter.smith@linaro.org, ruiu@google.com
</td>
</tr></table>
<p>
<div>
<pre>Not sure the best way to reproduce this, but it was reported in another bug and
in a mail thread.
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - error: -shared and -pie may not be used together"
href="show_bug.cgi?id=39810#c11">https://bugs.llvm.org/show_bug.cgi?id=39810#c11</a>:
"It seems like __efistub__text = _text; loses the section relative property of
_text."
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - error: -shared and -pie may not be used together"
href="show_bug.cgi?id=39810#c13">https://bugs.llvm.org/show_bug.cgi?id=39810#c13</a>:
2.) A symbol assignment to symbol defined in a section description in a linker
script can lose the section information.
<a href="http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20170116/420898.html">http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20170116/420898.html</a>:
"The real problem is that we are not tracking
absoluteness correctly."
<a href="http://lists.infradead.org/pipermail/linux-arm-kernel/2018-December/616765.html">http://lists.infradead.org/pipermail/linux-arm-kernel/2018-December/616765.html</a>:
(since using an intermediate assignment loses the section relative property
when using ld.lld)</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>