Skip to content

Commit dca427b

Browse files
committed
Address review comments
1 parent 5ae637c commit dca427b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lld/ELF/SyntheticSections.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,10 +655,8 @@ void GotSection::addConstant(const Relocation &r) { relocations.push_back(r); }
655655
void 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

664662
bool GotSection::addTlsDescEntry(const Symbol &sym) {

lld/ELF/SyntheticSections.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)