summaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-09-15 13:53:17 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-09-15 13:53:17 +0000
commite2949f4f9df7818e40a3ab2521bb4ceb8e4f809c (patch)
treeead322e0869cd1676f073f843c9e0485dae445c9 /gas/write.c
parentf595c1a6635ec31f52ca6da5caf7b6e1822bf604 (diff)
downloadbinutils-redhat-e2949f4f9df7818e40a3ab2521bb4ceb8e4f809c.tar.gz
* write.c (install_reloc): Correct EMIT_SECTION_SYMBOLS test.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/write.c b/gas/write.c
index 55c757d356..f164e2eeab 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -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,