summaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2002-03-26 18:13:54 +0000
committerH.J. Lu <hjl@lucon.org>2002-03-26 18:13:54 +0000
commite24506971b808e55df37568408fab505e9a376db (patch)
tree2b43a043f0c7d588045b9a080f48d56be491e006 /bfd/elflink.h
parentdfc70ea793d3b62605fc503341cb55b6261d49e2 (diff)
downloadgdb-e24506971b808e55df37568408fab505e9a376db.tar.gz
2002-03-26 H.J. Lu (hjl@gnu.org)
* elflink.h (elf_link_input_bfd): Revert the last change since the gcc exception handling isn't fixed yet.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index fa960291f71..43abe17bce8 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -6662,7 +6662,8 @@ elf_link_input_bfd (finfo, input_bfd)
if (sec != NULL && elf_discarded_section (sec))
{
#if BFD_VERSION_DATE < 20031005
- if ((o->flags & SEC_DEBUGGING) != 0)
+ if ((o->flags & SEC_DEBUGGING) != 0
+ || (sec->flags & SEC_LINK_ONCE) != 0)
{
#if BFD_VERSION_DATE > 20021005
(*finfo->info->callbacks->warning)