File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -655,10 +655,8 @@ void GotSection::addConstant(const Relocation &r) { relocations.push_back(r); }
655655void GotSection::addEntry (const Symbol &sym) {
656656 assert (sym.auxIdx == symAux.size () - 1 );
657657 symAux.back ().gotIdx = numEntries++;
658- if (sym.hasFlag (NEEDS_GOT_AUTH)) {
659- assert (config->emachine == EM_AARCH64);
658+ if (sym.hasFlag (NEEDS_GOT_AUTH))
660659 authEntries.push_back ({(numEntries - 1 ) * config->wordsize , sym.isFunc ()});
661- }
662660}
663661
664662bool GotSection::addTlsDescEntry (const Symbol &sym) {
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ class GotSection final : public SyntheticSection {
135135 size_t offset;
136136 bool isSymbolFunc;
137137 };
138- SmallVector<AuthEntryInfo> authEntries;
138+ SmallVector<AuthEntryInfo, 0 > authEntries;
139139};
140140
141141// .note.GNU-stack section.
You can’t perform that action at this time.
0 commit comments