* elf.c (bfd_section_from_shdr): When using a different section
authorIan Lance Taylor <ian@airs.com>
Wed, 15 Nov 1995 01:34:56 +0000 (01:34 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 15 Nov 1995 01:34:56 +0000 (01:34 +0000)
commit631b10f44e08b1b4daefc4d1ecd0ce9eca0c9a30
treed446b782edcbda95cd69a35c17adeac4abf236a9
parentab276dfa721c1328a15a6bb9b184083a35016a87
* elf.c (bfd_section_from_shdr): When using a different section
header, pass the new one to _bfd_elf_make_section_from_shdr.
(elf_fake_sections): Don't set sh_info and sh_entsize fields.
(elf_map_symbols): Add section VMA to symbol value when comparing
against 0.
(_bfd_elf_compute_section_file_positions): Only build symbol table
if there are some symbols.  Set file offset of symtab and strtab
sections.
(assign_file_positions_except_relocs): Remove dosyms parameter.
Change all callers.  Never set file offset of symtab and strtab
sections.
(_bfd_elf_copy_private_section_data): New function.
(MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
(_bfd_elf_copy_private_symbol_data): New function.
(swap_out_syms): Check for special mapping of st_shndx created by
copy_private_symbol_data.
* elfxx-target.h: Use new copy routines.
* elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
(_bfd_elf_copy_private_section_data): Declare.
bfd/ChangeLog
bfd/elfxx-target.h