<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - ARMTargetInfo lacks an implementation of relaxTlsIeToLe()"
href="https://llvm.org/bugs/show_bug.cgi?id=30218">30218</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ARMTargetInfo lacks an implementation of relaxTlsIeToLe()
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</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>ed@80386.nl
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>While trying to port CloudABI (<a href="https://nuxi.nl/">https://nuxi.nl/</a>) to target
armv6-unknown-cloudabi-eabihf, I noticed that LLD trunk crashes while trying to
create a statically linked executable that uses TLS:
#0 0x0000000805d653ca in thr_kill () from /lib/libc.so.7
#1 0x0000000805d653b6 in raise () from /lib/libc.so.7
#2 0x0000000805d65339 in abort () from /lib/libc.so.7
#3 0x0000000000941ed6 in llvm::llvm_unreachable_internal(char const*, char
const*, unsigned int) ()
#4 0x000000000084e049 in lld::elf::TargetInfo::relaxTlsIeToLe(unsigned char*,
unsigned int, unsigned long) const ()
#5 0x00000000005f226a in
lld::elf::InputSectionBase<llvm::object::ELFType<(llvm::support::endianness)1,
false> >::relocate(unsigned char*, unsigned char*) ()
#6 0x00000000005f84a7 in
lld::elf::InputSection<llvm::object::ELFType<(llvm::support::endianness)1,
false> >::writeTo(unsigned char*) ()
#7 0x00000000006eba32 in
lld::elf::OutputSection<llvm::object::ELFType<(llvm::support::endianness)1,
false> >::writeTo(unsigned char*) ()
#8 0x00000000008810f1 in (anonymous
namespace)::Writer<llvm::object::ELFType<(llvm::support::endianness)1, false>
<span class="quote">>::writeSections() ()</span >
#9 0x000000000085cc1d in (anonymous
namespace)::Writer<llvm::object::ELFType<(llvm::support::endianness)1, false>
<span class="quote">>::run() ()</span >
#10 0x0000000000886a1f in void
lld::elf::writeResult<llvm::object::ELFType<(llvm::support::endianness)1,
false> >() ()
#11 0x00000000005647da in void
lld::elf::LinkerDriver::link<llvm::object::ELFType<(llvm::support::endianness)1,
false> >(llvm::opt::InputArgList&) ()
#12 0x0000000000556bf9 in lld::elf::LinkerDriver::main(llvm::ArrayRef<char
const*>) ()
#13 0x00000000005561c6 in lld::elf::link(llvm::ArrayRef<char const*>,
llvm::raw_ostream&) ()
#14 0x000000000045b8fb in main ()
Looking through the code, I think that the problem is that r276095 introduced
ARMTargetInfo::isTlsInitialExecRel(), but did not add the necessary
relaxTlsIeToLe() function. Because I have absolutely no idea what I'm doing, I
thought I'd file a bug report.</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>