shouldImport was not returning true in PIC mode even though our
assumption elsewhere (in Relocations.cpp:scanRelocations) is that we
don't report undefined symbols in PIC mode (at least not today.
This was resulting functions that were undefined and but also not
imported which hits an assert later on that all functions have valid
indexes.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Yes, this was already the assumption of code that reported undefined symbols. In emscripten this had gone unnoticed because we have traditionally also always passed --allow-undefined.
Our experimental -pie and -shared modes implicitly include --allow-undefined (at least for now they do).