* emultempl/aix.em: Include ldctor.h.
authorIan Lance Taylor <ian@airs.com>
Fri, 27 Oct 1995 22:21:43 +0000 (22:21 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 27 Oct 1995 22:21:43 +0000 (22:21 +0000)
commitcf79773cb15480249935afb17a25f847550570b7
tree19c2f583f4445b94509078474fb3470942aeb002
parent2d7de17d6167ef2c7240a6886541a9e0031ed798
* emultempl/aix.em: Include ldctor.h.
(gld${EMULATION_NAME}_after_open): New static function.
(gld${EMULATION_NAME}_before_allocation): Call find_relocs.
(gld${EMULATION_NAME}_find_relocs): New static function.
(gld${EMULATION_NAME}_find_exp_assignment): New static function.
(ld_${EMULATION_NAME}_emulation): Use new after_open function.
* scripttempl/aix.sc: Use CONSTRUCTORS in .data.
* ldctor.c (struct set_info): Move definition into ldctor.h.
(struct set_element): Likewise.
(sets): Make non-static.
(ldctor_add_set_entry): Add name parameter.  Save it in the new
set element.
(ldctor_build_sets): Avoid being called twice.  Pass set element
name to lang_add_reloc.
* ldctor.h (struct set_info): Move definition here from ldctor.c.
(struct set_element): Likewise.  Add new field name.
(sets): Declare.
(ldctor_add_set_entry): Declare new name parameter.
* ldwrite.c (build_link_order): Don't insist that either name or
section be NULL in a lang_reloc_statement.
* ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
new name parameter.
(constructor_callback): Pass name to ldctor_add_new_set_entry for
new name parameter.
ld/ChangeLog
ld/emultempl/aix.em