Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM. Thank you for doing this!
ELF/SyntheticSections.cpp | ||
---|---|---|
568 ↗ | (On Diff #77471) | 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 ↗ | (On Diff #77471) | Isn't it an error to call getVA before setting OutSec? If so, use assert. |
ELF/Writer.cpp | ||
561 ↗ | (On Diff #77471) | 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 ↗ | (On Diff #77471) | And inline this function here. |
ELF/SyntheticSections.h | ||
---|---|---|
74 ↗ | (On Diff #77471) | 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. |