[PATCH] D100544: [ELF][AArch64] Write addends for TLSDESC relocations with -z rel

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 15 04:16:24 PDT 2021


arichardson created this revision.
arichardson added reviewers: MaskRay, mcgrathr, phosek.
Herald added subscribers: danielkiss, kristof.beyls, emaste.
arichardson requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Since D100490 <https://reviews.llvm.org/D100490> this case is diagnosed for -z rel. This commit implements
R_AARCH64_TLSDESC cases for AArch64::getImplicitAddend() and
AArch64::relocate(). However, there are probably further relocation types
that need to be handled for full support of -z rel.

Fixes https://bugs.llvm.org/show_bug.cgi?id=47009

Depends on D100490 <https://reviews.llvm.org/D100490>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100544

Files:
  lld/ELF/Arch/AArch64.cpp
  lld/ELF/Relocations.cpp
  lld/ELF/SyntheticSections.cpp
  lld/test/ELF/aarch64-tlsdesc-zrel.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100544.337705.patch
Type: text/x-patch
Size: 5752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210415/847403c2/attachment.bin>


More information about the llvm-commits mailing list