* syms.c (BSF_DYNAMIC): New symbol flag.
authorIan Lance Taylor <ian@airs.com>
Fri, 21 Jan 1994 06:29:21 +0000 (06:29 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 21 Jan 1994 06:29:21 +0000 (06:29 +0000)
commit0ee75d02e516e8ee40f45733855771936ed30490
treeba4c096f9693c37e70dd9de71f69222a16c09ce9
parent5e6cd559cfa7fd45d9f128903d1f42344bcfd03d
* syms.c (BSF_DYNAMIC): New symbol flag.
(bfd_print_symbol_vandf): Print it.
* bfd-in2.h: Rebuilt.
* libaout.h (struct aout_backend_data): New read_dynamic_symbols
and read_dynamic_relocs fields.
(struct aoutdata): New dynamic_info field.
(obj_aout_dynamic_info): New accessor macro.
* sunos.c (struct sunos_dynamic_info): New structure.
(sunos_read_dynamic_info, MY(read_dynamic_symbols),
MY(read_dynamic_relocs)): New functions to read dynamic symbols
and relocs.
* aoutx.h (NAME(aout,some_aout_object_p)): If the object is
dynamically linked, set SEC_RELOC for both the .text and .data
sections.
(translate_from_native_sym_flags): Don't set BSF_LOCAL for an
undefined symbol.
(translate_symbol_table): New function, split out of
slurp_symbol_table; set the BSF_DYNAMIC flag appropriately.
(NAME(aout,slurp_symbol_table)): Read dynamic symbols, if any.
(NAME(aout,slurp_reloc_table)): Read dynamic relocs, if any.
(NAME(aout,get_reloc_upper_bound)): Include dynamic reloc count in
return value.
* aoutf1.h (NAME(aout,sunos4_write_object_contents)): Don't write
out dynamic symbols or relocs against reloc symbols, since they
are already in the .text section and we wouldn't know where to
write them anyhow.
(sunos4_aout_backend): Initialize read_dynamic_symbols and
read_dynamic_relocs fields.
* aout-target.h (MY(backend_data)): Initialize
read_dynamic_symbols and read_dynamic_relocs fields.
bfd/ChangeLog
bfd/aoutf1.h
bfd/aoutx.h
bfd/bfd-in2.h
bfd/sunos.c
bfd/syms.c