aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-11-09 16:47:29 +0000
committerNick Clifton <nickc@redhat.com>2020-11-09 16:47:29 +0000
commit3e50c9d9c973da7fbe3dc1050958cde7afc65b3c (patch)
treef3bcb32dcc849f51a9acfae55cae2e1715ea8146 /gas/write.c
parent0541201782c006c09d029d18a45c6e743cfea906 (diff)
downloadgdb-3e50c9d9c973da7fbe3dc1050958cde7afc65b3c.zip
gdb-3e50c9d9c973da7fbe3dc1050958cde7afc65b3c.tar.gz
gdb-3e50c9d9c973da7fbe3dc1050958cde7afc65b3c.tar.bz2
Revert delta accidentally applied with commit 9372689d72f902c8bae90536acc4747fb0a4b1e1
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/gas/write.c b/gas/write.c
index 36fc404..054f279 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -771,22 +771,6 @@ resolve_reloc_expr_symbols (void)
}
}
-static bfd_boolean
-is_dwo_section (asection *sec)
-{
- const char *name;
- int len;
-
- if (sec == NULL || (name = bfd_section_name (sec)) == NULL)
- return FALSE;
-
- len = strlen (name);
- if (len < 5)
- return FALSE;
-
- return strncmp (name + len - 4, ".dwo", 4) == 0;
-}
-
/* This pass over fixups decides whether symbols can be replaced with
section symbols. */
@@ -915,14 +899,6 @@ adjust_reloc_syms (bfd *abfd ATTRIBUTE_UNUSED,
#endif
}
- /* PR 26841: DWO sections are not supposed to have relocations. */
- if (is_dwo_section (sec) && seginfo->fix_root != NULL)
- {
- as_bad (_("DWO section '%s' contains unresolved expressions - this is not allowed"),
- bfd_section_name (sec));
- seginfo->fix_root = NULL; /* FIXME: Memory leak ? */
- }
-
dump_section_relocs (abfd, sec, stderr);
}