1 |
/* Common definitions for backends based on IBM RS/6000 "XCOFF64" files. |
/* Common definitions for backends based on IBM RS/6000 "XCOFF64" files. |
2 |
Copyright 2000, 2001, 2002 |
Copyright 2000, 2001, 2002, 2004 |
3 |
Free Software Foundation, Inc. |
Free Software Foundation, Inc. |
4 |
Contributed by Cygnus Support. |
Contributed by Cygnus Support. |
5 |
|
|
43 |
#define coff_mkobject _bfd_xcoff_mkobject |
#define coff_mkobject _bfd_xcoff_mkobject |
44 |
#define coff_bfd_copy_private_bfd_data _bfd_xcoff_copy_private_bfd_data |
#define coff_bfd_copy_private_bfd_data _bfd_xcoff_copy_private_bfd_data |
45 |
#define coff_bfd_is_local_label_name _bfd_xcoff_is_local_label_name |
#define coff_bfd_is_local_label_name _bfd_xcoff_is_local_label_name |
46 |
|
#define coff_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) bfd_false) |
47 |
#define coff_bfd_reloc_type_lookup _bfd_xcoff_reloc_type_lookup |
#define coff_bfd_reloc_type_lookup _bfd_xcoff_reloc_type_lookup |
48 |
#define coff_relocate_section _bfd_ppc_xcoff_relocate_section |
#define coff_relocate_section _bfd_ppc_xcoff_relocate_section |
49 |
|
|
58 |
#undef CORE_FILE_P |
#undef CORE_FILE_P |
59 |
#define CORE_FILE_P rs6000coff_core_p |
#define CORE_FILE_P rs6000coff_core_p |
60 |
extern const bfd_target * rs6000coff_core_p (); |
extern const bfd_target * rs6000coff_core_p (); |
61 |
extern boolean rs6000coff_core_file_matches_executable_p (); |
extern bfd_boolean rs6000coff_core_file_matches_executable_p (); |
62 |
|
|
63 |
#undef coff_core_file_matches_executable_p |
#undef coff_core_file_matches_executable_p |
64 |
#define coff_core_file_matches_executable_p \ |
#define coff_core_file_matches_executable_p \ |
79 |
#define CORE_FILE_P lynx_core_file_p |
#define CORE_FILE_P lynx_core_file_p |
80 |
extern const bfd_target *lynx_core_file_p PARAMS ((bfd *abfd)); |
extern const bfd_target *lynx_core_file_p PARAMS ((bfd *abfd)); |
81 |
|
|
82 |
extern boolean lynx_core_file_matches_executable_p PARAMS ((bfd *core_bfd, |
extern bfd_boolean lynx_core_file_matches_executable_p |
83 |
bfd *exec_bfd)); |
PARAMS ((bfd *core_bfd, bfd *exec_bfd)); |
84 |
#undef coff_core_file_matches_executable_p |
#undef coff_core_file_matches_executable_p |
85 |
#define coff_core_file_matches_executable_p lynx_core_file_matches_executable_p |
#define coff_core_file_matches_executable_p lynx_core_file_matches_executable_p |
86 |
|
|
100 |
#define _bfd_xcoff_bfd_gc_sections coff_bfd_gc_sections |
#define _bfd_xcoff_bfd_gc_sections coff_bfd_gc_sections |
101 |
#define _bfd_xcoff_bfd_merge_sections coff_bfd_merge_sections |
#define _bfd_xcoff_bfd_merge_sections coff_bfd_merge_sections |
102 |
#define _bfd_xcoff_bfd_discard_group bfd_generic_discard_group |
#define _bfd_xcoff_bfd_discard_group bfd_generic_discard_group |
103 |
|
#define _bfd_xcoff_section_already_linked \ |
104 |
|
_bfd_generic_section_already_linked |
105 |
#define _bfd_xcoff_bfd_link_split_section coff_bfd_link_split_section |
#define _bfd_xcoff_bfd_link_split_section coff_bfd_link_split_section |
106 |
|
|
107 |
/* XCOFF archives do not have anything which corresponds to an |
/* XCOFF archives do not have anything which corresponds to an |
109 |
|
|
110 |
#define _bfd_xcoff_slurp_extended_name_table bfd_false |
#define _bfd_xcoff_slurp_extended_name_table bfd_false |
111 |
#define _bfd_xcoff_construct_extended_name_table \ |
#define _bfd_xcoff_construct_extended_name_table \ |
112 |
((boolean (*) PARAMS ((bfd *, char **, bfd_size_type *, const char **))) \ |
((bfd_boolean (*) PARAMS ((bfd *, char **, bfd_size_type *, const char **))) \ |
113 |
bfd_false) |
bfd_false) |
114 |
#define _bfd_xcoff_truncate_arname bfd_dont_truncate_arname |
#define _bfd_xcoff_truncate_arname bfd_dont_truncate_arname |
115 |
|
|
121 |
|
|
122 |
#define _bfd_xcoff_update_armap_timestamp bfd_true |
#define _bfd_xcoff_update_armap_timestamp bfd_true |
123 |
|
|
124 |
extern boolean _bfd_xcoff_mkobject PARAMS ((bfd *)); |
extern bfd_boolean _bfd_xcoff_mkobject PARAMS ((bfd *)); |
125 |
extern boolean _bfd_xcoff_copy_private_bfd_data PARAMS ((bfd *, bfd *)); |
extern bfd_boolean _bfd_xcoff_copy_private_bfd_data PARAMS ((bfd *, bfd *)); |
126 |
extern boolean _bfd_xcoff_is_local_label_name PARAMS ((bfd *, const char *)); |
extern bfd_boolean _bfd_xcoff_is_local_label_name PARAMS ((bfd *, const char *)); |
127 |
extern void _bfd_xcoff_rtype2howto |
extern void _bfd_xcoff_rtype2howto |
128 |
PARAMS ((arelent *, struct internal_reloc *)); |
PARAMS ((arelent *, struct internal_reloc *)); |
129 |
extern reloc_howto_type *_bfd_xcoff_reloc_type_lookup |
extern reloc_howto_type *_bfd_xcoff_reloc_type_lookup |
130 |
PARAMS ((bfd *, bfd_reloc_code_real_type)); |
PARAMS ((bfd *, bfd_reloc_code_real_type)); |
131 |
extern boolean _bfd_xcoff_slurp_armap PARAMS ((bfd *)); |
extern bfd_boolean _bfd_xcoff_slurp_armap PARAMS ((bfd *)); |
132 |
extern const bfd_target *_bfd_xcoff_archive_p PARAMS ((bfd *)); |
extern const bfd_target *_bfd_xcoff_archive_p PARAMS ((bfd *)); |
133 |
extern PTR _bfd_xcoff_read_ar_hdr PARAMS ((bfd *)); |
extern PTR _bfd_xcoff_read_ar_hdr PARAMS ((bfd *)); |
134 |
extern bfd *_bfd_xcoff_openr_next_archived_file PARAMS ((bfd *, bfd *)); |
extern bfd *_bfd_xcoff_openr_next_archived_file PARAMS ((bfd *, bfd *)); |
135 |
extern int _bfd_xcoff_generic_stat_arch_elt PARAMS ((bfd *, struct stat *)); |
extern int _bfd_xcoff_generic_stat_arch_elt PARAMS ((bfd *, struct stat *)); |
136 |
extern boolean _bfd_xcoff_write_armap |
extern bfd_boolean _bfd_xcoff_write_armap |
137 |
PARAMS ((bfd *, unsigned int, struct orl *, unsigned int, int)); |
PARAMS ((bfd *, unsigned int, struct orl *, unsigned int, int)); |
138 |
extern boolean _bfd_xcoff_write_archive_contents PARAMS ((bfd *)); |
extern bfd_boolean _bfd_xcoff_write_archive_contents PARAMS ((bfd *)); |
139 |
extern int _bfd_xcoff_sizeof_headers PARAMS ((bfd *, boolean)); |
extern int _bfd_xcoff_sizeof_headers PARAMS ((bfd *, bfd_boolean)); |
140 |
extern void _bfd_xcoff_swap_sym_in PARAMS ((bfd *, PTR, PTR)); |
extern void _bfd_xcoff_swap_sym_in PARAMS ((bfd *, PTR, PTR)); |
141 |
extern unsigned int _bfd_xcoff_swap_sym_out PARAMS ((bfd *, PTR, PTR)); |
extern unsigned int _bfd_xcoff_swap_sym_out PARAMS ((bfd *, PTR, PTR)); |
142 |
extern void _bfd_xcoff_swap_aux_in PARAMS ((bfd *, PTR, int, int, int, int, PTR)); |
extern void _bfd_xcoff_swap_aux_in PARAMS ((bfd *, PTR, int, int, int, int, PTR)); |