aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-09-30 17:13:08 +0000
committerIan Lance Taylor <ian@airs.com>1994-09-30 17:13:08 +0000
commitfb562be02f7370c02b2f368d8452e321069791e6 (patch)
tree61ce6f9f192ec5dc1df2bc31f832f071d1330513 /bfd/elfcode.h
parent6adffcd857ccac0d2bcef29f52346836a0d1f3e8 (diff)
downloadgdb-fb562be02f7370c02b2f368d8452e321069791e6.zip
gdb-fb562be02f7370c02b2f368d8452e321069791e6.tar.gz
gdb-fb562be02f7370c02b2f368d8452e321069791e6.tar.bz2
* elfcode.h (elf_bfd_final_link): Remove assertion when a non
SEC_IN_MEMORY section is found in dynobj. This can happen when linking PIC compiled code.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index 88fe902..f7b456f 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -5640,7 +5640,9 @@ elf_bfd_final_link (abfd, info)
continue;
if ((o->flags & SEC_IN_MEMORY) == 0)
{
- BFD_ASSERT (info->shared);
+ /* At this point, we are only interested in sections
+ created by elf_link_create_dynamic_sections. FIXME:
+ This test is fragile. */
continue;
}
if (! bfd_set_section_contents (abfd, o->output_section,