forked from OSchip/llvm-project
parent
9bec24ab88
commit
e9e1d323c6
|
@ -273,7 +273,7 @@ EHInputSection<ELFT>::EHInputSection(ObjectFile<ELFT> *F,
|
|||
: SplitInputSection<ELFT>(F, Header, InputSectionBase<ELFT>::EHFrame) {
|
||||
// Mark .eh_frame sections as live by default because there are
|
||||
// usually no relocations that point to .eh_frames. Otherwise,
|
||||
// the garbage collector would drop all .eh_frame sections.
|
||||
// the garbage collector would drop all .eh_frame sections.
|
||||
this->Live = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -315,7 +315,7 @@ static uint32_t hashSysv(StringRef Name) {
|
|||
template <class ELFT> void HashTableSection<ELFT>::finalize() {
|
||||
this->Header.sh_link = Out<ELFT>::DynSymTab->SectionIndex;
|
||||
|
||||
unsigned NumEntries = 2; // nbucket and nchain.
|
||||
unsigned NumEntries = 2; // nbucket and nchain.
|
||||
NumEntries += Out<ELFT>::DynSymTab->getNumSymbols(); // The chain entries.
|
||||
|
||||
// Create as many buckets as there are symbols.
|
||||
|
|
Loading…
Reference in New Issue