It is required to fill up the GNU hash table section before its finalize() method is called.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM with a nit.
ELF/Writer.cpp | ||
---|---|---|
584–591 | Can you merge these two? // Finalizers fix each section's size. // .dynamic section's finalizer may add strings to .dynstr, so finalize that early. // Likewise, .dynsym is finalized early since that may fill up .gnu.hash. Out<ELFT>::Dynamic->finalize(); if (isOutputDynamic()) Out<ELFT>::DynSymTab->finalize(); |
Can you merge these two?