* elf32-rx.c (rx_elf_relocate_section): Fix typo: move
authorNick Clifton <nickc@redhat.com>
Fri, 19 Jul 2013 13:16:17 +0000 (13:16 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 19 Jul 2013 13:16:17 +0000 (13:16 +0000)
saw_subtract from R_RX_OPdiv to R_RX_OPneg.

bfd/ChangeLog
bfd/elf32-rx.c

index 2fce0a8b029c9a666419fa5502830d4348d103b7..d3d6ace6eecd2a6e33a2708ed7c463271d5c6bee 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-19  Nick Clifton  <nickc@redhat.com>
+
+       * elf32-rx.c (rx_elf_relocate_section): Fix typo: move
+       saw_subtract from R_RX_OPdiv to R_RX_OPneg.
+
 2013-07-18  Travis Snoozy  <quandary@remstate.com>
 
        PR ld/15721
index 8cca4b186e6e4572a98a69463bf28c9303381b87..39174bc4d147ef1e0576ba97d8cfd55aa2e0eef5 100644 (file)
@@ -1163,6 +1163,7 @@ rx_elf_relocate_section
          {
            int32_t tmp;
 
+           saw_subtract = TRUE;
            RX_STACK_POP (tmp);
            tmp = - tmp;
            RX_STACK_PUSH (tmp);
@@ -1207,7 +1208,6 @@ rx_elf_relocate_section
          {
            int32_t tmp1, tmp2;
 
-           saw_subtract = TRUE;
            RX_STACK_POP (tmp1);
            RX_STACK_POP (tmp2);
            tmp1 /= tmp2;