* config/tc-mips.c (append_insn): Don't rightshift BFD_RELOC_16_PCREL.
authorThiemo Seufer <ths@networkno.de>
Wed, 12 Sep 2001 21:19:37 +0000 (21:19 +0000)
committerThiemo Seufer <ths@networkno.de>
Wed, 12 Sep 2001 21:19:37 +0000 (21:19 +0000)
gas/ChangeLog
gas/config/tc-mips.c

index 3f0dab798680ce41359b1e2d82da5f7516918180..272fa0090260f8bf27b5568ef707a165f7b16f2e 100644 (file)
@@ -1,3 +1,7 @@
+2001-09-12  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (append_insn): Don't rightshift BFD_RELOC_16_PCREL.
+
 2001-09-11  Richard Henderson  <rth@redhat.com>
 
        * config/tc-alpha.c (alpha_elf_section_letter): New.
index f9b58117444b42d1cf62b480cb640a17c6c10daf..d31b4c4bc7e59ac3ae64a656fd7546dadf5005ce 100644 (file)
@@ -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: