* elfcode.h (bfd_section_from_shdr): Don't dump core if target
authorIan Lance Taylor <ian@airs.com>
Thu, 18 Nov 1993 17:12:47 +0000 (17:12 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 18 Nov 1993 17:12:47 +0000 (17:12 +0000)
commit062189c6eab72c7ba1bab1cf30fdb27d67a7d668
treead722d27d52a31d9c4b505574ec9b5a4afc62d5e
parent643e9fc7683e5df2e66a43576bdaea2ea794e735
* elfcode.h (bfd_section_from_shdr): Don't dump core if target
section has no ELF section data.
(elf_make_sections): Set addralign of reloc section to 4.
(elf_fake_sections): Likewise.
(map_program_segments): Don't consider section 0.
(assign_file_positions_except_relocs): Don't consider section 0.
In the main loop, skip the symtab and strtab sections, since their
positions are set elsewhere.
(swap_out_syms): Set addralign of symtab section to 4.  Set
addralign of strtab sections to 1.
(assign_file_positions_for_relocs): Don't consider section 0.
(write_object_contents): Don't write out section 0.
(sym_is_global): Take abfd argument.  Call
elf_backend_sym_is_global if it is not NULL.
(elf_map_symbols): Pass abfd to sym_is_global.
(write_object_contents): Call elf_backend_final_write_processing
if it is defined.
bfd/elfcode.h