From d638e0acb3930103ce173e42b7f3d971e660fe39 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Mon, 3 Oct 2005 21:49:17 +0000 Subject: [PATCH] * elf32-xtensa.c (relocations_reach): Skip range check for absolute literals. --- bfd/ChangeLog | 5 +++++ bfd/elf32-xtensa.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 683a88bd63..3ba259bd80 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-10-03 David Heine + + * elf32-xtensa.c (relocations_reach): Skip range check for + absolute literals. + 2005-10-03 Alan Modra * elf.c (_bfd_elf_get_synthetic_symtab): Set BSF_GLOBAL on diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index fc235deeb5..e565942bff 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c @@ -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) {