diff options
author | Alan Modra <amodra@gmail.com> | 2000-05-02 00:12:52 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-05-02 00:12:52 +0000 |
commit | 3f9b03b5daf721100e6cb36e2a3f903e96ea1dbd (patch) | |
tree | 619378e1e78b4c14b6282222852fd57f883431f0 /bfd/elf32-hppa.c | |
parent | ec1428fa1c4dc6092b5b815f0eb5c5d3f306c41d (diff) | |
download | gdb-3f9b03b5daf721100e6cb36e2a3f903e96ea1dbd.zip gdb-3f9b03b5daf721100e6cb36e2a3f903e96ea1dbd.tar.gz gdb-3f9b03b5daf721100e6cb36e2a3f903e96ea1dbd.tar.bz2 |
Assorted code cleanup and fixes for hppa. Re-enable elf32-hppa as
it now compiles even if it doesn't work too well.
Diffstat (limited to 'bfd/elf32-hppa.c')
-rw-r--r-- | bfd/elf32-hppa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c index dfabbad..1fdd4ab 100644 --- a/bfd/elf32-hppa.c +++ b/bfd/elf32-hppa.c @@ -311,17 +311,17 @@ hppa_elf_relocate_insn (abfd, input_sect, insn, address, sym_value, case BL: case BE: case BLE: - /* XXX computing constant_value is not needed??? */ + /* XXX r_addend ignored ???. */ constant_value = assemble_17 ((insn & 0x001f0000) >> 16, (insn & 0x00001ffc) >> 2, insn & 1); - constant_value = (constant_value << 15) >> 15; + constant_value = (constant_value << (BFD_ARCH_SIZE-17)) + >> (BFD_ARCH_SIZE-17); if (pcrel) { - sym_value -= - address + input_sect->output_offset - + input_sect->output_section->vma; + sym_value -= (address + input_sect->output_offset + + input_sect->output_section->vma); sym_value = hppa_field_adjust (sym_value, -8, r_field); } else |