aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-02-07 17:40:24 +0000
committerIan Lance Taylor <ian@airs.com>1997-02-07 17:40:24 +0000
commitba4a45946c68e7982e8dc920c7f2bb6a7351497b (patch)
tree7159969527b575c159b1fe72b76276f668a80f07 /bfd
parentc301abbdbbbf2a794aa9de14ad72e22923d44502 (diff)
downloadgdb-ba4a45946c68e7982e8dc920c7f2bb6a7351497b.zip
gdb-ba4a45946c68e7982e8dc920c7f2bb6a7351497b.tar.gz
gdb-ba4a45946c68e7982e8dc920c7f2bb6a7351497b.tar.bz2
* elflink.h (elf_link_input_bfd): If we've discarded a section,
the output section will be the absolute section; don't print an assertion message for that case when doing a relocateable link. PR 11647.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elflink.h9
2 files changed, 13 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e84edeb..d073629 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+Fri Feb 7 12:39:11 1997 Ian Lance Taylor <ian@cygnus.com>
+
+ * elflink.h (elf_link_input_bfd): If we've discarded a section,
+ the output section will be the absolute section; don't print an
+ assertion message for that case when doing a relocateable link.
+
Thu Feb 6 16:55:43 1997 Ian Lance Taylor <ian@cygnus.com>
* elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.
diff --git a/bfd/elflink.h b/bfd/elflink.h
index dd5b4db..53362ab 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -3070,8 +3070,13 @@ elf_link_input_bfd (finfo, input_bfd)
{
/* I suppose the backend ought to fill in the
section of any STT_SECTION symbol against a
- processor specific section. */
- if (sec != NULL && bfd_is_abs_section (sec))
+ processor specific section. If we have
+ discarded a section, the output_section will
+ be the absolute section. */
+ if (sec != NULL
+ && (bfd_is_abs_section (sec)
+ || (sec->output_section != NULL
+ && bfd_is_abs_section (sec->output_section))))
r_symndx = 0;
else if (sec == NULL || sec->owner == NULL)
{