Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 1 | //===- OutputSections.h -----------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Linker |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef LLD_ELF_OUTPUT_SECTIONS_H |
| 11 | #define LLD_ELF_OUTPUT_SECTIONS_H |
| 12 | |
| 13 | #include "lld/Core/LLVM.h" |
| 14 | |
| 15 | #include "llvm/MC/StringTableBuilder.h" |
| 16 | #include "llvm/Object/ELF.h" |
| 17 | |
Davide Italiano | 85121bb | 2015-09-25 03:56:11 +0000 | [diff] [blame] | 18 | #include "Config.h" |
| 19 | |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 20 | #include <type_traits> |
| 21 | |
| 22 | namespace lld { |
| 23 | namespace elf2 { |
| 24 | |
| 25 | class SymbolBody; |
| 26 | class SymbolTable; |
| 27 | template <class ELFT> class SymbolTableSection; |
| 28 | template <bool Is64Bits> class StringTableSection; |
| 29 | template <class ELFT> class InputSection; |
| 30 | template <class ELFT> class OutputSection; |
| 31 | template <class ELFT> class ObjectFile; |
| 32 | template <class ELFT> class DefinedRegular; |
Rafael Espindola | cd076f0 | 2015-09-25 18:19:03 +0000 | [diff] [blame] | 33 | template <class ELFT> class ELFSymbolBody; |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 34 | |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 35 | template <class ELFT> |
| 36 | typename llvm::object::ELFFile<ELFT>::uintX_t |
Rafael Espindola | 8614c56 | 2015-10-06 14:33:58 +0000 | [diff] [blame] | 37 | getSymVA(const SymbolBody &S, const OutputSection<ELFT> &BssSec); |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 38 | |
| 39 | template <class ELFT> |
| 40 | typename llvm::object::ELFFile<ELFT>::uintX_t |
| 41 | getLocalSymVA(const typename llvm::object::ELFFile<ELFT>::Elf_Sym *Sym, |
| 42 | const ObjectFile<ELFT> &File); |
Rafael Espindola | a662738 | 2015-10-06 23:56:53 +0000 | [diff] [blame^] | 43 | bool canBePreempted(const SymbolBody *Body); |
Rafael Espindola | 4f674ed | 2015-10-05 15:24:04 +0000 | [diff] [blame] | 44 | template <class ELFT> bool includeInSymtab(const SymbolBody &B); |
| 45 | |
Rafael Espindola | 05a3dd2 | 2015-09-22 23:38:23 +0000 | [diff] [blame] | 46 | bool includeInDynamicSymtab(const SymbolBody &B); |
Rafael Espindola | d1cf421 | 2015-10-05 16:25:43 +0000 | [diff] [blame] | 47 | |
| 48 | template <class ELFT> |
| 49 | bool shouldKeepInSymtab( |
| 50 | StringRef Name, const typename llvm::object::ELFFile<ELFT>::Elf_Sym &Sym); |
Davide Italiano | 85121bb | 2015-09-25 03:56:11 +0000 | [diff] [blame] | 51 | |
Rafael Espindola | 7167585 | 2015-09-22 00:16:19 +0000 | [diff] [blame] | 52 | // This represents a section in an output file. |
| 53 | // Different sub classes represent different types of sections. Some contain |
| 54 | // input sections, others are created by the linker. |
| 55 | // The writer creates multiple OutputSections and assign them unique, |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 56 | // non-overlapping file offsets and VAs. |
| 57 | template <bool Is64Bits> class OutputSectionBase { |
| 58 | public: |
| 59 | typedef typename std::conditional<Is64Bits, uint64_t, uint32_t>::type uintX_t; |
| 60 | typedef typename std::conditional<Is64Bits, llvm::ELF::Elf64_Shdr, |
| 61 | llvm::ELF::Elf32_Shdr>::type HeaderT; |
| 62 | |
| 63 | OutputSectionBase(StringRef Name, uint32_t sh_type, uintX_t sh_flags); |
| 64 | void setVA(uintX_t VA) { Header.sh_addr = VA; } |
| 65 | uintX_t getVA() const { return Header.sh_addr; } |
| 66 | void setFileOffset(uintX_t Off) { Header.sh_offset = Off; } |
| 67 | template <llvm::object::endianness E> |
| 68 | void writeHeaderTo(typename llvm::object::ELFFile< |
| 69 | llvm::object::ELFType<E, Is64Bits>>::Elf_Shdr *SHdr); |
| 70 | StringRef getName() { return Name; } |
| 71 | void setNameOffset(uintX_t Offset) { Header.sh_name = Offset; } |
| 72 | |
| 73 | unsigned getSectionIndex() const { return SectionIndex; } |
| 74 | void setSectionIndex(unsigned I) { SectionIndex = I; } |
| 75 | |
| 76 | // Returns the size of the section in the output file. |
Rafael Espindola | 7757224 | 2015-10-02 19:37:55 +0000 | [diff] [blame] | 77 | uintX_t getSize() const { return Header.sh_size; } |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 78 | void setSize(uintX_t Val) { Header.sh_size = Val; } |
| 79 | uintX_t getFlags() { return Header.sh_flags; } |
| 80 | uintX_t getFileOff() { return Header.sh_offset; } |
| 81 | uintX_t getAlign() { |
| 82 | // The ELF spec states that a value of 0 means the section has no alignment |
| 83 | // constraits. |
| 84 | return std::max<uintX_t>(Header.sh_addralign, 1); |
| 85 | } |
| 86 | uint32_t getType() { return Header.sh_type; } |
| 87 | |
| 88 | static unsigned getAddrSize() { return Is64Bits ? 8 : 4; } |
| 89 | |
| 90 | virtual void finalize() {} |
| 91 | virtual void writeTo(uint8_t *Buf) = 0; |
| 92 | |
| 93 | protected: |
| 94 | StringRef Name; |
| 95 | HeaderT Header; |
| 96 | unsigned SectionIndex; |
| 97 | ~OutputSectionBase() = default; |
| 98 | }; |
| 99 | |
| 100 | template <class ELFT> |
| 101 | class GotSection final : public OutputSectionBase<ELFT::Is64Bits> { |
| 102 | typedef OutputSectionBase<ELFT::Is64Bits> Base; |
| 103 | typedef typename Base::uintX_t uintX_t; |
| 104 | |
| 105 | public: |
Rafael Espindola | a662738 | 2015-10-06 23:56:53 +0000 | [diff] [blame^] | 106 | GotSection(const OutputSection<ELFT> &BssSec); |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 107 | void finalize() override { |
| 108 | this->Header.sh_size = Entries.size() * this->getAddrSize(); |
| 109 | } |
Rafael Espindola | a662738 | 2015-10-06 23:56:53 +0000 | [diff] [blame^] | 110 | void writeTo(uint8_t *Buf) override; |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 111 | void addEntry(SymbolBody *Sym); |
| 112 | bool empty() const { return Entries.empty(); } |
| 113 | uintX_t getEntryAddr(const SymbolBody &B) const; |
| 114 | |
| 115 | private: |
| 116 | std::vector<const SymbolBody *> Entries; |
Rafael Espindola | a662738 | 2015-10-06 23:56:53 +0000 | [diff] [blame^] | 117 | const OutputSection<ELFT> &BssSec; |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 118 | }; |
| 119 | |
| 120 | template <class ELFT> |
| 121 | class PltSection final : public OutputSectionBase<ELFT::Is64Bits> { |
| 122 | typedef OutputSectionBase<ELFT::Is64Bits> Base; |
| 123 | typedef typename Base::uintX_t uintX_t; |
| 124 | |
| 125 | public: |
Rafael Espindola | 35c6af3 | 2015-09-25 17:19:10 +0000 | [diff] [blame] | 126 | PltSection(const GotSection<ELFT> &GotSec); |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 127 | void finalize() override { |
| 128 | this->Header.sh_size = Entries.size() * EntrySize; |
| 129 | } |
| 130 | void writeTo(uint8_t *Buf) override; |
| 131 | void addEntry(SymbolBody *Sym); |
| 132 | bool empty() const { return Entries.empty(); } |
| 133 | uintX_t getEntryAddr(const SymbolBody &B) const; |
| 134 | static const unsigned EntrySize = 8; |
| 135 | |
| 136 | private: |
| 137 | std::vector<const SymbolBody *> Entries; |
| 138 | const GotSection<ELFT> &GotSec; |
| 139 | }; |
| 140 | |
| 141 | template <class ELFT> struct DynamicReloc { |
| 142 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Rel Elf_Rel; |
| 143 | const InputSection<ELFT> &C; |
| 144 | const Elf_Rel &RI; |
| 145 | }; |
| 146 | |
| 147 | template <class ELFT> |
| 148 | class SymbolTableSection final : public OutputSectionBase<ELFT::Is64Bits> { |
| 149 | public: |
| 150 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Shdr Elf_Shdr; |
| 151 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Sym Elf_Sym; |
| 152 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Sym_Range Elf_Sym_Range; |
| 153 | typedef typename OutputSectionBase<ELFT::Is64Bits>::uintX_t uintX_t; |
| 154 | SymbolTableSection(SymbolTable &Table, |
Rafael Espindola | c2d2119 | 2015-09-23 18:25:05 +0000 | [diff] [blame] | 155 | StringTableSection<ELFT::Is64Bits> &StrTabSec, |
Rafael Espindola | 35c6af3 | 2015-09-25 17:19:10 +0000 | [diff] [blame] | 156 | const OutputSection<ELFT> &BssSec); |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 157 | |
| 158 | void finalize() override { |
| 159 | this->Header.sh_size = getNumSymbols() * sizeof(Elf_Sym); |
| 160 | this->Header.sh_link = StrTabSec.getSectionIndex(); |
| 161 | this->Header.sh_info = NumLocals + 1; |
| 162 | } |
| 163 | |
| 164 | void writeTo(uint8_t *Buf) override; |
| 165 | |
Rafael Espindola | 0e604f9 | 2015-09-25 18:56:53 +0000 | [diff] [blame] | 166 | SymbolTable &getSymTable() const { return Table; } |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 167 | |
| 168 | void addSymbol(StringRef Name, bool isLocal = false) { |
| 169 | StrTabSec.add(Name); |
| 170 | ++NumVisible; |
| 171 | if (isLocal) |
| 172 | ++NumLocals; |
| 173 | } |
| 174 | |
Davide Italiano | e44456b | 2015-09-23 01:50:53 +0000 | [diff] [blame] | 175 | StringTableSection<ELFT::Is64Bits> &getStrTabSec() const { return StrTabSec; } |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 176 | unsigned getNumSymbols() const { return NumVisible + 1; } |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 177 | |
| 178 | private: |
Rui Ueyama | 8ddfa81 | 2015-09-30 00:32:10 +0000 | [diff] [blame] | 179 | void writeLocalSymbols(uint8_t *&Buf); |
| 180 | void writeGlobalSymbols(uint8_t *&Buf); |
| 181 | |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 182 | SymbolTable &Table; |
| 183 | StringTableSection<ELFT::Is64Bits> &StrTabSec; |
| 184 | unsigned NumVisible = 0; |
| 185 | unsigned NumLocals = 0; |
Rafael Espindola | c2d2119 | 2015-09-23 18:25:05 +0000 | [diff] [blame] | 186 | const OutputSection<ELFT> &BssSec; |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 187 | }; |
| 188 | |
| 189 | template <class ELFT> |
| 190 | class RelocationSection final : public OutputSectionBase<ELFT::Is64Bits> { |
| 191 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Rel Elf_Rel; |
| 192 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Rela Elf_Rela; |
Rafael Espindola | 3c83e2b | 2015-10-05 21:09:37 +0000 | [diff] [blame] | 193 | typedef typename llvm::object::ELFFile<ELFT>::uintX_t uintX_t; |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 194 | |
| 195 | public: |
| 196 | RelocationSection(SymbolTableSection<ELFT> &DynSymSec, |
Rafael Espindola | 9c3e4d2 | 2015-10-05 21:23:08 +0000 | [diff] [blame] | 197 | const GotSection<ELFT> &GotSec, |
| 198 | const OutputSection<ELFT> &BssSec, bool IsRela); |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 199 | void addReloc(const DynamicReloc<ELFT> &Reloc) { Relocs.push_back(Reloc); } |
| 200 | void finalize() override; |
| 201 | void writeTo(uint8_t *Buf) override; |
| 202 | bool hasRelocs() const { return !Relocs.empty(); } |
| 203 | bool isRela() const { return IsRela; } |
| 204 | |
| 205 | private: |
| 206 | std::vector<DynamicReloc<ELFT>> Relocs; |
| 207 | SymbolTableSection<ELFT> &DynSymSec; |
| 208 | const GotSection<ELFT> &GotSec; |
Rafael Espindola | 9c3e4d2 | 2015-10-05 21:23:08 +0000 | [diff] [blame] | 209 | const OutputSection<ELFT> &BssSec; |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 210 | const bool IsRela; |
| 211 | }; |
| 212 | |
| 213 | template <class ELFT> |
| 214 | class OutputSection final : public OutputSectionBase<ELFT::Is64Bits> { |
| 215 | public: |
| 216 | typedef typename OutputSectionBase<ELFT::Is64Bits>::uintX_t uintX_t; |
| 217 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Shdr Elf_Shdr; |
| 218 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Sym Elf_Sym; |
| 219 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Rel Elf_Rel; |
| 220 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Rela Elf_Rela; |
| 221 | OutputSection(const PltSection<ELFT> &PltSec, const GotSection<ELFT> &GotSec, |
Rafael Espindola | c2d2119 | 2015-09-23 18:25:05 +0000 | [diff] [blame] | 222 | const OutputSection<ELFT> &BssSec, StringRef Name, |
Rafael Espindola | 35c6af3 | 2015-09-25 17:19:10 +0000 | [diff] [blame] | 223 | uint32_t sh_type, uintX_t sh_flags); |
Rafael Espindola | 7167585 | 2015-09-22 00:16:19 +0000 | [diff] [blame] | 224 | void addSection(InputSection<ELFT> *C); |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 225 | void writeTo(uint8_t *Buf) override; |
| 226 | |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 227 | private: |
Rafael Espindola | 7167585 | 2015-09-22 00:16:19 +0000 | [diff] [blame] | 228 | std::vector<InputSection<ELFT> *> Sections; |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 229 | const PltSection<ELFT> &PltSec; |
| 230 | const GotSection<ELFT> &GotSec; |
Rafael Espindola | c2d2119 | 2015-09-23 18:25:05 +0000 | [diff] [blame] | 231 | const OutputSection<ELFT> &BssSec; |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 232 | }; |
| 233 | |
| 234 | template <bool Is64Bits> |
| 235 | class InterpSection final : public OutputSectionBase<Is64Bits> { |
| 236 | public: |
| 237 | InterpSection(); |
| 238 | |
| 239 | void writeTo(uint8_t *Buf); |
| 240 | }; |
| 241 | |
| 242 | template <bool Is64Bits> |
| 243 | class StringTableSection final : public OutputSectionBase<Is64Bits> { |
| 244 | public: |
| 245 | typedef typename OutputSectionBase<Is64Bits>::uintX_t uintX_t; |
Rafael Espindola | 35c6af3 | 2015-09-25 17:19:10 +0000 | [diff] [blame] | 246 | StringTableSection(bool Dynamic); |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 247 | void add(StringRef S) { StrTabBuilder.add(S); } |
| 248 | size_t getFileOff(StringRef S) const { return StrTabBuilder.getOffset(S); } |
| 249 | StringRef data() const { return StrTabBuilder.data(); } |
| 250 | void writeTo(uint8_t *Buf) override; |
| 251 | |
| 252 | void finalize() override { |
| 253 | StrTabBuilder.finalize(llvm::StringTableBuilder::ELF); |
| 254 | this->Header.sh_size = StrTabBuilder.data().size(); |
| 255 | } |
| 256 | |
| 257 | bool isDynamic() const { return Dynamic; } |
| 258 | |
| 259 | private: |
| 260 | const bool Dynamic; |
| 261 | llvm::StringTableBuilder StrTabBuilder; |
| 262 | }; |
| 263 | |
| 264 | template <class ELFT> |
| 265 | class HashTableSection final : public OutputSectionBase<ELFT::Is64Bits> { |
| 266 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Word Elf_Word; |
| 267 | |
| 268 | public: |
Rafael Espindola | 35c6af3 | 2015-09-25 17:19:10 +0000 | [diff] [blame] | 269 | HashTableSection(SymbolTableSection<ELFT> &DynSymSec); |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 270 | void addSymbol(SymbolBody *S); |
| 271 | |
| 272 | void finalize() override { |
| 273 | this->Header.sh_link = DynSymSec.getSectionIndex(); |
| 274 | |
| 275 | assert(DynSymSec.getNumSymbols() == Hashes.size() + 1); |
| 276 | unsigned NumEntries = 2; // nbucket and nchain. |
| 277 | NumEntries += DynSymSec.getNumSymbols(); // The chain entries. |
| 278 | |
| 279 | // Create as many buckets as there are symbols. |
| 280 | // FIXME: This is simplistic. We can try to optimize it, but implementing |
| 281 | // support for SHT_GNU_HASH is probably even more profitable. |
| 282 | NumEntries += DynSymSec.getNumSymbols(); |
| 283 | this->Header.sh_size = NumEntries * sizeof(Elf_Word); |
| 284 | } |
| 285 | |
| 286 | void writeTo(uint8_t *Buf) override { |
| 287 | unsigned NumSymbols = DynSymSec.getNumSymbols(); |
| 288 | auto *P = reinterpret_cast<Elf_Word *>(Buf); |
| 289 | *P++ = NumSymbols; // nbucket |
| 290 | *P++ = NumSymbols; // nchain |
| 291 | |
| 292 | Elf_Word *Buckets = P; |
| 293 | Elf_Word *Chains = P + NumSymbols; |
| 294 | |
| 295 | for (unsigned I = 1; I < NumSymbols; ++I) { |
| 296 | uint32_t Hash = Hashes[I - 1] % NumSymbols; |
| 297 | Chains[I] = Buckets[Hash]; |
| 298 | Buckets[Hash] = I; |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | SymbolTableSection<ELFT> &getDynSymSec() { return DynSymSec; } |
| 303 | |
| 304 | private: |
| 305 | uint32_t hash(StringRef Name) { |
| 306 | uint32_t H = 0; |
| 307 | for (char C : Name) { |
| 308 | H = (H << 4) + C; |
| 309 | uint32_t G = H & 0xf0000000; |
| 310 | if (G) |
| 311 | H ^= G >> 24; |
| 312 | H &= ~G; |
| 313 | } |
| 314 | return H; |
| 315 | } |
| 316 | SymbolTableSection<ELFT> &DynSymSec; |
| 317 | std::vector<uint32_t> Hashes; |
| 318 | }; |
| 319 | |
| 320 | template <class ELFT> |
| 321 | class DynamicSection final : public OutputSectionBase<ELFT::Is64Bits> { |
| 322 | typedef OutputSectionBase<ELFT::Is64Bits> Base; |
| 323 | typedef typename Base::HeaderT HeaderT; |
Rui Ueyama | 2dfd74f | 2015-09-30 21:57:53 +0000 | [diff] [blame] | 324 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Rel Elf_Rel; |
| 325 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Rela Elf_Rela; |
| 326 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Sym Elf_Sym; |
Hal Finkel | d26da92 | 2015-10-02 16:21:30 +0000 | [diff] [blame] | 327 | typedef typename llvm::object::ELFFile<ELFT>::Elf_Dyn Elf_Dyn; |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 328 | |
| 329 | public: |
| 330 | DynamicSection(SymbolTable &SymTab, HashTableSection<ELFT> &HashSec, |
Igor Kudrin | b1f2b51 | 2015-10-05 10:29:46 +0000 | [diff] [blame] | 331 | RelocationSection<ELFT> &RelaDynSec, |
| 332 | const OutputSection<ELFT> &BssSec); |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 333 | void finalize() override; |
| 334 | void writeTo(uint8_t *Buf) override; |
| 335 | |
Rafael Espindola | 7757224 | 2015-10-02 19:37:55 +0000 | [diff] [blame] | 336 | OutputSection<ELFT> *PreInitArraySec = nullptr; |
| 337 | OutputSection<ELFT> *InitArraySec = nullptr; |
| 338 | OutputSection<ELFT> *FiniArraySec = nullptr; |
| 339 | |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 340 | private: |
| 341 | HashTableSection<ELFT> &HashSec; |
| 342 | SymbolTableSection<ELFT> &DynSymSec; |
| 343 | StringTableSection<ELFT::Is64Bits> &DynStrSec; |
| 344 | RelocationSection<ELFT> &RelaDynSec; |
Igor Kudrin | b1f2b51 | 2015-10-05 10:29:46 +0000 | [diff] [blame] | 345 | const OutputSection<ELFT> &BssSec; |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 346 | SymbolTable &SymTab; |
Igor Kudrin | b1f2b51 | 2015-10-05 10:29:46 +0000 | [diff] [blame] | 347 | const ELFSymbolBody<ELFT> *InitSym = nullptr; |
| 348 | const ELFSymbolBody<ELFT> *FiniSym = nullptr; |
Rafael Espindola | 5805c4f | 2015-09-21 21:38:08 +0000 | [diff] [blame] | 349 | }; |
| 350 | } |
| 351 | } |
| 352 | #endif |