Changeset 609 for branches/GNU/src/binutils/bfd/libbfd-in.h
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/bfd/libbfd-in.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 2 2 (This include file is not for users of the library.) 3 3 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 2000, 2001 4 2000, 2001, 2002 5 5 Free Software Foundation, Inc. 6 6 Written by Cygnus Support. 7 8 ** NOTE: libbfd.h is a GENERATED file. Don't change it; instead,9 ** change libbfd-in.h or the other BFD source files processed to10 ** generate this file.11 7 12 8 This file is part of BFD, the Binary File Descriptor library. … … 30 26 to wrap around if the address is within boundary-1 of the end of the 31 27 address space. */ 32 #define BFD_ALIGN(this, boundary) \33 ((((bfd_vma) (this) + (boundary) - 1) >= (bfd_vma) (this)) \34 ? (((bfd_vma) (this) + ((boundary) - 1)) & (~((boundary)-1)))\28 #define BFD_ALIGN(this, boundary) \ 29 ((((bfd_vma) (this) + (boundary) - 1) >= (bfd_vma) (this)) \ 30 ? (((bfd_vma) (this) + ((boundary) - 1)) & ~ (bfd_vma) ((boundary)-1)) \ 35 31 : ~ (bfd_vma) 0) 36 32 … … 88 84 #define arelt_size(bfd) (((struct areltdata *)((bfd)->arelt_data))->parsed_size) 89 85 90 extern PTR bfd_malloc PARAMS ((size_t)); 91 extern PTR bfd_realloc PARAMS ((PTR, size_t)); 92 extern PTR bfd_zmalloc PARAMS ((size_t)); 86 extern PTR bfd_malloc 87 PARAMS ((bfd_size_type)); 88 extern PTR bfd_realloc 89 PARAMS ((PTR, bfd_size_type)); 90 extern PTR bfd_zmalloc 91 PARAMS ((bfd_size_type)); 93 92 94 93 extern bfd_error_handler_type _bfd_error_handler; … … 96 95 /* These routines allocate and free things on the BFD's objalloc. */ 97 96 98 extern PTR bfd_alloc PARAMS ((bfd *, size_t)); 99 extern PTR bfd_zalloc PARAMS ((bfd *, size_t)); 100 extern void bfd_release PARAMS ((bfd *, PTR)); 101 102 bfd * _bfd_create_empty_archive_element_shell PARAMS ((bfd *obfd)); 103 bfd * _bfd_look_for_bfd_in_cache PARAMS ((bfd *arch_bfd, file_ptr index)); 104 boolean _bfd_add_bfd_to_archive_cache PARAMS ((bfd *, file_ptr, bfd *)); 105 boolean _bfd_generic_mkarchive PARAMS ((bfd *abfd)); 106 const bfd_target *bfd_generic_archive_p PARAMS ((bfd *abfd)); 107 boolean bfd_slurp_armap PARAMS ((bfd *abfd)); 108 boolean bfd_slurp_bsd_armap_f2 PARAMS ((bfd *abfd)); 97 extern PTR bfd_alloc 98 PARAMS ((bfd *, bfd_size_type)); 99 extern PTR bfd_zalloc 100 PARAMS ((bfd *, bfd_size_type)); 101 extern void bfd_release 102 PARAMS ((bfd *, PTR)); 103 104 bfd * _bfd_create_empty_archive_element_shell 105 PARAMS ((bfd *obfd)); 106 bfd * _bfd_look_for_bfd_in_cache 107 PARAMS ((bfd *, file_ptr)); 108 bfd_boolean _bfd_add_bfd_to_archive_cache 109 PARAMS ((bfd *, file_ptr, bfd *)); 110 bfd_boolean _bfd_generic_mkarchive 111 PARAMS ((bfd *abfd)); 112 const bfd_target *bfd_generic_archive_p 113 PARAMS ((bfd *abfd)); 114 bfd_boolean bfd_slurp_armap 115 PARAMS ((bfd *abfd)); 116 bfd_boolean bfd_slurp_bsd_armap_f2 117 PARAMS ((bfd *abfd)); 109 118 #define bfd_slurp_bsd_armap bfd_slurp_armap 110 119 #define bfd_slurp_coff_armap bfd_slurp_armap 111 boolean _bfd_slurp_extended_name_table PARAMS ((bfd *abfd)); 112 extern boolean _bfd_construct_extended_name_table 113 PARAMS ((bfd *, boolean, char **, bfd_size_type *)); 114 boolean _bfd_write_archive_contents PARAMS ((bfd *abfd)); 115 boolean _bfd_compute_and_write_armap PARAMS ((bfd *, unsigned int elength)); 116 bfd *_bfd_get_elt_at_filepos PARAMS ((bfd *archive, file_ptr filepos)); 117 extern bfd *_bfd_generic_get_elt_at_index PARAMS ((bfd *, symindex)); 118 bfd * _bfd_new_bfd PARAMS ((void)); 119 120 boolean bfd_false PARAMS ((bfd *ignore)); 121 boolean bfd_true PARAMS ((bfd *ignore)); 122 PTR bfd_nullvoidptr PARAMS ((bfd *ignore)); 123 int bfd_0 PARAMS ((bfd *ignore)); 124 unsigned int bfd_0u PARAMS ((bfd *ignore)); 125 long bfd_0l PARAMS ((bfd *ignore)); 126 long _bfd_n1 PARAMS ((bfd *ignore)); 127 void bfd_void PARAMS ((bfd *ignore)); 128 129 bfd *_bfd_new_bfd_contained_in PARAMS ((bfd *)); 130 const bfd_target *_bfd_dummy_target PARAMS ((bfd *abfd)); 131 132 void bfd_dont_truncate_arname PARAMS ((bfd *abfd, const char *filename, 133 char *hdr)); 134 void bfd_bsd_truncate_arname PARAMS ((bfd *abfd, const char *filename, 135 char *hdr)); 136 void bfd_gnu_truncate_arname PARAMS ((bfd *abfd, const char *filename, 137 char *hdr)); 138 139 boolean bsd_write_armap PARAMS ((bfd *arch, unsigned int elength, 140 struct orl *map, unsigned int orl_count, int stridx)); 141 142 boolean coff_write_armap PARAMS ((bfd *arch, unsigned int elength, 143 struct orl *map, unsigned int orl_count, int stridx)); 144 145 extern PTR _bfd_generic_read_ar_hdr PARAMS ((bfd *)); 146 147 extern PTR _bfd_generic_read_ar_hdr_mag PARAMS ((bfd *, const char *)); 148 149 bfd * bfd_generic_openr_next_archived_file PARAMS ((bfd *archive, 150 bfd *last_file)); 151 152 int bfd_generic_stat_arch_elt PARAMS ((bfd *, struct stat *)); 120 bfd_boolean _bfd_slurp_extended_name_table 121 PARAMS ((bfd *abfd)); 122 extern bfd_boolean _bfd_construct_extended_name_table 123 PARAMS ((bfd *, bfd_boolean, char **, bfd_size_type *)); 124 bfd_boolean _bfd_write_archive_contents 125 PARAMS ((bfd *abfd)); 126 bfd_boolean _bfd_compute_and_write_armap 127 PARAMS ((bfd *, unsigned int elength)); 128 bfd *_bfd_get_elt_at_filepos 129 PARAMS ((bfd *archive, file_ptr filepos)); 130 extern bfd *_bfd_generic_get_elt_at_index 131 PARAMS ((bfd *, symindex)); 132 bfd * _bfd_new_bfd 133 PARAMS ((void)); 134 void _bfd_delete_bfd 135 PARAMS ((bfd *)); 136 137 bfd_boolean bfd_false 138 PARAMS ((bfd *ignore)); 139 bfd_boolean bfd_true 140 PARAMS ((bfd *ignore)); 141 PTR bfd_nullvoidptr 142 PARAMS ((bfd *ignore)); 143 int bfd_0 144 PARAMS ((bfd *ignore)); 145 unsigned int bfd_0u 146 PARAMS ((bfd *ignore)); 147 long bfd_0l 148 PARAMS ((bfd *ignore)); 149 long _bfd_n1 150 PARAMS ((bfd *ignore)); 151 void bfd_void 152 PARAMS ((bfd *ignore)); 153 154 bfd *_bfd_new_bfd_contained_in 155 PARAMS ((bfd *)); 156 const bfd_target *_bfd_dummy_target 157 PARAMS ((bfd *abfd)); 158 159 void bfd_dont_truncate_arname 160 PARAMS ((bfd *abfd, const char *filename, char *hdr)); 161 void bfd_bsd_truncate_arname 162 PARAMS ((bfd *abfd, const char *filename, char *hdr)); 163 void bfd_gnu_truncate_arname 164 PARAMS ((bfd *abfd, const char *filename, char *hdr)); 165 166 bfd_boolean bsd_write_armap 167 PARAMS ((bfd *arch, unsigned int elength, struct orl *map, 168 unsigned int orl_count, int stridx)); 169 170 bfd_boolean coff_write_armap 171 PARAMS ((bfd *arch, unsigned int elength, struct orl *map, 172 unsigned int orl_count, int stridx)); 173 174 extern PTR _bfd_generic_read_ar_hdr 175 PARAMS ((bfd *)); 176 177 extern PTR _bfd_generic_read_ar_hdr_mag 178 PARAMS ((bfd *, const char *)); 179 180 bfd * bfd_generic_openr_next_archived_file 181 PARAMS ((bfd *archive, bfd *last_file)); 182 183 int bfd_generic_stat_arch_elt 184 PARAMS ((bfd *, struct stat *)); 153 185 154 186 #define _bfd_read_ar_hdr(abfd) \ … … 162 194 #define _bfd_generic_bfd_free_cached_info bfd_true 163 195 #define _bfd_generic_new_section_hook \ 164 ((boolean (*) PARAMS ((bfd *, asection *))) bfd_true) 165 extern boolean _bfd_generic_get_section_contents 166 PARAMS ((bfd *, asection *, PTR location, file_ptr offset, 167 bfd_size_type count)); 168 extern boolean _bfd_generic_get_section_contents_in_window 196 ((bfd_boolean (*) PARAMS ((bfd *, asection *))) bfd_true) 197 extern bfd_boolean _bfd_generic_get_section_contents 198 PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); 199 extern bfd_boolean _bfd_generic_get_section_contents_in_window 169 200 PARAMS ((bfd *, asection *, bfd_window *, file_ptr, bfd_size_type)); 170 201 … … 173 204 174 205 #define _bfd_generic_bfd_copy_private_bfd_data \ 175 ((b oolean (*) PARAMS ((bfd *, bfd *))) bfd_true)206 ((bfd_boolean (*) PARAMS ((bfd *, bfd *))) bfd_true) 176 207 #define _bfd_generic_bfd_merge_private_bfd_data \ 177 ((b oolean (*) PARAMS ((bfd *, bfd *))) bfd_true)208 ((bfd_boolean (*) PARAMS ((bfd *, bfd *))) bfd_true) 178 209 #define _bfd_generic_bfd_set_private_flags \ 179 ((b oolean (*) PARAMS ((bfd *, flagword))) bfd_true)210 ((bfd_boolean (*) PARAMS ((bfd *, flagword))) bfd_true) 180 211 #define _bfd_generic_bfd_copy_private_section_data \ 181 ((b oolean (*) PARAMS ((bfd *, asection *, bfd *, asection *))) bfd_true)212 ((bfd_boolean (*) PARAMS ((bfd *, asection *, bfd *, asection *))) bfd_true) 182 213 #define _bfd_generic_bfd_copy_private_symbol_data \ 183 ((b oolean (*) PARAMS ((bfd *, asymbol *, bfd *, asymbol *))) bfd_true)214 ((bfd_boolean (*) PARAMS ((bfd *, asymbol *, bfd *, asymbol *))) bfd_true) 184 215 #define _bfd_generic_bfd_print_private_bfd_data \ 185 ((b oolean (*) PARAMS ((bfd *, PTR))) bfd_true)216 ((bfd_boolean (*) PARAMS ((bfd *, PTR))) bfd_true) 186 217 187 218 /* Routines to use for BFD_JUMP_TABLE_CORE when there is no core file 188 219 support. Use BFD_JUMP_TABLE_CORE (_bfd_nocore). */ 189 220 190 extern char *_bfd_nocore_core_file_failing_command PARAMS ((bfd *)); 191 extern int _bfd_nocore_core_file_failing_signal PARAMS ((bfd *)); 192 extern boolean _bfd_nocore_core_file_matches_executable_p 221 extern char *_bfd_nocore_core_file_failing_command 222 PARAMS ((bfd *)); 223 extern int _bfd_nocore_core_file_failing_signal 224 PARAMS ((bfd *)); 225 extern bfd_boolean _bfd_nocore_core_file_matches_executable_p 193 226 PARAMS ((bfd *, bfd *)); 194 227 … … 199 232 #define _bfd_noarchive_slurp_extended_name_table bfd_false 200 233 #define _bfd_noarchive_construct_extended_name_table \ 201 ((boolean (*) PARAMS ((bfd *, char **, bfd_size_type *, const char **))) \ 234 ((bfd_boolean (*) \ 235 PARAMS ((bfd *, char **, bfd_size_type *, const char **))) \ 202 236 bfd_false) 203 237 #define _bfd_noarchive_truncate_arname \ 204 238 ((void (*) PARAMS ((bfd *, const char *, char *))) bfd_void) 205 239 #define _bfd_noarchive_write_armap \ 206 ((b oolean (*) \240 ((bfd_boolean (*) \ 207 241 PARAMS ((bfd *, unsigned int, struct orl *, unsigned int, int))) \ 208 242 bfd_false) … … 221 255 #define _bfd_archive_bsd_slurp_extended_name_table \ 222 256 _bfd_slurp_extended_name_table 223 extern b oolean _bfd_archive_bsd_construct_extended_name_table257 extern bfd_boolean _bfd_archive_bsd_construct_extended_name_table 224 258 PARAMS ((bfd *, char **, bfd_size_type *, const char **)); 225 259 #define _bfd_archive_bsd_truncate_arname bfd_bsd_truncate_arname … … 231 265 #define _bfd_archive_bsd_generic_stat_arch_elt \ 232 266 bfd_generic_stat_arch_elt 233 extern boolean _bfd_archive_bsd_update_armap_timestamp PARAMS ((bfd *)); 267 extern bfd_boolean _bfd_archive_bsd_update_armap_timestamp 268 PARAMS ((bfd *)); 234 269 235 270 /* Routines to use for BFD_JUMP_TABLE_ARCHIVE to get COFF style … … 239 274 #define _bfd_archive_coff_slurp_extended_name_table \ 240 275 _bfd_slurp_extended_name_table 241 extern b oolean _bfd_archive_coff_construct_extended_name_table276 extern bfd_boolean _bfd_archive_coff_construct_extended_name_table 242 277 PARAMS ((bfd *, char **, bfd_size_type *, const char **)); 243 278 #define _bfd_archive_coff_truncate_arname bfd_dont_truncate_arname … … 257 292 #define _bfd_nosymbols_get_symtab \ 258 293 ((long (*) PARAMS ((bfd *, asymbol **))) _bfd_n1) 259 #define _bfd_nosymbols_make_empty_symbol \ 260 ((asymbol *(*) PARAMS ((bfd *))) bfd_nullvoidptr) 294 #define _bfd_nosymbols_make_empty_symbol _bfd_generic_make_empty_symbol 261 295 #define _bfd_nosymbols_print_symbol \ 262 296 ((void (*) PARAMS ((bfd *, PTR, asymbol *, bfd_print_symbol_type))) bfd_void) … … 264 298 ((void (*) PARAMS ((bfd *, asymbol *, symbol_info *))) bfd_void) 265 299 #define _bfd_nosymbols_bfd_is_local_label_name \ 266 ((b oolean (*) PARAMS ((bfd *, const char *))) bfd_false)300 ((bfd_boolean (*) PARAMS ((bfd *, const char *))) bfd_false) 267 301 #define _bfd_nosymbols_get_lineno \ 268 302 ((alent *(*) PARAMS ((bfd *, asymbol *))) bfd_nullvoidptr) 269 303 #define _bfd_nosymbols_find_nearest_line \ 270 ((b oolean (*) \304 ((bfd_boolean (*) \ 271 305 PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **, \ 272 306 const char **, unsigned int *))) \ … … 275 309 ((asymbol *(*) PARAMS ((bfd *, PTR, unsigned long))) bfd_nullvoidptr) 276 310 #define _bfd_nosymbols_read_minisymbols \ 277 ((long (*) PARAMS ((bfd *, b oolean, PTR *, unsigned int *))) _bfd_n1)311 ((long (*) PARAMS ((bfd *, bfd_boolean, PTR *, unsigned int *))) _bfd_n1) 278 312 #define _bfd_nosymbols_minisymbol_to_symbol \ 279 ((asymbol *(*) PARAMS ((bfd *, b oolean, const PTR, asymbol *))) \313 ((asymbol *(*) PARAMS ((bfd *, bfd_boolean, const PTR, asymbol *))) \ 280 314 bfd_nullvoidptr) 281 315 … … 295 329 296 330 #define _bfd_nowrite_set_arch_mach \ 297 ((b oolean (*) PARAMS ((bfd *, enum bfd_architecture, unsigned long))) \331 ((bfd_boolean (*) PARAMS ((bfd *, enum bfd_architecture, unsigned long))) \ 298 332 bfd_false) 299 333 #define _bfd_nowrite_set_section_contents \ 300 ((boolean (*) PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type))) \ 334 ((bfd_boolean (*) \ 335 PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type))) \ 301 336 bfd_false) 302 337 … … 305 340 306 341 #define _bfd_generic_set_arch_mach bfd_default_set_arch_mach 307 extern b oolean _bfd_generic_set_section_contents342 extern bfd_boolean _bfd_generic_set_section_contents 308 343 PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); 309 344 … … 311 346 support linking. Use BFD_JUMP_TABLE_LINK (_bfd_nolink). */ 312 347 313 #define _bfd_nolink_sizeof_headers ((int (*) PARAMS ((bfd *, b oolean))) bfd_0)348 #define _bfd_nolink_sizeof_headers ((int (*) PARAMS ((bfd *, bfd_boolean))) bfd_0) 314 349 #define _bfd_nolink_bfd_get_relocated_section_contents \ 315 350 ((bfd_byte *(*) \ 316 351 PARAMS ((bfd *, struct bfd_link_info *, struct bfd_link_order *, \ 317 bfd_byte *, b oolean, asymbol **))) \352 bfd_byte *, bfd_boolean, asymbol **))) \ 318 353 bfd_nullvoidptr) 319 354 #define _bfd_nolink_bfd_relax_section \ 320 ((b oolean (*) \321 PARAMS ((bfd *, asection *, struct bfd_link_info *, b oolean *))) \355 ((bfd_boolean (*) \ 356 PARAMS ((bfd *, asection *, struct bfd_link_info *, bfd_boolean *))) \ 322 357 bfd_false) 323 358 #define _bfd_nolink_bfd_gc_sections \ 324 ((b oolean (*) \359 ((bfd_boolean (*) \ 325 360 PARAMS ((bfd *, struct bfd_link_info *))) \ 361 bfd_false) 362 #define _bfd_nolink_bfd_merge_sections \ 363 ((bfd_boolean (*) \ 364 PARAMS ((bfd *, struct bfd_link_info *))) \ 365 bfd_false) 366 #define _bfd_nolink_bfd_discard_group \ 367 ((bfd_boolean (*) \ 368 PARAMS ((bfd *, struct sec *))) \ 326 369 bfd_false) 327 370 #define _bfd_nolink_bfd_link_hash_table_create \ 328 371 ((struct bfd_link_hash_table *(*) PARAMS ((bfd *))) bfd_nullvoidptr) 372 #define _bfd_nolink_bfd_link_hash_table_free \ 373 ((void (*) PARAMS ((struct bfd_link_hash_table *))) bfd_void) 329 374 #define _bfd_nolink_bfd_link_add_symbols \ 330 ((boolean (*) PARAMS ((bfd *, struct bfd_link_info *))) bfd_false) 375 ((bfd_boolean (*) PARAMS ((bfd *, struct bfd_link_info *))) bfd_false) 376 #define _bfd_nolink_bfd_link_just_syms \ 377 ((void (*) PARAMS ((asection *, struct bfd_link_info *))) bfd_void) 331 378 #define _bfd_nolink_bfd_final_link \ 332 ((b oolean (*) PARAMS ((bfd *, struct bfd_link_info *))) bfd_false)379 ((bfd_boolean (*) PARAMS ((bfd *, struct bfd_link_info *))) bfd_false) 333 380 #define _bfd_nolink_bfd_link_split_section \ 334 ((b oolean (*) PARAMS ((bfd *, struct sec *))) bfd_false)381 ((bfd_boolean (*) PARAMS ((bfd *, struct sec *))) bfd_false) 335 382 336 383 /* Routines to use for BFD_JUMP_TABLE_DYNAMIC for targets which do not … … 348 395 /* Generic routine to determine of the given symbol is a local 349 396 label. */ 350 extern boolean bfd_generic_is_local_label_name PARAMS ((bfd *, const char *)); 397 extern bfd_boolean bfd_generic_is_local_label_name 398 PARAMS ((bfd *, const char *)); 351 399 352 400 /* Generic minisymbol routines. */ 353 401 extern long _bfd_generic_read_minisymbols 354 PARAMS ((bfd *, b oolean, PTR *, unsigned int *));402 PARAMS ((bfd *, bfd_boolean, PTR *, unsigned int *)); 355 403 extern asymbol *_bfd_generic_minisymbol_to_symbol 356 PARAMS ((bfd *, b oolean, const PTR, asymbol *));404 PARAMS ((bfd *, bfd_boolean, const PTR, asymbol *)); 357 405 358 406 /* Find the nearest line using .stab/.stabstr sections. */ 359 extern b oolean _bfd_stab_section_find_nearest_line360 PARAMS ((bfd *, asymbol **, asection *, bfd_vma, b oolean *, const char **,361 const char **, unsigned int *, PTR *));407 extern bfd_boolean _bfd_stab_section_find_nearest_line 408 PARAMS ((bfd *, asymbol **, asection *, bfd_vma, bfd_boolean *, 409 const char **, const char **, unsigned int *, PTR *)); 362 410 363 411 /* Find the neaderst line using DWARF 1 debugging information. */ 364 extern b oolean _bfd_dwarf1_find_nearest_line412 extern bfd_boolean _bfd_dwarf1_find_nearest_line 365 413 PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **, 366 414 const char **, unsigned int *)); 367 415 368 416 /* Find the nearest line using DWARF 2 debugging information. */ 369 extern b oolean _bfd_dwarf2_find_nearest_line417 extern bfd_boolean _bfd_dwarf2_find_nearest_line 370 418 PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **, 371 419 const char **, unsigned int *, unsigned int, 372 420 PTR *)); 421 422 /* Create a new section entry. */ 423 extern struct bfd_hash_entry *bfd_section_hash_newfunc 424 PARAMS ((struct bfd_hash_entry *, struct bfd_hash_table *, const char *)); 373 425 374 426 /* A routine to create entries for a bfd_link_hash_table. */ … … 379 431 380 432 /* Initialize a bfd_link_hash_table. */ 381 extern b oolean _bfd_link_hash_table_init433 extern bfd_boolean _bfd_link_hash_table_init 382 434 PARAMS ((struct bfd_link_hash_table *, bfd *, 383 435 struct bfd_hash_entry *(*) (struct bfd_hash_entry *, … … 389 441 PARAMS ((bfd *)); 390 442 443 /* Generic link hash table destruction routine. */ 444 extern void _bfd_generic_link_hash_table_free 445 PARAMS ((struct bfd_link_hash_table *)); 446 391 447 /* Generic add symbol routine. */ 392 extern b oolean _bfd_generic_link_add_symbols448 extern bfd_boolean _bfd_generic_link_add_symbols 393 449 PARAMS ((bfd *, struct bfd_link_info *)); 394 450 … … 396 452 which the linker must collect constructors and destructors by name, 397 453 as the collect2 program does. */ 398 extern b oolean _bfd_generic_link_add_symbols_collect454 extern bfd_boolean _bfd_generic_link_add_symbols_collect 399 455 PARAMS ((bfd *, struct bfd_link_info *)); 400 456 401 457 /* Generic archive add symbol routine. */ 402 extern b oolean _bfd_generic_link_add_archive_symbols458 extern bfd_boolean _bfd_generic_link_add_archive_symbols 403 459 PARAMS ((bfd *, struct bfd_link_info *, 404 boolean (*checkfn) (bfd *, struct bfd_link_info *, boolean *))); 405 406 460 bfd_boolean (*) (bfd *, struct bfd_link_info *, bfd_boolean *))); 407 461 408 462 /* Forward declaration to avoid prototype errors. */ … … 410 464 411 465 /* Generic routine to add a single symbol. */ 412 extern b oolean _bfd_generic_link_add_one_symbol466 extern bfd_boolean _bfd_generic_link_add_one_symbol 413 467 PARAMS ((struct bfd_link_info *, bfd *, const char *name, flagword, 414 asection *, bfd_vma, const char *, boolean copy, 415 boolean constructor, struct bfd_link_hash_entry **)); 468 asection *, bfd_vma, const char *, bfd_boolean copy, 469 bfd_boolean constructor, struct bfd_link_hash_entry **)); 470 471 /* Generic routine to mark section as supplying symbols only. */ 472 extern void _bfd_generic_link_just_syms 473 PARAMS ((asection *, struct bfd_link_info *)); 416 474 417 475 /* Generic link routine. */ 418 extern b oolean _bfd_generic_final_link476 extern bfd_boolean _bfd_generic_final_link 419 477 PARAMS ((bfd *, struct bfd_link_info *)); 420 478 421 extern b oolean _bfd_generic_link_split_section479 extern bfd_boolean _bfd_generic_link_split_section 422 480 PARAMS ((bfd *, struct sec *)); 423 481 424 482 /* Generic reloc_link_order processing routine. */ 425 extern b oolean _bfd_generic_reloc_link_order483 extern bfd_boolean _bfd_generic_reloc_link_order 426 484 PARAMS ((bfd *, struct bfd_link_info *, asection *, 427 485 struct bfd_link_order *)); 428 486 429 487 /* Default link order processing routine. */ 430 extern b oolean _bfd_default_link_order488 extern bfd_boolean _bfd_default_link_order 431 489 PARAMS ((bfd *, struct bfd_link_info *, asection *, 432 490 struct bfd_link_order *)); … … 439 497 extern bfd_reloc_status_type _bfd_final_link_relocate 440 498 PARAMS ((reloc_howto_type *, bfd *, asection *, bfd_byte *, 441 bfd_vma address, bfd_vma value, bfd_vma addend));499 bfd_vma, bfd_vma, bfd_vma)); 442 500 443 501 /* Relocate a particular location by a howto and a value. */ … … 447 505 /* Link stabs in sections in the first pass. */ 448 506 449 extern b oolean _bfd_link_section_stabs507 extern bfd_boolean _bfd_link_section_stabs 450 508 PARAMS ((bfd *, PTR *, asection *, asection *, PTR *)); 451 509 510 /* Eliminate stabs for discarded functions and symbols. */ 511 extern bfd_boolean _bfd_discard_section_stabs 512 PARAMS ((bfd *, asection *, PTR, 513 bfd_boolean (*) (bfd_vma, PTR), PTR)); 514 452 515 /* Write out the .stab section when linking stabs in sections. */ 453 516 454 extern b oolean _bfd_write_section_stabs517 extern bfd_boolean _bfd_write_section_stabs 455 518 PARAMS ((bfd *, PTR *, asection *, PTR *, bfd_byte *)); 456 519 457 520 /* Write out the .stabstr string table when linking stabs in sections. */ 458 521 459 extern boolean _bfd_write_stab_strings PARAMS ((bfd *, PTR *)); 522 extern bfd_boolean _bfd_write_stab_strings 523 PARAMS ((bfd *, PTR *)); 460 524 461 525 /* Find an offset within a .stab section when linking stabs in … … 465 529 PARAMS ((bfd *, PTR *, asection *, PTR *, bfd_vma)); 466 530 531 /* Attempt to merge a SEC_MERGE section. */ 532 533 extern bfd_boolean _bfd_merge_section 534 PARAMS ((bfd *, PTR *, asection *, PTR *)); 535 536 /* Attempt to merge SEC_MERGE sections. */ 537 538 extern bfd_boolean _bfd_merge_sections 539 PARAMS ((bfd *, PTR, void (*)(bfd *, asection *))); 540 541 /* Write out a merged section. */ 542 543 extern bfd_boolean _bfd_write_merged_section 544 PARAMS ((bfd *, asection *, PTR)); 545 546 /* Find an offset within a modified SEC_MERGE section. */ 547 548 extern bfd_vma _bfd_merged_section_offset 549 PARAMS ((bfd *, asection **, PTR, bfd_vma, bfd_vma)); 550 467 551 /* Create a string table. */ 468 extern struct bfd_strtab_hash *_bfd_stringtab_init PARAMS ((void)); 552 extern struct bfd_strtab_hash *_bfd_stringtab_init 553 PARAMS ((void)); 469 554 470 555 /* Create an XCOFF .debug section style string table. */ 471 extern struct bfd_strtab_hash *_bfd_xcoff_stringtab_init PARAMS ((void)); 556 extern struct bfd_strtab_hash *_bfd_xcoff_stringtab_init 557 PARAMS ((void)); 472 558 473 559 /* Free a string table. */ 474 extern void _bfd_stringtab_free PARAMS ((struct bfd_strtab_hash *)); 560 extern void _bfd_stringtab_free 561 PARAMS ((struct bfd_strtab_hash *)); 475 562 476 563 /* Get the size of a string table. */ 477 extern bfd_size_type _bfd_stringtab_size PARAMS ((struct bfd_strtab_hash *)); 564 extern bfd_size_type _bfd_stringtab_size 565 PARAMS ((struct bfd_strtab_hash *)); 478 566 479 567 /* Add a string to a string table. */ 480 568 extern bfd_size_type _bfd_stringtab_add 481 PARAMS ((struct bfd_strtab_hash *, const char *, b oolean hash,482 b oolean copy));569 PARAMS ((struct bfd_strtab_hash *, const char *, bfd_boolean hash, 570 bfd_boolean copy)); 483 571 484 572 /* Write out a string table. */ 485 extern boolean _bfd_stringtab_emit PARAMS ((bfd *, struct bfd_strtab_hash *)); 573 extern bfd_boolean _bfd_stringtab_emit 574 PARAMS ((bfd *, struct bfd_strtab_hash *)); 486 575 487 576 /* Check that endianness of input and output file match. */ 488 extern boolean _bfd_generic_verify_endian_match PARAMS ((bfd *, bfd *)); 577 extern bfd_boolean _bfd_generic_verify_endian_match 578 PARAMS ((bfd *, bfd *)); 489 579 490 580 … … 501 591 #define bfd_write_p(abfd) ((abfd)->direction == write_direction || (abfd)->direction == both_direction) 502 592 503 void bfd_assert PARAMS ((const char*,int)); 593 void bfd_assert 594 PARAMS ((const char*,int)); 504 595 505 596 #define BFD_ASSERT(x) \ … … 509 600 { bfd_assert(__FILE__,__LINE__); } 510 601 511 extern void _bfd_abort PARAMS ((const char *, int, const char *))512 602 extern void _bfd_abort 603 PARAMS ((const char *, int, const char *)) ATTRIBUTE_NORETURN; 513 604 514 605 /* if gcc >= 2.6, we can give a function name, too */ … … 520 611 #define abort() _bfd_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__) 521 612 522 FILE * bfd_cache_lookup_worker PARAMS ((bfd *)); 613 FILE * bfd_cache_lookup_worker 614 PARAMS ((bfd *)); 523 615 524 616 extern bfd *bfd_last_cache; … … 529 621 extern const bfd_target *bfd_default_vector[]; 530 622 623 /* List of associated target vectors. */ 624 extern const bfd_target * const *bfd_associated_vector; 625 531 626 /* Functions shared by the ECOFF and MIPS ELF backends, which have no 532 627 other common header files. */ … … 536 631 #endif 537 632 538 extern b oolean _bfd_ecoff_locate_line633 extern bfd_boolean _bfd_ecoff_locate_line 539 634 PARAMS ((bfd *, asection *, bfd_vma, struct ecoff_debug_info * const, 540 635 const struct ecoff_debug_swap * const, struct ecoff_find_line *, 541 636 const char **, const char **, unsigned int *)); 542 extern boolean _bfd_ecoff_get_accumulated_pdr PARAMS ((PTR, bfd_byte *)); 543 extern boolean _bfd_ecoff_get_accumulated_sym PARAMS ((PTR, bfd_byte *)); 544 extern boolean _bfd_ecoff_get_accumulated_ss PARAMS ((PTR, bfd_byte *)); 545 546 extern bfd_vma _bfd_get_gp_value PARAMS ((bfd *)); 547 extern void _bfd_set_gp_value PARAMS ((bfd *, bfd_vma)); 637 extern bfd_boolean _bfd_ecoff_get_accumulated_pdr 638 PARAMS ((PTR, bfd_byte *)); 639 extern bfd_boolean _bfd_ecoff_get_accumulated_sym 640 PARAMS ((PTR, bfd_byte *)); 641 extern bfd_boolean _bfd_ecoff_get_accumulated_ss 642 PARAMS ((PTR, bfd_byte *)); 643 644 extern bfd_vma _bfd_get_gp_value 645 PARAMS ((bfd *)); 646 extern void _bfd_set_gp_value 647 PARAMS ((bfd *, bfd_vma)); 548 648 549 649 /* Function shared by the COFF and ELF SH backends, which have no 550 650 other common header files. */ 551 651 552 extern b oolean _bfd_sh_align_load_span652 extern bfd_boolean _bfd_sh_align_load_span 553 653 PARAMS ((bfd *, asection *, bfd_byte *, 554 boolean (*) (bfd *, asection *, PTR, bfd_byte *, bfd_vma), 555 PTR, bfd_vma **, bfd_vma *, bfd_vma, bfd_vma, boolean *)); 556 557 /* And more follows */ 558 654 bfd_boolean (*) (bfd *, asection *, PTR, bfd_byte *, bfd_vma), 655 PTR, bfd_vma **, bfd_vma *, bfd_vma, bfd_vma, bfd_boolean *)); 656 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.