Preliminary support for generating shared libraries, from Eric
authorIan Lance Taylor <ian@airs.com>
Thu, 23 Jun 1994 21:36:03 +0000 (21:36 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 23 Jun 1994 21:36:03 +0000 (21:36 +0000)
commit8af74670dfb7ea87529f7ca1fbc254cdc59bc89b
tree3e754b1c8f09e37ee35173349fb8e6ece7deb3ce
parent51fc377bab22057d52d81146902d7b2e4a5d5675
Preliminary support for generating shared libraries, from Eric
Youngdale <ericy@cais.cais.com>.
* elfcode.h (prep_headers): If DYNAMIC, set e_type to ET_DYN.
(elf_link_add_object_symbols): If generating a shared library,
create dynamic sections for first input BFD with the right format.
(elf_link_create_dynamic_sections): Don't create .interp section
if creating a shared library.
(elf_link_input_bfd): Skip dynamic sections in input file.
(elf_bfd_final_link): If creating a shared library, it's OK for
dynobj to have sections which are not SEC_IN_MEMORY.
* elf32-i386.c (elf_i386_size_dynamic_sections): Only set .interp
section if not creating a shared library.
* elf32-sparc.c (elf_sparc_size_dynamic_sections): Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf32-sparc.c
bfd/elfcode.h