aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2002-03-26 18:13:54 +0000
committerH.J. Lu <hjl.tools@gmail.com>2002-03-26 18:13:54 +0000
commitad43ed4ce48c9f83b38469eb543d1d8e2d3585a5 (patch)
tree874bfbca53498fd2127faca08a8ae454d6e95762 /bfd
parent3851fca49e08f131a68bbb80e9c0b09c162e0bc9 (diff)
downloadgdb-ad43ed4ce48c9f83b38469eb543d1d8e2d3585a5.zip
gdb-ad43ed4ce48c9f83b38469eb543d1d8e2d3585a5.tar.gz
gdb-ad43ed4ce48c9f83b38469eb543d1d8e2d3585a5.tar.bz2
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')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a6dc649..b28e978 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
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.
+
+2002-03-26 H.J. Lu (hjl@gnu.org)
+
* elflink.h (elf_link_input_bfd): Complain about relocations
against local symbols in discarded sections.
diff --git a/bfd/elflink.h b/bfd/elflink.h
index fa96029..43abe17 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)