* sunos.c (sunos_add_one_symbol): Don't change
authorIan Lance Taylor <ian@airs.com>
Thu, 28 Sep 1995 16:30:54 +0000 (16:30 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 28 Sep 1995 16:30:54 +0000 (16:30 +0000)
commit9db5923077da3e471b36b26ea17427e95ee7c67b
treee881159ee0775cbe27ae3d43f12e182c4d9fe79c
parent11b072f46c3c02c198a27b5abb0184778a2d0b73
* sunos.c (sunos_add_one_symbol): Don't change
bfd_link_hash_common to bfd_link_hash_new, since it may be on the
undef list.
(bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
dynamic symbols when creating a shared library.
(sunos_scan_ext_relocs): Handle relocs correctly when creating a
shared library.
(sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
written even if it is not defined in a regular object.
(sunos_write_dynamic_symbol): Use plt_offset for the address of
the jump table reloc.  Add an assertion.  Use RELOC_JMP_SLOT
rather than the constant 22.
(sunos_check_dynamic_reloc): Handle creating a shared library.
(sunos_finish_dynamic_link): Set the first entry in the GOT to
zero when creating a shared library.
* aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
write it out at the start of the symbol table.
bfd/ChangeLog
bfd/sunos.c