diff options
author | Alan Modra <amodra@gmail.com> | 2019-11-27 10:51:27 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-11-27 11:58:17 +1030 |
commit | 96e2dbda089775359b130e16a337c169d67abc6b (patch) | |
tree | bf6bd5d7b9411b4a1e58d7f232ec0ebc866348c0 /bfd/dwarf2.c | |
parent | 855bae2c96421af06af9c77ed9b94b3dea5ae016 (diff) | |
download | gdb-96e2dbda089775359b130e16a337c169d67abc6b.zip gdb-96e2dbda089775359b130e16a337c169d67abc6b.tar.gz gdb-96e2dbda089775359b130e16a337c169d67abc6b.tar.bz2 |
Correct R_SH_IND12W handling
Using bfd_vma for insn is to avoid having to worry about sign
propagation in expressions involving insn and sym_value when bfd_vma
is not the same as unsigned long.
* elf32-sh.c (sh_reloc): Use a bfd_vma insn.
(sh_reloc <R_SH_IND12W>): Divide calculated relocation value
by two before applying to insn. Correct overflow test.
* coff-sh.c (sh_reloc): Likewise.
Diffstat (limited to 'bfd/dwarf2.c')
0 files changed, 0 insertions, 0 deletions