From: Ian Lance Taylor Date: Fri, 30 Sep 1994 17:13:08 +0000 (+0000) Subject: * elfcode.h (elf_bfd_final_link): Remove assertion when a non X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb562be02f7370c02b2f368d8452e321069791e6;p=binutils-gdb.git * 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3c743ace438..85b68a60799 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +Fri Sep 30 13:11:38 1994 Ian Lance Taylor + + * 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. + Thu Sep 29 15:21:44 1994 Ken Raeburn * reloc.c (bfd_install_relocation): Change type of "data" to diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 88fe902c6fd..f7b456f5503 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,