| Rafael Espindola | 9d06ab6 | 2015-09-22 00:01:39 +0000 | [diff] [blame] | 1 | //===- InputSection.cpp ---------------------------------------------------===// |
| Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 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 | |
| Rafael Espindola | 9d06ab6 | 2015-09-22 00:01:39 +0000 | [diff] [blame] | 10 | #include "InputSection.h" |
| Rafael Espindola | 551dfd8 | 2015-09-25 19:24:57 +0000 | [diff] [blame] | 11 | #include "Config.h" |
| Rafael Espindola | 192e1fa | 2015-08-06 15:08:23 +0000 | [diff] [blame] | 12 | #include "Error.h" |
| Michael J. Spencer | 67bc8d6 | 2015-08-27 23:15:56 +0000 | [diff] [blame] | 13 | #include "InputFiles.h" |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 14 | #include "OutputSections.h" |
| Rafael Espindola | 01205f7 | 2015-09-22 18:19:46 +0000 | [diff] [blame] | 15 | #include "Target.h" |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 16 | |
| Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 17 | using namespace llvm; |
| 18 | using namespace llvm::ELF; |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 19 | using namespace llvm::object; |
| Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 20 | |
| 21 | using namespace lld; |
| 22 | using namespace lld::elf2; |
| 23 | |
| 24 | template <class ELFT> |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 25 | InputSectionBase<ELFT>::InputSectionBase(ObjectFile<ELFT> *File, |
| 26 | const Elf_Shdr *Header, |
| 27 | Kind SectionKind) |
| 28 | : Header(Header), File(File), SectionKind(SectionKind) {} |
| 29 | |
| 30 | template <class ELFT> StringRef InputSectionBase<ELFT>::getSectionName() const { |
| 31 | ErrorOr<StringRef> Name = File->getObj().getSectionName(this->Header); |
| 32 | error(Name); |
| 33 | return *Name; |
| 34 | } |
| 35 | |
| 36 | template <class ELFT> |
| 37 | ArrayRef<uint8_t> InputSectionBase<ELFT>::getSectionData() const { |
| 38 | ErrorOr<ArrayRef<uint8_t>> Ret = |
| 39 | this->File->getObj().getSectionContents(this->Header); |
| 40 | error(Ret); |
| 41 | return *Ret; |
| 42 | } |
| 43 | |
| 44 | template <class ELFT> |
| 45 | typename ELFFile<ELFT>::uintX_t |
| Rafael Espindola | db9bf4d | 2015-11-11 16:50:37 +0000 | [diff] [blame] | 46 | InputSectionBase<ELFT>::getOffset(uintX_t Offset) { |
| 47 | switch (SectionKind) { |
| 48 | case Regular: |
| 49 | return cast<InputSection<ELFT>>(this)->OutSecOff + Offset; |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 50 | case EHFrame: |
| 51 | return cast<EHInputSection<ELFT>>(this)->getOffset(Offset); |
| Rafael Espindola | db9bf4d | 2015-11-11 16:50:37 +0000 | [diff] [blame] | 52 | case Merge: |
| 53 | return cast<MergeInputSection<ELFT>>(this)->getOffset(Offset); |
| 54 | } |
| Denis Protivensky | 1b1b34e | 2015-11-12 09:11:20 +0000 | [diff] [blame] | 55 | llvm_unreachable("Invalid section kind"); |
| Rafael Espindola | db9bf4d | 2015-11-11 16:50:37 +0000 | [diff] [blame] | 56 | } |
| 57 | |
| 58 | template <class ELFT> |
| 59 | typename ELFFile<ELFT>::uintX_t |
| Rafael Espindola | 48225b4 | 2015-10-23 19:55:11 +0000 | [diff] [blame] | 60 | InputSectionBase<ELFT>::getOffset(const Elf_Sym &Sym) { |
| Rafael Espindola | db9bf4d | 2015-11-11 16:50:37 +0000 | [diff] [blame] | 61 | return getOffset(Sym.st_value); |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 62 | } |
| 63 | |
| Rui Ueyama | 1250464 | 2015-10-27 21:51:13 +0000 | [diff] [blame] | 64 | // Returns a section that Rel relocation is pointing to. |
| 65 | template <class ELFT> |
| 66 | InputSectionBase<ELFT> * |
| 67 | InputSectionBase<ELFT>::getRelocTarget(const Elf_Rel &Rel) { |
| 68 | // Global symbol |
| 69 | uint32_t SymIndex = Rel.getSymbol(Config->Mips64EL); |
| 70 | if (SymbolBody *B = File->getSymbolBody(SymIndex)) |
| 71 | if (auto *D = dyn_cast<DefinedRegular<ELFT>>(B->repl())) |
| 72 | return &D->Section; |
| 73 | // Local symbol |
| 74 | if (const Elf_Sym *Sym = File->getLocalSymbol(SymIndex)) |
| 75 | if (InputSectionBase<ELFT> *Sec = File->getSection(*Sym)) |
| 76 | return Sec; |
| 77 | return nullptr; |
| 78 | } |
| 79 | |
| 80 | template <class ELFT> |
| 81 | InputSectionBase<ELFT> * |
| 82 | InputSectionBase<ELFT>::getRelocTarget(const Elf_Rela &Rel) { |
| 83 | return getRelocTarget(reinterpret_cast<const Elf_Rel &>(Rel)); |
| 84 | } |
| 85 | |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 86 | template <class ELFT> |
| Rafael Espindola | 53d5cea | 2015-09-21 17:47:00 +0000 | [diff] [blame] | 87 | InputSection<ELFT>::InputSection(ObjectFile<ELFT> *F, const Elf_Shdr *Header) |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 88 | : InputSectionBase<ELFT>(F, Header, Base::Regular) {} |
| 89 | |
| 90 | template <class ELFT> |
| 91 | bool InputSection<ELFT>::classof(const InputSectionBase<ELFT> *S) { |
| 92 | return S->SectionKind == Base::Regular; |
| 93 | } |
| Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 94 | |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 95 | template <class ELFT> |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 96 | template <bool isRela> |
| Rafael Espindola | 9a6e463 | 2015-11-11 10:18:52 +0000 | [diff] [blame] | 97 | void InputSectionBase<ELFT>::relocate( |
| Hal Finkel | 87bbd5f | 2015-10-12 21:19:18 +0000 | [diff] [blame] | 98 | uint8_t *Buf, uint8_t *BufEnd, |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 99 | iterator_range<const Elf_Rel_Impl<ELFT, isRela> *> Rels) { |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 100 | typedef Elf_Rel_Impl<ELFT, isRela> RelType; |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 101 | for (const RelType &RI : Rels) { |
| Rui Ueyama | 6455852 | 2015-10-16 22:51:43 +0000 | [diff] [blame] | 102 | uint32_t SymIndex = RI.getSymbol(Config->Mips64EL); |
| 103 | uint32_t Type = RI.getType(Config->Mips64EL); |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 104 | uintX_t Offset = getOffset(RI.r_offset); |
| 105 | if (Offset == (uintX_t)-1) |
| 106 | continue; |
| 107 | |
| 108 | uint8_t *BufLoc = Buf + Offset; |
| 109 | uintX_t AddrLoc = OutSec->getVA() + Offset; |
| Michael J. Spencer | 1e22561 | 2015-11-11 01:00:24 +0000 | [diff] [blame] | 110 | |
| 111 | if (Type == Target->getTlsLocalDynamicReloc()) { |
| 112 | Target->relocateOne(BufLoc, BufEnd, Type, AddrLoc, |
| 113 | Out<ELFT>::Got->getVA() + |
| 114 | Out<ELFT>::LocalModuleTlsIndexOffset + |
| 115 | getAddend<ELFT>(RI)); |
| 116 | continue; |
| 117 | } |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 118 | |
| 119 | // Handle relocations for local symbols -- they never get |
| 120 | // resolved so we don't allocate a SymbolBody. |
| Rafael Espindola | 8e37f79 | 2015-11-11 10:23:32 +0000 | [diff] [blame] | 121 | const Elf_Shdr *SymTab = File->getSymbolTable(); |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 122 | if (SymIndex < SymTab->sh_info) { |
| Rafael Espindola | 8e37f79 | 2015-11-11 10:23:32 +0000 | [diff] [blame] | 123 | uintX_t SymVA = getLocalRelTarget(*File, RI); |
| Michael J. Spencer | 1e22561 | 2015-11-11 01:00:24 +0000 | [diff] [blame] | 124 | Target->relocateOne(BufLoc, BufEnd, Type, AddrLoc, SymVA); |
| Rui Ueyama | bb3c336 | 2015-10-12 20:28:23 +0000 | [diff] [blame] | 125 | continue; |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 126 | } |
| 127 | |
| Rafael Espindola | 8e37f79 | 2015-11-11 10:23:32 +0000 | [diff] [blame] | 128 | SymbolBody &Body = *File->getSymbolBody(SymIndex)->repl(); |
| Michael J. Spencer | 627ae70 | 2015-11-13 00:28:34 +0000 | [diff] [blame^] | 129 | |
| 130 | if (Type == Target->getTlsGlobalDynamicReloc()) { |
| 131 | Target->relocateOne(BufLoc, BufEnd, Type, AddrLoc, |
| 132 | Out<ELFT>::Got->getEntryAddr(Body) + |
| 133 | getAddend<ELFT>(RI)); |
| 134 | continue; |
| 135 | } |
| 136 | |
| Rui Ueyama | bb3c336 | 2015-10-12 20:28:23 +0000 | [diff] [blame] | 137 | uintX_t SymVA = getSymVA<ELFT>(Body); |
| 138 | if (Target->relocNeedsPlt(Type, Body)) { |
| 139 | SymVA = Out<ELFT>::Plt->getEntryAddr(Body); |
| Rafael Espindola | 227556e | 2015-10-14 16:15:46 +0000 | [diff] [blame] | 140 | Type = Target->getPLTRefReloc(Type); |
| Rui Ueyama | bb3c336 | 2015-10-12 20:28:23 +0000 | [diff] [blame] | 141 | } else if (Target->relocNeedsGot(Type, Body)) { |
| 142 | SymVA = Out<ELFT>::Got->getEntryAddr(Body); |
| 143 | Type = Target->getGotRefReloc(); |
| 144 | } else if (Target->relocPointsToGot(Type)) { |
| 145 | SymVA = Out<ELFT>::Got->getVA(); |
| 146 | Type = Target->getPCRelReloc(); |
| George Rimar | bc590fe | 2015-10-28 16:48:58 +0000 | [diff] [blame] | 147 | } else if (!Target->relocNeedsCopy(Type, Body) && |
| 148 | isa<SharedSymbol<ELFT>>(Body)) { |
| Rui Ueyama | bb3c336 | 2015-10-12 20:28:23 +0000 | [diff] [blame] | 149 | continue; |
| 150 | } |
| Michael J. Spencer | 1e22561 | 2015-11-11 01:00:24 +0000 | [diff] [blame] | 151 | Target->relocateOne(BufLoc, BufEnd, Type, AddrLoc, |
| Rafael Espindola | 932efcf | 2015-10-19 20:24:44 +0000 | [diff] [blame] | 152 | SymVA + getAddend<ELFT>(RI)); |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 153 | } |
| 154 | } |
| 155 | |
| Rui Ueyama | 15ef5e1 | 2015-10-07 19:18:16 +0000 | [diff] [blame] | 156 | template <class ELFT> void InputSection<ELFT>::writeTo(uint8_t *Buf) { |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 157 | if (this->Header->sh_type == SHT_NOBITS) |
| Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 158 | return; |
| 159 | // Copy section contents from source object file to output file. |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 160 | ArrayRef<uint8_t> Data = this->getSectionData(); |
| Rui Ueyama | 55c3f89 | 2015-10-15 01:58:40 +0000 | [diff] [blame] | 161 | memcpy(Buf + OutSecOff, Data.data(), Data.size()); |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 162 | |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 163 | ELFFile<ELFT> &EObj = this->File->getObj(); |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 164 | uint8_t *BufEnd = Buf + OutSecOff + Data.size(); |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 165 | // Iterate over all relocation sections that apply to this section. |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 166 | for (const Elf_Shdr *RelSec : this->RelocSections) { |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 167 | if (RelSec->sh_type == SHT_RELA) |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 168 | this->relocate(Buf, BufEnd, EObj.relas(RelSec)); |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 169 | else |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 170 | this->relocate(Buf, BufEnd, EObj.rels(RelSec)); |
| Rafael Espindola | 4ea0021 | 2015-09-21 22:01:00 +0000 | [diff] [blame] | 171 | } |
| Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 172 | } |
| 173 | |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 174 | template <class ELFT> |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 175 | SplitInputSection<ELFT>::SplitInputSection( |
| 176 | ObjectFile<ELFT> *File, const Elf_Shdr *Header, |
| 177 | typename InputSectionBase<ELFT>::Kind SectionKind) |
| 178 | : InputSectionBase<ELFT>(File, Header, SectionKind) {} |
| 179 | |
| 180 | template <class ELFT> |
| 181 | EHInputSection<ELFT>::EHInputSection(ObjectFile<ELFT> *F, |
| 182 | const Elf_Shdr *Header) |
| 183 | : SplitInputSection<ELFT>(F, Header, InputSectionBase<ELFT>::EHFrame) {} |
| 184 | |
| 185 | template <class ELFT> |
| 186 | bool EHInputSection<ELFT>::classof(const InputSectionBase<ELFT> *S) { |
| 187 | return S->SectionKind == InputSectionBase<ELFT>::EHFrame; |
| 188 | } |
| 189 | |
| 190 | template <class ELFT> |
| 191 | typename EHInputSection<ELFT>::uintX_t |
| 192 | EHInputSection<ELFT>::getOffset(uintX_t Offset) { |
| 193 | std::pair<uintX_t, uintX_t> *I = this->getRangeAndSize(Offset).first; |
| 194 | uintX_t Base = I->second; |
| 195 | if (Base == size_t(-1)) |
| 196 | return -1; // Not in the output |
| 197 | |
| 198 | uintX_t Addend = Offset - I->first; |
| 199 | return Base + Addend; |
| 200 | } |
| 201 | |
| 202 | template <class ELFT> |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 203 | MergeInputSection<ELFT>::MergeInputSection(ObjectFile<ELFT> *F, |
| 204 | const Elf_Shdr *Header) |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 205 | : SplitInputSection<ELFT>(F, Header, InputSectionBase<ELFT>::Merge) {} |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 206 | |
| 207 | template <class ELFT> |
| 208 | bool MergeInputSection<ELFT>::classof(const InputSectionBase<ELFT> *S) { |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 209 | return S->SectionKind == InputSectionBase<ELFT>::Merge; |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 210 | } |
| 211 | |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 212 | template <class ELFT> |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 213 | std::pair<std::pair<typename ELFFile<ELFT>::uintX_t, |
| 214 | typename ELFFile<ELFT>::uintX_t> *, |
| 215 | typename ELFFile<ELFT>::uintX_t> |
| 216 | SplitInputSection<ELFT>::getRangeAndSize(uintX_t Offset) { |
| Rafael Espindola | f82ed2a | 2015-10-24 22:51:01 +0000 | [diff] [blame] | 217 | ArrayRef<uint8_t> D = this->getSectionData(); |
| Rui Ueyama | 7ba639b | 2015-10-25 16:25:04 +0000 | [diff] [blame] | 218 | StringRef Data((const char *)D.data(), D.size()); |
| Rafael Espindola | f82ed2a | 2015-10-24 22:51:01 +0000 | [diff] [blame] | 219 | uintX_t Size = Data.size(); |
| 220 | if (Offset >= Size) |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 221 | error("Entry is past the end of the section"); |
| Rafael Espindola | f82ed2a | 2015-10-24 22:51:01 +0000 | [diff] [blame] | 222 | |
| 223 | // Find the element this offset points to. |
| 224 | auto I = std::upper_bound( |
| Rafael Espindola | d04c12a | 2015-11-11 15:20:45 +0000 | [diff] [blame] | 225 | Offsets.begin(), Offsets.end(), Offset, |
| Rafael Espindola | 1fe2d1e | 2015-11-11 15:55:00 +0000 | [diff] [blame] | 226 | [](const uintX_t &A, const std::pair<uintX_t, uintX_t> &B) { |
| Rafael Espindola | f82ed2a | 2015-10-24 22:51:01 +0000 | [diff] [blame] | 227 | return A < B.first; |
| 228 | }); |
| Rafael Espindola | 3299499 | 2015-11-11 15:40:37 +0000 | [diff] [blame] | 229 | uintX_t End = I == Offsets.end() ? Data.size() : I->first; |
| Rafael Espindola | f82ed2a | 2015-10-24 22:51:01 +0000 | [diff] [blame] | 230 | --I; |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 231 | return std::make_pair(&*I, End); |
| 232 | } |
| 233 | |
| 234 | template <class ELFT> |
| 235 | typename MergeInputSection<ELFT>::uintX_t |
| 236 | MergeInputSection<ELFT>::getOffset(uintX_t Offset) { |
| 237 | std::pair<std::pair<uintX_t, uintX_t> *, size_t> T = |
| 238 | this->getRangeAndSize(Offset); |
| 239 | std::pair<uintX_t, uintX_t> *I = T.first; |
| 240 | uintX_t End = T.second; |
| Rafael Espindola | f82ed2a | 2015-10-24 22:51:01 +0000 | [diff] [blame] | 241 | uintX_t Start = I->first; |
| 242 | |
| 243 | // Compute the Addend and if the Base is cached, return. |
| 244 | uintX_t Addend = Offset - Start; |
| Rafael Espindola | 3299499 | 2015-11-11 15:40:37 +0000 | [diff] [blame] | 245 | uintX_t &Base = I->second; |
| Rafael Espindola | 1fe2d1e | 2015-11-11 15:55:00 +0000 | [diff] [blame] | 246 | if (Base != uintX_t(-1)) |
| Rafael Espindola | f82ed2a | 2015-10-24 22:51:01 +0000 | [diff] [blame] | 247 | return Base + Addend; |
| 248 | |
| 249 | // Map the base to the offset in the output section and cashe it. |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 250 | ArrayRef<uint8_t> D = this->getSectionData(); |
| 251 | StringRef Data((const char *)D.data(), D.size()); |
| Rafael Espindola | f82ed2a | 2015-10-24 22:51:01 +0000 | [diff] [blame] | 252 | StringRef Entry = Data.substr(Start, End - Start); |
| 253 | Base = |
| 254 | static_cast<MergeOutputSection<ELFT> *>(this->OutSec)->getOffset(Entry); |
| 255 | return Base + Addend; |
| Rafael Espindola | 5d83ccd | 2015-08-13 19:18:30 +0000 | [diff] [blame] | 256 | } |
| 257 | |
| Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 258 | namespace lld { |
| 259 | namespace elf2 { |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 260 | template class InputSectionBase<object::ELF32LE>; |
| 261 | template class InputSectionBase<object::ELF32BE>; |
| 262 | template class InputSectionBase<object::ELF64LE>; |
| 263 | template class InputSectionBase<object::ELF64BE>; |
| 264 | |
| Rafael Espindola | 53d5cea | 2015-09-21 17:47:00 +0000 | [diff] [blame] | 265 | template class InputSection<object::ELF32LE>; |
| 266 | template class InputSection<object::ELF32BE>; |
| 267 | template class InputSection<object::ELF64LE>; |
| 268 | template class InputSection<object::ELF64BE>; |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 269 | |
| Rafael Espindola | 0c6a4f1 | 2015-11-11 19:54:14 +0000 | [diff] [blame] | 270 | template class EHInputSection<object::ELF32LE>; |
| 271 | template class EHInputSection<object::ELF32BE>; |
| 272 | template class EHInputSection<object::ELF64LE>; |
| 273 | template class EHInputSection<object::ELF64BE>; |
| 274 | |
| Rafael Espindola | c159c96 | 2015-10-19 21:00:02 +0000 | [diff] [blame] | 275 | template class MergeInputSection<object::ELF32LE>; |
| 276 | template class MergeInputSection<object::ELF32BE>; |
| 277 | template class MergeInputSection<object::ELF64LE>; |
| 278 | template class MergeInputSection<object::ELF64BE>; |
| Michael J. Spencer | 84487f1 | 2015-07-24 21:03:07 +0000 | [diff] [blame] | 279 | } |
| 280 | } |