This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Attachment: patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]