diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:48:50 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:48:50 +0000 |
| commit | 1c98619801a5705c688e683be3ef9d70169a0686 (patch) | |
| tree | 8422105cd1a94c368315f2db16b9ac746cf7c000 /lib/ReaderWriter/ELF/AArch64/AArch64SectionChunks.cpp | |
| parent | f4f3ce4613680903220815690ad79fc7ba0a2e26 (diff) | |
Notes
Diffstat (limited to 'lib/ReaderWriter/ELF/AArch64/AArch64SectionChunks.cpp')
| -rw-r--r-- | lib/ReaderWriter/ELF/AArch64/AArch64SectionChunks.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/lib/ReaderWriter/ELF/AArch64/AArch64SectionChunks.cpp b/lib/ReaderWriter/ELF/AArch64/AArch64SectionChunks.cpp deleted file mode 100644 index 2734bcdbda5f..000000000000 --- a/lib/ReaderWriter/ELF/AArch64/AArch64SectionChunks.cpp +++ /dev/null @@ -1,39 +0,0 @@ -//===- lib/ReaderWriter/ELF/AArch64/AArch64SectionChunks.cpp --------------===// -// -// The LLVM Linker -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include "AArch64SectionChunks.h" -#include "TargetLayout.h" - -namespace lld { -namespace elf { - -AArch64GOTSection::AArch64GOTSection(const ELFLinkingContext &ctx, - StringRef name, int32_t order) - : AtomSection<ELF64LE>(ctx, name, DefinedAtom::typeGOT, DefinedAtom::permRW_, - order) { - _alignment = 8; -} - -const AtomLayout *AArch64GOTSection::appendAtom(const Atom *atom) { - const DefinedAtom *da = dyn_cast<DefinedAtom>(atom); - - for (const auto &r : *da) { - if (r->kindNamespace() != Reference::KindNamespace::ELF) - continue; - assert(r->kindArch() == Reference::KindArch::AArch64); - if ((r->kindValue() == R_AARCH64_TLS_TPREL64) || - (r->kindValue() == R_AARCH64_TLSDESC)) - _tlsMap[r->target()] = _tlsMap.size(); - } - - return AtomSection<ELF64LE>::appendAtom(atom); -} - -} // elf -} // lld |
