* write.c (install_reloc): Correct EMIT_SECTION_SYMBOLS test.
authorAlan Modra <amodra@gmail.com>
Mon, 15 Sep 2008 13:53:17 +0000 (13:53 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 15 Sep 2008 13:53:17 +0000 (13:53 +0000)
gas/ChangeLog
gas/write.c

index 51e0c610b71bdfb4b6674adddb933544a6a2a5c1..8490ad8d770ba0fa86bd22f78c89c509ef3897da 100644 (file)
@@ -1,3 +1,7 @@
+2008-09-15  Alan Modra  <amodra@bigpond.net.au>
+
+       * write.c (install_reloc): Correct EMIT_SECTION_SYMBOLS test.
+
 2008-09-15  Alan Modra  <amodra@bigpond.net.au>
 
        * config/tc-frv.c (md_apply_fix): Use abs_section_sym for
index 55c757d3562ff844bbd13c0ee1e972a7681a6d4f..f164e2eeab06e590972eeba811adbb748a3a96e4 100644 (file)
@@ -1090,8 +1090,8 @@ install_reloc (asection *sec, arelent *reloc, fragS *fragp,
       && (sym = *reloc->sym_ptr_ptr) != NULL
       && (sym->flags & BSF_KEEP) == 0
       && ((sym->flags & BSF_SECTION_SYM) == 0
-         || !EMIT_SECTION_SYMBOLS
-         || !bfd_is_abs_section (sym->section)))
+         || (EMIT_SECTION_SYMBOLS
+             && !bfd_is_abs_section (sym->section))))
     as_bad_where (file, line, _("redefined symbol cannot be used on reloc"));
 
   s = bfd_install_relocation (stdoutput, reloc,
This page took 0.029138 seconds and 4 git commands to generate.