According to the code model (ARM, Thumb, Thumb2) this patch updates the b/bl/blx 0 instructions with NOP.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp | ||
---|---|---|
509 | The NOP instruction is supported by only limited number of ARM architectures. | |
539 | Maybe better to log only successive fixups? Don't think the information about unresolved weaks is really useful. |
LGTM with nits.
lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp | ||
---|---|---|
499 | The name of the function should reflect that you only fixup call-like instructions. | |
537 | You mix *unresolved* with *undefined* in this whole fragment of added code. | |
539 | result is a bad name for variable. Consider something having word fixed in it. |
The name of the function should reflect that you only fixup call-like instructions.
fixupUnresolvedWeakCall sounds more correct.