[llvm-bugs] [Bug 43150] New: Missing relocation 88 (R_PPC_GOT_TPREL16_LO) for powerpc 32 bit

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 28 11:04:13 PDT 2019


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

            Bug ID: 43150
           Summary: Missing relocation 88 (R_PPC_GOT_TPREL16_LO) for
                    powerpc 32 bit
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: alfredo.junior at eldorado.org.br
                CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org

When statically linking a simple test program usin LLVM9 or 10 (trunk), I found
the following problem:


/root/src/llvm-project/build/bin/clang -target powerpc-unknown-freebsd13.0 -O2
-g --sysroot=/usr/obj/root/src/freebsd/powerpc.powerpc64/obj-lib32/tmp/ t1.c -o
t1.lld.static  -fuse-ld=/root/src/llvm-project/build/bin/ld.lld -static
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see
all errors)
clang-9: error: linker command failed with exit code 1 (use -v to see
invocation)

A reproduce tarball will be attached.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190828/4b01b769/attachment.html>


More information about the llvm-bugs mailing list