Convert i960 COFF to use COFF backend linker.
authorIan Lance Taylor <ian@airs.com>
Thu, 14 Sep 1995 19:03:21 +0000 (19:03 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 14 Sep 1995 19:03:21 +0000 (19:03 +0000)
commita208a70f7a1a3418b11203867843fb2218c15d02
tree95f1c1d349d0b2db42c5244ad1b7bf557316c45b
parent4814df240eaff8078a63a412ac405709bd168455
Convert i960 COFF to use COFF backend linker.
* coff-i960.c (coff_i960_relocate): Use a coff_section_data
structure to store the symbol being used.
(coff_i960_start_final_link): New static function.
(coff_i960_relocate_section): New static function.
(coff_i960_adjust_symndx): New static function.
(coff_start_final_link): Define.
(coff_relocate_section): Define.
(coff_adjust_symndx): Define.
* coffcode.h (bfd_coff_backend_data): Add new callback function
_bfd_coff_start_final_link.
(bfd_coff_start_final_link): Define.
(coff_start_final_link): Define if not defined.
(bfd_coff_std_swap_table): Add coff_start_final_link.
* cofflink.c (_bfd_coff_internal_syment_name): Make globally
visible.
(_bfd_coff_final_link): Call bfd_coff_start_final_link if the
function callback is not NULL.
* libcoff-in.h (struct coff_section_tdata): Add tdata field.
(_bfd_coff_internal_syment_name): Declare.
* libcoff.h: Rebuild.
* configure.in (icoff_big_vec): Add cofflink.o.
(icoff_little_vec): Likewise.
* configure: Rebuild.
bfd/ChangeLog
bfd/coff-i960.c
bfd/coffcode.h
bfd/cofflink.c
bfd/configure
bfd/configure.in
bfd/libcoff-in.h
bfd/libcoff.h