From 55f8b826e7939968d06a8acad344237c09e6aeaf Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 15 Sep 2008 13:53:17 +0000 Subject: [PATCH] * write.c (install_reloc): Correct EMIT_SECTION_SYMBOLS test. --- gas/ChangeLog | 4 ++++ gas/write.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 51e0c610b71..8490ad8d770 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2008-09-15 Alan Modra + + * write.c (install_reloc): Correct EMIT_SECTION_SYMBOLS test. + 2008-09-15 Alan Modra * config/tc-frv.c (md_apply_fix): Use abs_section_sym for diff --git a/gas/write.c b/gas/write.c index 55c757d3562..f164e2eeab0 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, -- 2.30.2