summaryrefslogtreecommitdiff
path: root/gold/aarch64-reloc.def
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2016-06-28 15:43:43 -0700
committerCary Coutant <ccoutant@gmail.com>2016-06-28 15:50:29 -0700
commit5627d875bc059b5c008b408470dcb869b0a8ebd6 (patch)
treeb3aa9131bd572288c1be0d44406953d1da836a85 /gold/aarch64-reloc.def
parent3a4f096e5ff41e2a3b832cf6c815ad1f28437c63 (diff)
downloadbinutils-gdb-5627d875bc059b5c008b408470dcb869b0a8ebd6.tar.gz
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.
Diffstat (limited to 'gold/aarch64-reloc.def')
-rw-r--r--gold/aarch64-reloc.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/aarch64-reloc.def b/gold/aarch64-reloc.def
index f33929b4e85..763d372c67e 100644
--- a/gold/aarch64-reloc.def
+++ b/gold/aarch64-reloc.def
@@ -32,6 +32,9 @@
// Type----------------------------+ | | | | | | |
// Name | | | | | | | |
// | | | | | | | | |
+ARD(NONE , STATIC , NONE , Y, -1, 0,0 , 0,0 , 0 , DATA )
+// Above is from Table 4-5, Null relocation codes
+
ARD(ABS64 , STATIC , DATA , Y, -1, 0,0 , 0,0 , Symbol::ABSOLUTE_REF , DATA )
ARD(ABS32 , STATIC , DATA , Y, -1, 31,32 , 0,0 , Symbol::ABSOLUTE_REF , DATA )
ARD(ABS16 , STATIC , DATA , Y, -1, 15,16 , 0,0 , Symbol::ABSOLUTE_REF , DATA )