Fixed recordRelocation for 32-bit platforms#3433
Conversation
|
This will produce completely broken binaries. The relocations has to be recorded and applied when saving into the image even on 32-bit platforms. |
|
@jkotas |
|
The implementation in jitinterface.cpp is for the JIT case. It needs to be like crossgen https://github.com/dotnet/coreclr/blob/master/src/zap/zapinfo.cpp#L2468 for the AOT compilation case. |
|
@jkotas |
|
|
||
|
|
||
| IMAGE_REL_BASED_THUMB_BRANCH24 = 0x13, // Thumb2: based B, BL | ||
| IMAGE_REL_THUMB_BRANCH24 = 0x14, // Thumb2: B, BL |
There was a problem hiding this comment.
@hoyMS Why are we mixing IMAGE_REL_BASED_XXX and IMAGE_REL_THUMB_XXX here (it started with change 1628798 on 9/22/2016)? They are two different enums. It will results into having two different values for the same thing; and it will likely result into collisions pretty soon as well.
@sergign60 Could you please keep IMAGE_REL_THUMB_XXX together, and add TODO with a link to a issue to get it cleaned up? I expect that it will need to get cleaned up to make progress on the ARM support.
|
Thanks! |
No description provided.