PR22374 testcase, function pointer references in .data
[deliverable/binutils-gdb.git] / gas / write.c
index 4f6547dfb85bb0a15d63c58c5372453cdb960cc3..df88905013b9d12ab82000a5d20b137dd7cc4362 100644 (file)
@@ -724,7 +724,7 @@ resolve_reloc_expr_symbols (void)
              as_bad_where (r->file, r->line, _("invalid reloc expression"));
              sec = NULL;
            }
-         else if (sym != NULL)
+         else if (sym != NULL && sec != NULL)
            {
              /* Convert relocs against local symbols to refer to the
                 corresponding section symbol plus offset instead.  Keep
This page took 0.022657 seconds and 4 git commands to generate.