Implement the R_AARCH64_NONE relocation.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 28 Jun 2016 22:43:43 +0000 (15:43 -0700)
committerCary Coutant <ccoutant@gmail.com>
Tue, 28 Jun 2016 22:50:29 +0000 (15:50 -0700)
commit5627d875bc059b5c008b408470dcb869b0a8ebd6
treeb3aa9131bd572288c1be0d44406953d1da836a85
parent3a4f096e5ff41e2a3b832cf6c815ad1f28437c63
Implement the R_AARCH64_NONE relocation.

According to "ELF for the ARM(r) 64-bit Architecture (AArch64)",
this relocation can be used "to prevent removal of sections that
might otherwise appear to be unused."

gold/
* aarch64-reloc.def (NONE): New relocation.
* aarch64.cc (Target_aarch64::Scan::local): Handle R_AARCH64_NONE.
(Target_aarch64::Scan::global): Likewise.
* testsuite/Makefile.am (aarch64_reloc_none): New test.
* testsuite/Makefile.in: Regenerate.
* testsuite/aarch64_reloc_none.s: New test source file.
* testsuite/aarch64_reloc_none.sh: New test script.
gold/ChangeLog
gold/aarch64-reloc.def
gold/aarch64.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/aarch64_reloc_none.s [new file with mode: 0644]
gold/testsuite/aarch64_reloc_none.sh [new file with mode: 0755]