Details
Diff Detail
Event Timeline
LGTM. Thank you for doing this!
ELF/SyntheticSections.cpp | ||
---|---|---|
568 | This is not related to this patch, but probably we should make the MIPS GOT a separate class than the GOT for all the other archs, because MIPS seems too different. (I'm just writing what I'm thinking, so no need to take an action.) | |
ELF/SyntheticSections.h | ||
74 | Isn't it an error to call getVA before setting OutSec? If so, use assert. | |
ELF/Writer.cpp | ||
561 | This function seems to be doing the same thing as before (am I right?). The new code seems a bit hard to understand to me. Can you keep this function as is? | |
582 | And inline this function here. |
ELF/SyntheticSections.h | ||
---|---|---|
74 | getVA() is called from getPPC64TocBase(), which in its turn is called from scanRelocs(). The Out<ELFT>::Got->getVA() used to return 0 on such occasions, but now we do crash, because we don't have OutSec yet. |
Isn't it an error to call getVA before setting OutSec? If so, use assert.