This is an archive of the discontinued LLVM Phabricator instance.

[ELF/AArch64] Fix export TLS dynamic symbol
ClosedPublic

Authored by zatrazz on Jul 13 2015, 6:14 AM.

Details

Summary

This patch fixes the TLS dynamic variable exportation from .got.plt segments,
created by General-dynamic relocations (TLSDESC). Current code only export
symbols in dynamic table from .got sections.

Diff Detail

Event Timeline

zatrazz updated this revision to Diff 29555.Jul 13 2015, 6:14 AM
zatrazz retitled this revision from to [ELF/AArch64] Fix export TLS dynamic symbol.
zatrazz updated this object.
zatrazz added reviewers: ruiu, shankar.easwaran.
zatrazz added a project: lld.
zatrazz added subscribers: llvm-commits, lld.
ruiu accepted this revision.Jul 13 2015, 2:28 PM
ruiu edited edge metadata.

LGTM with nits about styles.

lib/ReaderWriter/ELF/AArch64/AArch64ExecutableWriter.cpp
40

If you can remove "this->", please do.

lib/ReaderWriter/ELF/AArch64/AArch64SectionChunks.cpp
19

Ditto

lib/ReaderWriter/ELF/AArch64/AArch64SectionChunks.h
21

I think the indentation does not follow the LLVM style.

lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.cpp
28

Ditto

This revision is now accepted and ready to land.Jul 13 2015, 2:28 PM
zatrazz closed this revision.Jul 24 2015, 6:40 AM