This is an archive of the discontinued LLVM Phabricator instance.

[ELF/AArch64] Fix export TLS dynamic symbol
AbandonedPublic

Authored by zatrazz on Jul 9 2015, 11:54 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 29369.Jul 9 2015, 11:54 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 added inline comments.Jul 9 2015, 12:01 PM
lib/ReaderWriter/ELF/AArch64/AArch64ExecutableWriter.cpp
37

Why std::for_each? Can you use regular for loop instead?

ruiu added inline comments.Jul 9 2015, 3:06 PM
lib/ReaderWriter/ELF/AArch64/AArch64SectionChunks.h
35–47

I don't think these classes are needed. You can just pass "order" argument when you create an instance of AArch64GOTBaseSection.

zatrazz abandoned this revision.Jul 10 2015, 9:55 AM

I will repost it with requested changes.