Skip to content

[LLD][PowerPC] Fix "unrecognized instruction for IE to LE R_PPC64_TLS" for PowerPC targets #64424

Closed
llvm/llvm-project-release-prs
#675
@amy-kwan

Description

@amy-kwan

As a result of https://reviews.llvm.org/D153645, there is a failure when linking an msan libcxx test during check-runtimes:

$ cd /home/amyk/lldtest-mainbranch/runtimes/runtimes-bins/compiler-rt/lib/msan/tests && /home/amyk/lldtest-mainbranch/./bin/clang++ MSAN_INST_TEST_OBJECTS.msan_test.cpp.powerpc64le-with-call.o MSAN_INST_TEST_OBJECTS.msan_test_main.cpp.powerpc64le-with-call.o MSAN_INST_GTEST.gtest-all.cc.powerpc64le-with-call.o /home/amyk/lldtest-mainbranch/runtimes/runtimes-bins/compiler-rt/lib/msan/tests/../libcxx_msan_powerpc64le/lib//libc++.a /home/amyk/lldtest-mainbranch/runtimes/runtimes-bins/compiler-rt/lib/msan/tests/../libcxx_msan_powerpc64le/lib//libc++abi.a -o /home/amyk/lldtest-mainbranch/runtimes/runtimes-bins/compiler-rt/lib/msan/tests/./Msan-powerpc64le-with-call-Test -Wl,--color-diagnostics -nostdlib++ -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fsanitize=memory -ldl -m64 -fno-function-sections -m64 -fno-function-sections
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

This issue occurs on both LLVM 17.0.0 rc1 and main.
A patch to fix this issue will follow.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions