[PATCH] D138135: [ELF] Support LoongArch
WÁNG Xuěruì via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 21 07:41:39 PST 2023
xen0n added a comment.
In D138135#4071143 <https://reviews.llvm.org/D138135#4071143>, @SixWeining wrote:
> I just verified the latest change, lld still fail to link llvm and report the error:
>
> ld.lld: error: relocation R_LARCH_PCALA_HI20 cannot be used against symbol '__cxa_atexit'; recompile with -fPIC
> >>> defined in /usr/lib64/libc.so.6
> >>> referenced by atexit.c:46 (../stdlib/atexit.c:46)
> >>> atexit.oS:(atexit) in archive /usr/lib64/libc_nonshared.a
> clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
> ninja: build stopped: subcommand failed.
Hmm, let me check after some sleep... I probably should write more tests but unfortunately time's not enough. I'll try to push a new revision tomorrow morning.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138135/new/
https://reviews.llvm.org/D138135
More information about the llvm-commits
mailing list