Don't blindly OR in the new value, but clear the existing one, since
it can be nonzero. Read out the existing value before, and add
into the desired offset. (The add is done outside of the applyMOV,
to handle potential overflow between the two.)
Details
Details
- Reviewers
compnerd zatrazz ruiu peter.smith
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Hmm, does the input actually contain a relocation with an addend? I see that you updated the test but not the input?
Comment Actions
I updated the input SectionData of the test as well, to contain a movw/movt pair with a nonzero addend.
Comment Actions
This one should apply cleanly on top of the latest SVN trunk now that D23053 is applied in r277836 (they both touched the same SectionData line in the test).