* aoutx.h (translate_to_native_sym_flags): Use the output_section
authorIan Lance Taylor <ian@airs.com>
Wed, 24 Aug 1994 15:59:40 +0000 (15:59 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 24 Aug 1994 15:59:40 +0000 (15:59 +0000)
commit1afd2380ea7108c49425614d7602434e54be119e
tree3b07978b8d16dbbaec843d82c0143c06470b12e3
parent70bcd4bc7eef9d23485716a2e96262d02ec58e66
* aoutx.h (translate_to_native_sym_flags): Use the output_section
(and output_offset) if there is one.

* aoutx.h (aout_link_check_archive_element): Discard the symbols
if the archive element was not needed.

* aoutx.h (aout_get_external_symbols): Ensure that a zero string
index yields an empty string.
(aout_link_write_symbols): If info->keep_memory is false, use name
from original hash table entry, not from entry in *sym_hash.

* aoutx.h (struct aout_final_link_info): Add fields contents,
relocs, symbol_map and output_syms.
(NAME(aout,final_link)): Work out the largest section size, reloc
size, and number of symbols.  Use them to preallocate buffers that
are large enough for all cases.
(aout_link_input_bfd): Use preallocated symbol_map.
(aout_link_write_symbols): Remove symbol_map argument; use
preallocated symbol_map instead.  Change all callers.  Use
preallocated output_syms.
(aout_link_input_section): Remove symbol_map argument.  Change all
callers.  Use preallocated contents and relocs.
(aout_link_input_section_std): Remove symbol_map argument; use
preallocated symbol_map instead.  Change all callers.
(aout_link_input_section_ext): Likewise.
bfd/ChangeLog
bfd/aoutx.h