If a relocation group doesn't have the RELOCATION_GROUP_HAS_ADDEND_FLAG set, then this implies the group's addend equals zero.
In this case android packed format won't encode an explicit addend delta, instead we need to set Addend, the "previous addend" variable, to zero by ourself.
Fixes: rL316543
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Object/ELF.cpp | ||
---|---|---|
405–411 ↗ | (On Diff #160238) | This can be simplified to if (GroupHasAddend && !GroupedByAddend) Addend += ReadSLEB(); R.r_addend = Addend; |