<html>
<head>
<base href="https://bugs.freedesktop.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 - Use of gold linker breaks debugging"
href="https://bugs.freedesktop.org/show_bug.cgi?id=86666">86666</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Use of gold linker breaks debugging
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>peter@lekensteyn.nl
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Among the problems that the gold linker brings:
- The debugging section gets dropped, making the /usr/lib/debug/ files
useless.
- The .eh_frame section is bogus[1], resulting in crashes in
libunwind[2] and a truncated backtrace in gdb.
The issue "fixed" in that commit is gone as IFUNC is not used anymore
since version 210), so in theory we could drop the -Wl,-fuse-ld=gold
line...
...but in practice we run into problems because GNU ld sees that
symbols appear twice, once in the libsystemd-{internal,shared}.la,
and once in the compatibility library (libsystemd-id128.la).
I tried to remove libsystemd-internal.la from libsystemd_id128_LIBADD,
but then all symbols would disappear, leaving a pretty empty
libsystemd-id128.so file. (This presumably happens because there were
missing references.)
Now I would like to revert to the state before v208-1653-g39c4ead,
but meanwhile there have been a lot of other changes to the build system.
What would it take to avoid linking two archives with the same symbol?
That would also avoid problems such as
<a href="https://sourceware.org/bugzilla/show_bug.cgi?id=16504">https://sourceware.org/bugzilla/show_bug.cgi?id=16504</a>
since then there would only be one symbol.
[1]: <a href="https://sourceware.org/bugzilla/show_bug.cgi?id=17639">https://sourceware.org/bugzilla/show_bug.cgi?id=17639</a>
[2]:
<a href="http://lists.nongnu.org/archive/html/libunwind-devel/2014-11/msg00009.html">http://lists.nongnu.org/archive/html/libunwind-devel/2014-11/msg00009.html</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>