* elf32-xtensa.c (relocations_reach): Skip range check for
authorBob Wilson <bob.wilson@acm.org>
Mon, 3 Oct 2005 21:49:17 +0000 (21:49 +0000)
committerBob Wilson <bob.wilson@acm.org>
Mon, 3 Oct 2005 21:49:17 +0000 (21:49 +0000)
absolute literals.

bfd/ChangeLog
bfd/elf32-xtensa.c

index 683a88b..3ba259b 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-03  David Heine  <dlheine@tensilica.com>
+
+       * elf32-xtensa.c (relocations_reach): Skip range check for
+       absolute literals.
+
 2005-10-03  Alan Modra  <amodra@bigpond.net.au>
 
        * elf.c (_bfd_elf_get_synthetic_symtab): Set BSF_GLOBAL on
index fc235de..e565942 100644 (file)
@@ -7462,6 +7462,11 @@ relocations_reach (source_reloc *reloc,
          != sec->output_section)
        return FALSE;
 
+      /* Absolute literals in the same output section can always be
+        combined.  */
+      if (reloc[i].is_abs_literal)
+       continue;
+
       /* A literal with no PC-relative relocations can be moved anywhere.  */
       if (reloc[i].opnd != -1)
        {