]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ARC port broken reloc processing
authorAlan Modra <amodra@gmail.com>
Tue, 1 Dec 2015 00:40:23 +0000 (11:10 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 1 Dec 2015 00:45:02 +0000 (11:15 +1030)
This initialises howto.dst_mask so that relocations in debug sections
are applied by the generic reloc processing used by objdump to display
debug sections.

* elf32-arc.c (arc_elf_howto_init): Init dst_mask.

bfd/ChangeLog
bfd/elf32-arc.c

index b87f9148f8f6182b16e47a9ed1250b0b9b99484c..03a72d233097aeab85e23580e99356f3fbf23854 100644 (file)
@@ -1,3 +1,7 @@
+2015-12-01  Cupertino Miranda  <cupertino.miranda@synopsys.com>
+
+       * elf32-arc.c (arc_elf_howto_init): Init dst_mask.
+
 2015-11-20  Stefan Teleman  <stefan.teleman@oracle.com>
 
        PR ld/19260
index 37a426c4f25530ede59be2df744ad1c355bcc9d7..c02db9da7a804caf82d5e321a7416a1051585fe8 100644 (file)
@@ -230,7 +230,8 @@ static void arc_elf_howto_init (void)
 {
 #define ARC_RELOC_HOWTO(TYPE, VALUE, SIZE, BITSIZE, RELOC_FUNCTION, OVERFLOW, FORMULA) \
   elf_arc_howto_table[TYPE].pc_relative = \
-    (strstr (#FORMULA, " P ") != NULL || strstr (#FORMULA, " PDATA ") != NULL);
+    (strstr (#FORMULA, " P ") != NULL || strstr (#FORMULA, " PDATA ") != NULL); \
+  elf_arc_howto_table[TYPE].dst_mask = RELOC_FUNCTION(0, ~0);
 
   #include "elf/arc-reloc.def"
 }