[PATCH] D102985: [lld][ELF][SPARC] Implement and fixup GOT/PLT relocations
LemonBoy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 21 07:41:41 PDT 2021
LemonBoy updated this revision to Diff 353366.
LemonBoy retitled this revision from "[lld][ELF][SPARC] Fix GOT-relative relocations" to "[lld][ELF][SPARC] Implement and fixup GOT/PLT relocations".
LemonBoy edited the summary of this revision.
LemonBoy added a comment.
Here's the updated patch, I'm now able to link and run several small programs linked against glibc (in both PIC/PIE mode), shared libraries and some basic examples w/ ifuncs.
The use of `uint128_t` is a hack that works pretty well, suggestions are welcome.
Once `D102575` I'll be able to commit some tests.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102985/new/
https://reviews.llvm.org/D102985
Files:
lld/ELF/Arch/SPARCV9.cpp
lld/ELF/Driver.cpp
lld/ELF/InputSection.cpp
lld/ELF/Relocations.cpp
lld/ELF/Relocations.h
lld/ELF/Symbols.cpp
lld/ELF/Symbols.h
lld/ELF/SyntheticSections.cpp
lld/ELF/Target.cpp
lld/ELF/Target.h
lld/test/ELF/sparcv9-reloc-got.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102985.353366.patch
Type: text/x-patch
Size: 16033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210621/b5eabefb/attachment-0001.bin>
More information about the llvm-commits
mailing list