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 | ||
|---|---|---|
| 510 | The NOP instruction is supported by only limited number of ARM architectures. | |
| 541 | 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 | ||
|---|---|---|
| 500 | The name of the function should reflect that you only fixup call-like instructions. | |
| 539 | You mix *unresolved* with *undefined* in this whole fragment of added code. | |
| 541 | 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.