@@ -155,10 +155,8 @@ class lld::elf2::OutputSection final
155
155
typedef typename ELFFile<ELFT>::Elf_Shdr Elf_Shdr;
156
156
typedef typename ELFFile<ELFT>::Elf_Rel Elf_Rel;
157
157
typedef typename ELFFile<ELFT>::Elf_Rela Elf_Rela;
158
- OutputSection (StringRef Name, uint32_t sh_type, uintX_t sh_flags,
159
- RelocationSection<ELFT> &RelaDynSec)
160
- : OutputSectionBase<ELFT::Is64Bits>(Name, sh_type, sh_flags),
161
- RelaDynSec (RelaDynSec) {}
158
+ OutputSection (StringRef Name, uint32_t sh_type, uintX_t sh_flags)
159
+ : OutputSectionBase<ELFT::Is64Bits>(Name, sh_type, sh_flags) {}
162
160
163
161
void addChunk (SectionChunk<ELFT> *C);
164
162
void writeTo (uint8_t *Buf) override ;
@@ -175,7 +173,6 @@ class lld::elf2::OutputSection final
175
173
176
174
private:
177
175
std::vector<SectionChunk<ELFT> *> Chunks;
178
- RelocationSection<ELFT> &RelaDynSec;
179
176
};
180
177
181
178
namespace {
@@ -922,7 +919,7 @@ template <class ELFT> void Writer<ELFT>::createSections() {
922
919
OutputSection<ELFT> *&Sec = Map[Key];
923
920
if (!Sec) {
924
921
Sec = new (CAlloc.Allocate ())
925
- OutputSection<ELFT>(Key.Name , Key.sh_type , Key.sh_flags , RelaDynSec );
922
+ OutputSection<ELFT>(Key.Name , Key.sh_type , Key.sh_flags );
926
923
OutputSections.push_back (Sec);
927
924
}
928
925
return Sec;
0 commit comments