[PATCH] D77672: Support a few more SPARCv9 relocations

l via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 7 12:32:18 PDT 2020


LemonBoy created this revision.
LemonBoy added a reviewer: ruiu.
Herald added subscribers: llvm-commits, MaskRay, jrtc27, fedor.sergeev, arichardson, emaste, jyknight.
Herald added a reviewer: espindola.
Herald added a reviewer: MaskRay.
Herald added a project: LLVM.
MaskRay added a comment.

My immediate reaction is "isn't Sparc an abandoned architecture?" See https://en.wikipedia.org/wiki/SPARC and https://lists.freebsd.org/pipermail/freebsd-sparc64/2020-January/010192.html

Though, no objection. You may still need some basic tests, similar to `test/ELF/ppc32-*` I tried hard to keep the number of tests small yet complete. Does sparc64 use TLS variant 2?


I've implemented a bunch of relocations found in my binaries with medium/large code model and IE TLS, the binaries link and run fine in Qemu.
The `elf64_sparc` emulation mode is now recognized, that's the name binutils use and I'm not aware of any other spelling/variation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77672

Files:
  lld/ELF/Arch/SPARCV9.cpp
  lld/ELF/Driver.cpp
  lld/ELF/InputSection.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77672.255765.patch
Type: text/x-patch
Size: 3058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200407/c6b72dd2/attachment.bin>


More information about the llvm-commits mailing list