Don't use BFD_TRADITIONAL_FORMAT flag in COFF support
authorAlan Modra <amodra@gmail.com>
Tue, 1 Dec 2015 01:10:25 +0000 (11:40 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 1 Dec 2015 03:10:04 +0000 (13:40 +1030)
commitb560e2acdd41fe6b6228b11c2d82ad2a96188153
treea04f48bcc4100177a67c176ff389c9494816995b
parent23d61901b0dadd93a8d8e26fd113691e5b9ead4f
Don't use BFD_TRADITIONAL_FORMAT flag in COFF support

info->traditional_format is available, or can be easily made
available.  This relegates BFD_TRADITIONAL_FORMAT to AOUT use only.

* coff-rs6000.c (_bfd_xcoff_put_symbol_name): Replace abfd param
with info param.  Test info->traditional_format rather than
BFD_TRADITIONAL_FORMAT flag.
* coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Likewise.
* libxcoff.h (struct xcoff_backend_data_rec): Update
_xcoff_put_symbol_name prototype.
(bfd_xcoff_put_symbol_name): Add info param.
* xcofflink.c (xcoff_find_tc0): Update bfd_xcoff_put_symbol_name call.
(xcoff_write_global_symbol): Likewise.
(xcoff_link_input_bfd): Test info->traditional_format rather than
BFD_TRADITIONAL_FORMAT flag.
* cofflink.c (_bfd_coff_final_link): Likewise.
(_bfd_coff_link_input_bfd, _bfd_coff_write_global_sym): Likewise.
bfd/ChangeLog
bfd/coff-rs6000.c
bfd/coff64-rs6000.c
bfd/cofflink.c
bfd/libxcoff.h
bfd/xcofflink.c