Page MenuHomePhabricator

[ELF][AArch64] Write addends for TLSDESC relocations with -z rel
Needs ReviewPublic

Authored by arichardson on Apr 15 2021, 4:16 AM.



Since 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.


Depends on D100490

Diff Detail

Event Timeline

arichardson created this revision.Apr 15 2021, 4:16 AM
arichardson requested review of this revision.Apr 15 2021, 4:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2021, 4:16 AM
arichardson added a comment.EditedApr 15 2021, 5:41 AM

Breaks lld/test/ELF/x86-64-tlsdesc-gd.s, will investigate.

Fix the failing amd64 test

Rebase on top of D100489

  • fix doc comment
MaskRay added inline comments.Apr 30 2021, 2:41 PM

You can make --apply-dynamic-relocs and --no--apply-dynamic-relocs share prefixes for Relocations.


Delete comment which doesn't add any value


Just delete .type
.size can be deleted as well.

Technically this should be @tls_object, but @object or absence is fine for assemblers.