<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 - .symver foo, foo@v1 is mishandled"
href="https://bugs.llvm.org/show_bug.cgi?id=48820">48820</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>.symver foo, foo@v1 is mishandled
</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>hjl.tools@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>i@maskray.me, llvm-bugs@lists.llvm.org, smithp352@googlemail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24403" name="attach_24403" title="A testcase">attachment 24403</a> <a href="attachment.cgi?id=24403&action=edit" title="A testcase">[details]</a></span>
A testcase
[hjl@gnu-cfl-2 pr27210]$ make
gcc -g -c -o main.o main.c
gcc -g -fPIC -c -o bad.o bad.c
gcc -shared -o libbad.so bad.o -Wl,--version-script=bad.v
gcc -g -fPIC -c -o foo.o foo.c
gcc -shared -o libfoo.so foo.o -Wl,--version-script=foo.v
gcc -o x main.o libbad.so libfoo.so -Wl,-R,.
./x
[hjl@gnu-cfl-2 pr27210]$ make clean
rm -f *.o *.so foo
[hjl@gnu-cfl-2 pr27210]$ make LDFLAGS=-fuse-ld=lld
gcc -g -c -o main.o main.c
gcc -g -fPIC -c -o bad.o bad.c
gcc -fuse-ld=lld -shared -o libbad.so bad.o -Wl,--version-script=bad.v
gcc -g -fPIC -c -o foo.o foo.c
gcc -fuse-ld=lld -shared -o libfoo.so foo.o -Wl,--version-script=foo.v
gcc -fuse-ld=lld -o x main.o libbad.so libfoo.so -Wl,-R,.
./x
make: *** [Makefile:7: all] Aborted (core dumped)
[hjl@gnu-cfl-2 pr27210]$ make clean
rm -f *.o *.so foo
[hjl@gnu-cfl-2 pr27210]$ make LDFLAGS=-fuse-ld=gold
gcc -g -c -o main.o main.c
gcc -g -fPIC -c -o bad.o bad.c
gcc -fuse-ld=gold -shared -o libbad.so bad.o -Wl,--version-script=bad.v
gcc -g -fPIC -c -o foo.o foo.c
gcc -fuse-ld=gold -shared -o libfoo.so foo.o -Wl,--version-script=foo.v
gcc -fuse-ld=gold -o x main.o libbad.so libfoo.so -Wl,-R,.
./x
[hjl@gnu-cfl-2 pr27210]$</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>