Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aarch64, Darwin: Constrain page offset values to fit in the relocation.
This fixes issue gcc-mirror#52. We need to constrain the offsets in the @PAGE/@PAGEOFFS relocations to fit in a 24bit field - +/- 8Mb. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> gcc/ * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): If the offset will not fit into the relocation, then rewrite it as an addition.
- Loading branch information