From: Thiemo Seufer Date: Wed, 12 Sep 2001 21:19:37 +0000 (+0000) Subject: * config/tc-mips.c (append_insn): Don't rightshift BFD_RELOC_16_PCREL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=233b8738b057f7a9bfc9e37d76ae78e83f99c2e0;p=binutils-gdb.git * config/tc-mips.c (append_insn): Don't rightshift BFD_RELOC_16_PCREL. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 3f0dab79868..272fa009026 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2001-09-12 Thiemo Seufer + + * config/tc-mips.c (append_insn): Don't rightshift BFD_RELOC_16_PCREL. + 2001-09-11 Richard Henderson * config/tc-alpha.c (alpha_elf_section_letter): New. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index f9b58117444..d31b4c4bc7e 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -1899,7 +1899,7 @@ append_insn (place, ip, address_expr, reloc_type, unmatched_hi) break; case BFD_RELOC_16_PCREL: - ip->insn_opcode |= (address_expr->X_add_number >> 2) & 0xffff; + ip->insn_opcode |= address_expr->X_add_number & 0xffff; break; case BFD_RELOC_16_PCREL_S2: