* 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)
(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

index 98c74dc..6b03df0 100644 (file)
@@ -1,3 +1,20 @@
+Fri Nov 22 11:32:13 1996  Ian Lance Taylor  <ian@cygnus.com>
+
+       * 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.
+
 Thu Nov 21 10:31:31 1996  Rob Savoye  (rob@cygnus.com)
        
        * config.bfd: Added VersaDOS format to the Ericsson configuration.