[PATCH, AArch64] Correct the relocation names for R_AARCH64_TLSDESC_LD_PREL19 and R_AARCH64_TLSDESC_ADR_PAGE21

Yufeng Zhang Yufeng.Zhang@arm.com
Tue May 28 14:47:00 GMT 2013


Hi,

The attached patch corrects the relocation names for 
R_AARCH64_TLSDESC_LD_PREL19 and R_AARCH64_TLSDESC_ADR_PAGE21 in 
accordance with the AAELF64 document.

OK for the trunk?

Thanks,
Yufeng


bfd/

         * reloc.c (BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE): Rename to ...
         (BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE21): ... this.
         (BFD_RELOC_AARCH64_TLSDESC_LD64_PREL19): Rename to ...
         (BFD_RELOC_AARCH64_TLSDESC_LD_PREL19): ... this.
         * bfd-in2.h: Regenerate.
         * libbfd.h: Regenerate.
         * elf64-aarch64.c (IS_AARCH64_TLSDESC_RELOC): Update to use the 
correct names.
         (elf64_aarch64_tlsdesc_howto_table): Likewise.
         (elf64_aarch64_reloc_map): Likewise.
         (aarch64_resolve_relocation): Likewise.
         (bfd_elf_aarch64_put_addend): Likewise.
         (aarch64_tls_transition_without_check): Likewise.
         (aarch64_reloc_got_type): Likewise.
         (elf64_aarch64_final_link_relocate): Likewise.
         (elf64_aarch64_tls_relax): Likewise.
         (elf64_aarch64_relocate_section): Likewise.
         (elf64_aarch64_gc_sweep_hook): Likewise.
         (elf64_aarch64_check_relocs): Likewise.

gas/

         * config/tc-aarch64.c (reloc_table): Update to use
         BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE21 instead of 
BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE.
         (md_apply_fix): Likewise.
         (aarch64_force_relocation): Likewise.

gas/testsuite/

         * gas/aarch64/tls.d: Update.
         * gas/aarch64/tls.s: Update.

include/

         * elf/aarch64.h (R_AARCH64_TLSDESC_LD64_PREL19): Rename to ...
         (R_AARCH64_TLSDESC_LD_PREL19): ... this.
         (R_AARCH64_TLSDESC_ADR_PAGE): Rename to ...
         (R_AARCH64_TLSDESC_ADR_PAGE21): ... this.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20130528/e38052e0/attachment.ksh>


More information about the Binutils mailing list