]> Git Repo - binutils.git/commitdiff
RL78 - fix ADDR16 relax
authorDJ Delorie <[email protected]>
Tue, 3 Mar 2015 22:49:44 +0000 (17:49 -0500)
committerDJ Delorie <[email protected]>
Tue, 3 Mar 2015 22:57:39 +0000 (17:57 -0500)
* elf32-rl78.c (rl78_elf_relax_section): Only relax ADDR16's if
there's a symbol.

bfd/ChangeLog
bfd/elf32-rl78.c

index 57bc637c00dad1bf10b3e5bf260e200ffae62703..72c919662969dc98e7cdc14752fd0fcc227e38fa 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-03  DJ Delorie  <[email protected]>
+
+       * elf32-rl78.c (rl78_elf_relax_section): Only relax ADDR16's if
+       there's a symbol.
+
 2015-02-28  Alan Modra  <[email protected]>
 
        * elf32-ppc.c (ppc_elf_tls_setup): Set no_tls_get_addr_opt if
index 1bb5edcac31f0286cae7369520f34a8c8c096dc2..acd82b9b6c1425b16b367e781dffa4de00f4ea4c 100644 (file)
@@ -2338,7 +2338,8 @@ rl78_elf_relax_section
 
        }
 
-      if ((irel->r_addend &  RL78_RELAXA_MASK) == RL78_RELAXA_ADDR16)
+      if ((irel->r_addend &  RL78_RELAXA_MASK) == RL78_RELAXA_ADDR16
+          && nrelocs > 0)
        {
          /*----------------------------------------------------------------------*/
          /* Some insns have both a 16-bit address operand and an 8-bit
This page took 0.031665 seconds and 4 git commands to generate.