blob: 5208491eee55c8c6b7e5da2b45c0210360504c57 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
//===- lib/ReaderWriter/ELF/X86_64/X86_64SectionChunks.h ----------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLD_READER_WRITER_ELF_X86_64_X86_64_SECTION_CHUNKS_H
#define LLD_READER_WRITER_ELF_X86_64_X86_64_SECTION_CHUNKS_H
#include "TargetLayout.h"
namespace lld {
namespace elf {
class X86_64GOTSection : public AtomSection<ELF64LE> {
public:
X86_64GOTSection(const ELFLinkingContext &ctx);
bool hasGlobalGOTEntry(const Atom *a) const {
return _tlsMap.count(a);
}
const AtomLayout *appendAtom(const Atom *atom) override;
private:
/// \brief Map TLS Atoms to their GOT entry index.
llvm::DenseMap<const Atom *, std::size_t> _tlsMap;
};
} // elf
} // lld
#endif
|