This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] [AArch64] Recognize R_AARCH64_P32_ABS32 as 32-bit relocation in readelf
- From: Jiong Wang <jiwang at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 13 Dec 2016 12:56:32 -0000
- Subject: [binutils-gdb] [AArch64] Recognize R_AARCH64_P32_ABS32 as 32-bit relocation in readelf
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9282b95ab7bfe1cdf471e9dd609ae0ea7bbed925
commit 9282b95ab7bfe1cdf471e9dd609ae0ea7bbed925
Author: Jiong Wang <jiong.wang@arm.com>
Date: Tue Dec 13 12:52:59 2016 +0000
[AArch64] Recognize R_AARCH64_P32_ABS32 as 32-bit relocation in readelf
binutils/
* readelf.c (is_32bit_abs_reloc): Recognize R_AARCH64_P32_ABS32.
Diff:
---
binutils/ChangeLog | 4 ++++
binutils/readelf.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 394c5f2..45ec453 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2016-12-13 Jiong Wang <jiong.wang@arm.com>
+
+ * readelf.c (is_32bit_abs_reloc): Recognize R_AARCH64_P32_ABS32.
+
2016-12-13 Nick Clifton <nickc@redhat.com>
* MAINTAINERS (Past Maintainers): New section. Move Mark
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 69d8889..c8e9726 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -11731,7 +11731,8 @@ is_32bit_abs_reloc (unsigned int reloc_type)
case EM_960:
return reloc_type == 2; /* R_960_32. */
case EM_AARCH64:
- return reloc_type == 258; /* R_AARCH64_ABS32 */
+ return (reloc_type == 258
+ || reloc_type == 1); /* R_AARCH64_ABS32 || R_AARCH64_P32_ABS32 */
case EM_ADAPTEVA_EPIPHANY:
return reloc_type == 3;
case EM_ALPHA: