* sunos.c (struct sunos_link_hash_table): Add got_needed field.
authorIan Lance Taylor <ian@airs.com>
Fri, 22 Nov 1996 16:39:17 +0000 (16:39 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 22 Nov 1996 16:39:17 +0000 (16:39 +0000)
commita600a89e4fdec42d82cd8f00c7d94b68972abf56
tree8b1e024bef45cfea81aef7a19f8c43ed07e19e9c
parentee455463711848bb2c5b9e8369dd06f4311492f2
* sunos.c (struct sunos_link_hash_table): Add got_needed field.
(sunos_link_hash_table_create): Initialize got_needed.
(sunos_create_dynamic_sections): Only set .got section size if it
is not already set.  Set got_needed.
(bfd_sunos_size_dynamic_sections): Check got_needed.  Only set
sdynptr, and only handle dynamic sections, if dynamic sections are
needed.
(sunos_scan_std_relocs): Pass false to create_dynamic_sections.
Initialize .got section.
(sunos_scan_ext_relocs): Likewise.
(sunos_write_dynamic_symbol): Set up PLT entry even if this is not
a dynamic symbol.
(sunos_finish_dynamic_link): Check got_needed.  Only set up
dynamic linking information if needed.
PR 11074.
bfd/ChangeLog