[Gold, aarch64] Implement some AArch64 relocs.
authorHan Shen <shenhan@google.com>
Tue, 26 Jul 2016 15:49:12 +0000 (08:49 -0700)
committerHan Shen <shenhan@google.com>
Tue, 26 Jul 2016 15:55:14 +0000 (08:55 -0700)
commit8769bc4bab847cefc2bb5682a0a0dad579528ac8
treeb93a01a9472bc7677a46cfb2156cfcb0f7e3c84d
parente0461dbb653dbb3c46ea7a15054fd2c98f879f31
[Gold, aarch64] Implement some AArch64 relocs.

This CL implemented the following relocs for AArch64 target.
  - R_AARCH64_MOVW_UABS_G*
  - R_AARCH64_MOVW_SABS_G* relocations

gold/ChangeLog

2016-07-26 Igor Kudrin  <ikudrin@accesssoftek.com>

    * aarch64-reloc-property.cc (Rvalue_bit_select_impl): New class.
    (rvalue_bit_select): Use Rvalue_bit_select_impl.
    * aarch64-reloc.def (MOVW_UABS_G0, MOVW_UABS_G0_NC,
    MOVW_UABS_G1,
    MOVW_UABS_G1_NC, MOVW_UABS_G2, MOVW_UABS_G2_NC, MOVW_UABS_G3,
    MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2): New relocations.
    * aarch64.cc (Target_aarch64::Scan::local): Add cases for new
    MOVW_UABS_* and MOVW_SABS_* relocations.
    (Target_aarch64::Scan::global): Likewise.
    (Target_aarch64::Relocate::relocate): Add cases and handlings
    for new MOVW_UABS_* and MOVW_SABS_* relocations.
    * testsuite/Makefile.am (aarch64_relocs): New test.
    * testsuite/Makefile.in: Regenerate.
    * testsuite/aarch64_globals.s: New test source file.
    * testsuite/aarch64_relocs.s: Likewise.
    * testsuite/aarch64_relocs.sh: New test script.
gold/aarch64-reloc-property.cc
gold/aarch64-reloc.def
gold/aarch64.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/aarch64_globals.s [new file with mode: 0644]
gold/testsuite/aarch64_relocs.s [new file with mode: 0644]
gold/testsuite/aarch64_relocs.sh [new file with mode: 0644]
This page took 0.027404 seconds and 4 git commands to generate.