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: unassignedb...@nondot.org
          Reporter: alfredo.jun...@eldorado.org.br
                CC: llvm-bugs@lists.llvm.org, peter.sm...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to