[BFD][AARCH64]Properly truncate no overflow checking relocation value for load/store immediate.
Nick Clifton
nickc@redhat.com
Thu Apr 26 15:04:00 GMT 2018
Hi Renlin,
> bfd/ChangeLog:
>
> 2018-04-26 Renlin Li <renlin.li@arm.com>
>
> Â Â Â Â * elfnn-aarch64.c (elfNN_aarch64_howto_table): Correct the bitsize
> Â Â Â Â field of R_AARCH64_LD64_GOT_LO12_NC, R_AARCH64_P32_LD32_GOT_LO12_NC,
> Â Â Â Â R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC,
> Â Â Â Â R_AARCH64_P32_LD32_GOTTPREL_LO12_NC,
> Â Â Â Â R_AARCH64_LDST16_ABS_LO12_NC,
> Â Â Â Â R_AARCH64_P32_TLSDESC_LD32_LO12_NC.
> Â Â Â Â R_AARCH64_P32_TLSDESC_LD32_LO12_NC.
> Â Â Â Â R_AARCH64_TLSDESC_LD64_LO12_NC.
> Â Â Â Â R_AARCH64_LDST32_ABS_LO12_NC,
> Â Â Â Â R_AARCH64_LDST64_ABS_LO12_NC,
> Â Â Â Â R_AARCH64_LDST128_ABS_LO12_NC,
> Â Â Â Â * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Truncate the
> Â Â Â Â immediate value for load/store instruction.
>
> ld/ChangeLog:
>
> 2018-04-26 Renlin Li <renlin.li@arm.com>
>
> Â Â Â Â * testsuite/ld-aarch64/emit-relocs-115.d: Update test with new value.
> Â Â Â Â * testsuite/ld-aarch64/emit-relocs-534.d: Likewise.
> Â Â Â Â * testsuite/ld-aarch64/emit-relocs-555.d: Likewise.
Approved - please apply.
Cheers
Nick
More information about the Binutils
mailing list