diff options
author | Alan Modra <amodra@gmail.com> | 2015-12-01 11:10:23 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-12-01 11:15:02 +1030 |
commit | 0a5ff21b13783cef3b26680d1673b1ae37697aeb (patch) | |
tree | 9dba30ca351c5f1cc3c2b596ae727d89023726cd /bfd/elf32-arc.c | |
parent | 56529cb37488352c6b6ef6867de5e2d502ac0218 (diff) | |
download | gdb-0a5ff21b13783cef3b26680d1673b1ae37697aeb.zip gdb-0a5ff21b13783cef3b26680d1673b1ae37697aeb.tar.gz gdb-0a5ff21b13783cef3b26680d1673b1ae37697aeb.tar.bz2 |
ARC port broken reloc processing
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.
Diffstat (limited to 'bfd/elf32-arc.c')
-rw-r--r-- | bfd/elf32-arc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index 37a426c..c02db9d 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -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" } |