Changeset 609 for branches/GNU/src/binutils/bfd/libcoff-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/libcoff-in.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* BFD COFF object file private structure. 2 2 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3 2000, 2001 3 2000, 2001, 2002 4 4 Free Software Foundation, Inc. 5 5 Written by Cygnus Support. 6 7 ** NOTE: libcoff.h is a GENERATED file. Don't change it; instead,8 ** change libcoff-in.h or coffcode.h.9 6 10 7 This file is part of BFD, the Binary File Descriptor library. … … 78 75 _bfd_coff_get_external_symbols. */ 79 76 PTR external_syms; 80 /* If this is true, the external_syms may not be freed. */81 b oolean keep_syms;77 /* If this is TRUE, the external_syms may not be freed. */ 78 bfd_boolean keep_syms; 82 79 83 80 /* The string table. May be NULL. Read by 84 81 _bfd_coff_read_string_table. */ 85 82 char *strings; 86 /* If this is true, the strings may not be freed. */87 b oolean keep_strings;88 /* If this is true, the strings have been written out already. */89 b oolean strings_written;83 /* If this is TRUE, the strings may not be freed. */ 84 bfd_boolean keep_strings; 85 /* If this is TRUE, the strings have been written out already. */ 86 bfd_boolean strings_written; 90 87 91 88 /* is this a PE format coff file */ … … 121 118 int dll; 122 119 int has_reloc_section; 123 b oolean (*in_reloc_p) PARAMS((bfd *, reloc_howto_type *));120 bfd_boolean (*in_reloc_p) PARAMS((bfd *, reloc_howto_type *)); 124 121 flagword real_flags; 125 122 int target_subsystem; 126 b oolean force_minimum_alignment;123 bfd_boolean force_minimum_alignment; 127 124 } pe_data_type; 128 125 … … 136 133 coff_data_type coff; 137 134 138 /* T rueif this is an XCOFF64 file. */139 b oolean xcoff64;140 141 /* T rueif a large a.out header should be generated. */142 b oolean full_aouthdr;135 /* TRUE if this is an XCOFF64 file. */ 136 bfd_boolean xcoff64; 137 138 /* TRUE if a large a.out header should be generated. */ 139 bfd_boolean full_aouthdr; 143 140 144 141 /* TOC value. */ … … 177 174 #define xcoff_data(abfd) ((abfd)->tdata.xcoff_obj_data) 178 175 179 /* We take the address of the first element of a asymbol to ensure that the176 /* We take the address of the first element of an asymbol to ensure that the 180 177 * macro is only ever applied to an asymbol. */ 181 178 #define coffsymbol(asymbol) ((coff_symbol_type *)(&((asymbol)->the_bfd))) … … 188 185 /* The relocs, swapped into COFF internal form. This may be NULL. */ 189 186 struct internal_reloc *relocs; 190 /* If this is true, the relocs entry may not be freed. */191 b oolean keep_relocs;187 /* If this is TRUE, the relocs entry may not be freed. */ 188 bfd_boolean keep_relocs; 192 189 /* The section contents. This may be NULL. */ 193 190 bfd_byte *contents; 194 /* If this is true, the contents entry may not be freed. */195 b oolean keep_contents;191 /* If this is TRUE, the contents entry may not be freed. */ 192 bfd_boolean keep_contents; 196 193 /* Information cached by coff_find_nearest_line. */ 197 194 bfd_vma offset; … … 295 292 (bfd_link_hash_traverse \ 296 293 (&(table)->root, \ 297 (b oolean (*) PARAMS ((struct bfd_link_hash_entry *, PTR))) (func),\294 (bfd_boolean (*) PARAMS ((struct bfd_link_hash_entry *, PTR))) (func), \ 298 295 (info))) 299 296 … … 303 300 304 301 /* Functions in coffgen.c. */ 305 extern const bfd_target *coff_object_p PARAMS ((bfd *)); 306 extern struct sec *coff_section_from_bfd_index PARAMS ((bfd *, int)); 307 extern long coff_get_symtab_upper_bound PARAMS ((bfd *)); 308 extern long coff_get_symtab PARAMS ((bfd *, asymbol **)); 309 extern int coff_count_linenumbers PARAMS ((bfd *)); 310 extern struct coff_symbol_struct *coff_symbol_from PARAMS ((bfd *, asymbol *)); 311 extern boolean coff_renumber_symbols PARAMS ((bfd *, int *)); 312 extern void coff_mangle_symbols PARAMS ((bfd *)); 313 extern boolean coff_write_symbols PARAMS ((bfd *)); 314 extern boolean coff_write_linenumbers PARAMS ((bfd *)); 315 extern alent *coff_get_lineno PARAMS ((bfd *, asymbol *)); 316 extern asymbol *coff_section_symbol PARAMS ((bfd *, char *)); 317 extern boolean _bfd_coff_get_external_symbols PARAMS ((bfd *)); 318 extern const char *_bfd_coff_read_string_table PARAMS ((bfd *)); 319 extern boolean _bfd_coff_free_symbols PARAMS ((bfd *)); 320 extern struct coff_ptr_struct *coff_get_normalized_symtab PARAMS ((bfd *)); 321 extern long coff_get_reloc_upper_bound PARAMS ((bfd *, sec_ptr)); 322 extern asymbol *coff_make_empty_symbol PARAMS ((bfd *)); 323 extern void coff_print_symbol PARAMS ((bfd *, PTR filep, asymbol *, 324 bfd_print_symbol_type how)); 325 extern void coff_get_symbol_info PARAMS ((bfd *, asymbol *, 326 symbol_info *ret)); 327 extern boolean _bfd_coff_is_local_label_name PARAMS ((bfd *, const char *)); 328 extern asymbol *coff_bfd_make_debug_symbol PARAMS ((bfd *, PTR, 329 unsigned long)); 330 extern boolean coff_find_nearest_line PARAMS ((bfd *, 331 asection *, 332 asymbol **, 333 bfd_vma offset, 334 CONST char **filename_ptr, 335 CONST char **functionname_ptr, 336 unsigned int *line_ptr)); 337 extern int coff_sizeof_headers PARAMS ((bfd *, boolean reloc)); 338 extern boolean bfd_coff_reloc16_relax_section 339 PARAMS ((bfd *, asection *, struct bfd_link_info *, boolean *)); 302 extern const bfd_target *coff_object_p 303 PARAMS ((bfd *)); 304 extern struct sec *coff_section_from_bfd_index 305 PARAMS ((bfd *, int)); 306 extern long coff_get_symtab_upper_bound 307 PARAMS ((bfd *)); 308 extern long coff_get_symtab 309 PARAMS ((bfd *, asymbol **)); 310 extern int coff_count_linenumbers 311 PARAMS ((bfd *)); 312 extern struct coff_symbol_struct *coff_symbol_from 313 PARAMS ((bfd *, asymbol *)); 314 extern bfd_boolean coff_renumber_symbols 315 PARAMS ((bfd *, int *)); 316 extern void coff_mangle_symbols 317 PARAMS ((bfd *)); 318 extern bfd_boolean coff_write_symbols 319 PARAMS ((bfd *)); 320 extern bfd_boolean coff_write_linenumbers 321 PARAMS ((bfd *)); 322 extern alent *coff_get_lineno 323 PARAMS ((bfd *, asymbol *)); 324 extern asymbol *coff_section_symbol 325 PARAMS ((bfd *, char *)); 326 extern bfd_boolean _bfd_coff_get_external_symbols 327 PARAMS ((bfd *)); 328 extern const char *_bfd_coff_read_string_table 329 PARAMS ((bfd *)); 330 extern bfd_boolean _bfd_coff_free_symbols 331 PARAMS ((bfd *)); 332 extern struct coff_ptr_struct *coff_get_normalized_symtab 333 PARAMS ((bfd *)); 334 extern long coff_get_reloc_upper_bound 335 PARAMS ((bfd *, sec_ptr)); 336 extern asymbol *coff_make_empty_symbol 337 PARAMS ((bfd *)); 338 extern void coff_print_symbol 339 PARAMS ((bfd *, PTR filep, asymbol *, bfd_print_symbol_type)); 340 extern void coff_get_symbol_info 341 PARAMS ((bfd *, asymbol *, symbol_info *ret)); 342 extern bfd_boolean _bfd_coff_is_local_label_name 343 PARAMS ((bfd *, const char *)); 344 extern asymbol *coff_bfd_make_debug_symbol 345 PARAMS ((bfd *, PTR, unsigned long)); 346 extern bfd_boolean coff_find_nearest_line 347 PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **, 348 const char **, unsigned int *)); 349 extern int coff_sizeof_headers 350 PARAMS ((bfd *, bfd_boolean)); 351 extern bfd_boolean bfd_coff_reloc16_relax_section 352 PARAMS ((bfd *, asection *, struct bfd_link_info *, bfd_boolean *)); 340 353 extern bfd_byte *bfd_coff_reloc16_get_relocated_section_contents 341 354 PARAMS ((bfd *, struct bfd_link_info *, struct bfd_link_order *, 342 bfd_byte *, boolean relocateable, asymbol **)); 343 extern bfd_vma bfd_coff_reloc16_get_value PARAMS ((arelent *, 344 struct bfd_link_info *, 345 asection *)); 346 extern void bfd_perform_slip PARAMS ((bfd *abfd, unsigned int slip, 347 asection *input_section, 348 bfd_vma val)); 355 bfd_byte *, bfd_boolean, asymbol **)); 356 extern bfd_vma bfd_coff_reloc16_get_value 357 PARAMS ((arelent *, struct bfd_link_info *, asection *)); 358 extern void bfd_perform_slip 359 PARAMS ((bfd *, unsigned int, asection *, bfd_vma)); 349 360 350 361 /* Functions and types in cofflink.c. */ … … 444 455 bfd *output_bfd; 445 456 /* Used to indicate failure in traversal routine. */ 446 b oolean failed;457 bfd_boolean failed; 447 458 /* If doing "task linking" set only during the time when we want the 448 459 global symbol writer to convert the storage class of defined global 449 460 symbols from global to static. */ 450 b oolean global_to_static;461 bfd_boolean global_to_static; 451 462 /* Hash table for long symbol names. */ 452 463 struct bfd_strtab_hash *strtab; … … 522 533 extern struct bfd_hash_entry *_bfd_coff_link_hash_newfunc 523 534 PARAMS ((struct bfd_hash_entry *, struct bfd_hash_table *, const char *)); 524 extern b oolean _bfd_coff_link_hash_table_init535 extern bfd_boolean _bfd_coff_link_hash_table_init 525 536 PARAMS ((struct coff_link_hash_table *, bfd *, 526 537 struct bfd_hash_entry *(*) (struct bfd_hash_entry *, … … 531 542 extern const char *_bfd_coff_internal_syment_name 532 543 PARAMS ((bfd *, const struct internal_syment *, char *)); 533 extern b oolean _bfd_coff_link_add_symbols544 extern bfd_boolean _bfd_coff_link_add_symbols 534 545 PARAMS ((bfd *, struct bfd_link_info *)); 535 extern b oolean _bfd_coff_final_link546 extern bfd_boolean _bfd_coff_final_link 536 547 PARAMS ((bfd *, struct bfd_link_info *)); 537 548 extern struct internal_reloc *_bfd_coff_read_internal_relocs 538 PARAMS ((bfd *, asection *, b oolean, bfd_byte *,boolean,549 PARAMS ((bfd *, asection *, bfd_boolean, bfd_byte *, bfd_boolean, 539 550 struct internal_reloc *)); 540 extern b oolean _bfd_coff_generic_relocate_section551 extern bfd_boolean _bfd_coff_generic_relocate_section 541 552 PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, 542 553 struct internal_reloc *, struct internal_syment *, asection **)); … … 544 555 extern struct bfd_hash_entry *_bfd_coff_debug_merge_hash_newfunc 545 556 PARAMS ((struct bfd_hash_entry *, struct bfd_hash_table *, const char *)); 546 extern b oolean _bfd_coff_write_global_sym557 extern bfd_boolean _bfd_coff_write_global_sym 547 558 PARAMS ((struct coff_link_hash_entry *, PTR)); 548 extern b oolean _bfd_coff_write_task_globals559 extern bfd_boolean _bfd_coff_write_task_globals 549 560 PARAMS ((struct coff_link_hash_entry *, PTR)); 550 extern b oolean _bfd_coff_link_input_bfd561 extern bfd_boolean _bfd_coff_link_input_bfd 551 562 PARAMS ((struct coff_final_link_info *, bfd *)); 552 extern b oolean _bfd_coff_reloc_link_order563 extern bfd_boolean _bfd_coff_reloc_link_order 553 564 PARAMS ((bfd *, struct coff_final_link_info *, asection *, 554 565 struct bfd_link_order *)); … … 560 571 /* Functions in xcofflink.c. */ 561 572 562 extern long _bfd_xcoff_get_dynamic_symtab_upper_bound PARAMS ((bfd *)); 573 extern long _bfd_xcoff_get_dynamic_symtab_upper_bound 574 PARAMS ((bfd *)); 563 575 extern long _bfd_xcoff_canonicalize_dynamic_symtab 564 576 PARAMS ((bfd *, asymbol **)); 565 extern long _bfd_xcoff_get_dynamic_reloc_upper_bound PARAMS ((bfd *)); 577 extern long _bfd_xcoff_get_dynamic_reloc_upper_bound 578 PARAMS ((bfd *)); 566 579 extern long _bfd_xcoff_canonicalize_dynamic_reloc 567 580 PARAMS ((bfd *, arelent **, asymbol **)); 568 581 extern struct bfd_link_hash_table *_bfd_xcoff_bfd_link_hash_table_create 569 582 PARAMS ((bfd *)); 570 extern boolean _bfd_xcoff_bfd_link_add_symbols 583 extern void _bfd_xcoff_bfd_link_hash_table_free 584 PARAMS ((struct bfd_link_hash_table *)); 585 extern bfd_boolean _bfd_xcoff_bfd_link_add_symbols 571 586 PARAMS ((bfd *, struct bfd_link_info *)); 572 extern b oolean _bfd_xcoff_bfd_final_link587 extern bfd_boolean _bfd_xcoff_bfd_final_link 573 588 PARAMS ((bfd *, struct bfd_link_info *)); 574 extern b oolean _bfd_ppc_xcoff_relocate_section589 extern bfd_boolean _bfd_ppc_xcoff_relocate_section 575 590 PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, 576 591 struct internal_reloc *, struct internal_syment *, asection **)); … … 579 594 linker, and so should start with bfd and be declared in bfd.h. */ 580 595 581 extern boolean ppc_allocate_toc_section PARAMS ((struct bfd_link_info *)); 582 extern boolean ppc_process_before_allocation 596 extern bfd_boolean ppc_allocate_toc_section 597 PARAMS ((struct bfd_link_info *)); 598 extern bfd_boolean ppc_process_before_allocation 583 599 PARAMS ((bfd *, struct bfd_link_info *)); 584 600 585 /* And more taken from the source .. */586 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.