From 3f9b03b5daf721100e6cb36e2a3f903e96ea1dbd Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 2 May 2000 00:12:52 +0000 Subject: Assorted code cleanup and fixes for hppa. Re-enable elf32-hppa as it now compiles even if it doesn't work too well. --- bfd/elf32-hppa.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bfd/elf32-hppa.c') 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 -- cgit v1.1