diff options
author | Alan Modra <amodra@gmail.com> | 2015-12-01 11:40:25 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-12-01 13:40:04 +1030 |
commit | b560e2acdd41fe6b6228b11c2d82ad2a96188153 (patch) | |
tree | a04f48bcc4100177a67c176ff389c9494816995b /bfd/libxcoff.h | |
parent | 23d61901b0dadd93a8d8e26fd113691e5b9ead4f (diff) | |
download | gdb-b560e2acdd41fe6b6228b11c2d82ad2a96188153.zip gdb-b560e2acdd41fe6b6228b11c2d82ad2a96188153.tar.gz gdb-b560e2acdd41fe6b6228b11c2d82ad2a96188153.tar.bz2 |
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.
Diffstat (limited to 'bfd/libxcoff.h')
-rw-r--r-- | bfd/libxcoff.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/libxcoff.h b/bfd/libxcoff.h index d991dbf..60872d4 100644 --- a/bfd/libxcoff.h +++ b/bfd/libxcoff.h @@ -64,8 +64,8 @@ struct xcoff_backend_data_rec unsigned long _xcoff_ldhdr_version; bfd_boolean (* _xcoff_put_symbol_name) - (bfd *, struct bfd_strtab_hash *, struct internal_syment *, - const char *); + (struct bfd_link_info *, struct bfd_strtab_hash *, + struct internal_syment *, const char *); bfd_boolean (* _xcoff_put_ldsymbol_name) (bfd *, struct xcoff_loader_info *, struct internal_ldsym *, @@ -154,8 +154,8 @@ struct xcoff_backend_data_rec #define bfd_xcoff_ldhdr_version(a) ((xcoff_backend (a)->_xcoff_ldhdr_version)) -#define bfd_xcoff_put_symbol_name(a, b, c, d) \ - ((xcoff_backend (a)->_xcoff_put_symbol_name) ((a), (b), (c), (d))) +#define bfd_xcoff_put_symbol_name(a, b, c, d, e) \ + ((xcoff_backend (a)->_xcoff_put_symbol_name) ((b), (c), (d), (e))) #define bfd_xcoff_put_ldsymbol_name(a, b, c, d) \ ((xcoff_backend (a)->_xcoff_put_ldsymbol_name) ((a), (b), (c), (d))) |