[AArch64] Recognize R_AARCH64_P32_ABS32 as 32-bit relocation in readelf
authorJiong Wang <jiong.wang@arm.com>
Tue, 13 Dec 2016 12:52:59 +0000 (12:52 +0000)
committerJiong Wang <jiong.wang@arm.com>
Tue, 13 Dec 2016 12:52:59 +0000 (12:52 +0000)
binutils/
* readelf.c (is_32bit_abs_reloc): Recognize R_AARCH64_P32_ABS32.

binutils/ChangeLog
binutils/readelf.c

index 394c5f28cac273d27ccbce37081405ca9df67f8c..45ec4537b92fd345f75963c8d6495ca34538b0bd 100644 (file)
@@ -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
index 69d88892d707bff0bc7bb54dfa74d29c136b8a64..c8e972690368f51d068adb40f672d7985f7e1e48 100644 (file)
@@ -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: