[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-bugs
Subject:    [llvm-bugs] [Bug 30218] New: ARMTargetInfo lacks an implementation of relaxTlsIeToLe()
From:       via llvm-bugs <llvm-bugs () lists ! llvm ! org>
Date:       2016-08-31 7:34:27
Message-ID: bug-30218-206 () http ! llvm ! org/bugs/
[Download RAW message or body]

--1472628869.eFC2Ebf0.27873
Date: Wed, 31 Aug 2016 02:34:29 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"

https://llvm.org/bugs/show_bug.cgi?id=30218

            Bug ID: 30218
           Summary: ARMTargetInfo lacks an implementation of
                    relaxTlsIeToLe()
           Product: lld
           Version: unspecified
          Hardware: Other
                OS: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs@nondot.org
          Reporter: ed@80386.nl
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

While trying to port CloudABI (https://nuxi.nl/) 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>
>::writeSections() ()
#9  0x000000000085cc1d in (anonymous
namespace)::Writer<llvm::object::ELFType<(llvm::support::endianness)1, false>
>::run() ()
#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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

--1472628869.eFC2Ebf0.27873
Date: Wed, 31 Aug 2016 02:34:29 -0500
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"

<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&#64;nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ed&#64;80386.nl
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs&#64;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&lt;llvm::object::ELFType&lt;(llvm::support::endianness)1,
false&gt; &gt;::relocate(unsigned char*, unsigned char*) ()
#6  0x00000000005f84a7 in
lld::elf::InputSection&lt;llvm::object::ELFType&lt;(llvm::support::endianness)1,
false&gt; &gt;::writeTo(unsigned char*) ()
#7  0x00000000006eba32 in
lld::elf::OutputSection&lt;llvm::object::ELFType&lt;(llvm::support::endianness)1,
false&gt; &gt;::writeTo(unsigned char*) ()
#8  0x00000000008810f1 in (anonymous
namespace)::Writer&lt;llvm::object::ELFType&lt;(llvm::support::endianness)1, false&gt;
<span class="quote">&gt;::writeSections() ()</span >
#9  0x000000000085cc1d in (anonymous
namespace)::Writer&lt;llvm::object::ELFType&lt;(llvm::support::endianness)1, false&gt;
<span class="quote">&gt;::run() ()</span >
#10 0x0000000000886a1f in void
lld::elf::writeResult&lt;llvm::object::ELFType&lt;(llvm::support::endianness)1,
false&gt; &gt;() ()
#11 0x00000000005647da in void
lld::elf::LinkerDriver::link&lt;llvm::object::ELFType&lt;(llvm::support::endianness)1,
false&gt; &gt;(llvm::opt::InputArgList&amp;) ()
#12 0x0000000000556bf9 in lld::elf::LinkerDriver::main(llvm::ArrayRef&lt;char
const*&gt;) ()
#13 0x00000000005561c6 in lld::elf::link(llvm::ArrayRef&lt;char const*&gt;,
llvm::raw_ostream&amp;) ()
#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>

--1472628869.eFC2Ebf0.27873--

[Attachment #3 (text/plain)]

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic