Changeset 609 for branches/GNU/src/binutils/bfd/libbfd.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.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 /* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically 2 generated from "libbfd-in.h", "init.c", "libbfd.c", "bfdio.c", 3 "bfdwin.c", "cache.c", "reloc.c", "archures.c" and "elf.c". 4 Run "make headers" in your build bfd/ to regenerate. */ 5 1 6 /* libbfd.h -- Declarations used by bfd library *implementation*. 2 7 (This include file is not for users of the library.) 3 8 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 2000, 2001 9 2000, 2001, 2002 5 10 Free Software Foundation, Inc. 6 11 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 12 12 13 This file is part of BFD, the Binary File Descriptor library. … … 30 31 to wrap around if the address is within boundary-1 of the end of the 31 32 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)))\33 #define BFD_ALIGN(this, boundary) \ 34 ((((bfd_vma) (this) + (boundary) - 1) >= (bfd_vma) (this)) \ 35 ? (((bfd_vma) (this) + ((boundary) - 1)) & ~ (bfd_vma) ((boundary)-1)) \ 35 36 : ~ (bfd_vma) 0) 36 37 … … 88 89 #define arelt_size(bfd) (((struct areltdata *)((bfd)->arelt_data))->parsed_size) 89 90 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)); 91 extern PTR bfd_malloc 92 PARAMS ((bfd_size_type)); 93 extern PTR bfd_realloc 94 PARAMS ((PTR, bfd_size_type)); 95 extern PTR bfd_zmalloc 96 PARAMS ((bfd_size_type)); 93 97 94 98 extern bfd_error_handler_type _bfd_error_handler; … … 96 100 /* These routines allocate and free things on the BFD's objalloc. */ 97 101 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)); 102 extern PTR bfd_alloc 103 PARAMS ((bfd *, bfd_size_type)); 104 extern PTR bfd_zalloc 105 PARAMS ((bfd *, bfd_size_type)); 106 extern void bfd_release 107 PARAMS ((bfd *, PTR)); 108 109 bfd * _bfd_create_empty_archive_element_shell 110 PARAMS ((bfd *obfd)); 111 bfd * _bfd_look_for_bfd_in_cache 112 PARAMS ((bfd *, file_ptr)); 113 bfd_boolean _bfd_add_bfd_to_archive_cache 114 PARAMS ((bfd *, file_ptr, bfd *)); 115 bfd_boolean _bfd_generic_mkarchive 116 PARAMS ((bfd *abfd)); 117 const bfd_target *bfd_generic_archive_p 118 PARAMS ((bfd *abfd)); 119 bfd_boolean bfd_slurp_armap 120 PARAMS ((bfd *abfd)); 121 bfd_boolean bfd_slurp_bsd_armap_f2 122 PARAMS ((bfd *abfd)); 109 123 #define bfd_slurp_bsd_armap bfd_slurp_armap 110 124 #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 *)); 125 bfd_boolean _bfd_slurp_extended_name_table 126 PARAMS ((bfd *abfd)); 127 extern bfd_boolean _bfd_construct_extended_name_table 128 PARAMS ((bfd *, bfd_boolean, char **, bfd_size_type *)); 129 bfd_boolean _bfd_write_archive_contents 130 PARAMS ((bfd *abfd)); 131 bfd_boolean _bfd_compute_and_write_armap 132 PARAMS ((bfd *, unsigned int elength)); 133 bfd *_bfd_get_elt_at_filepos 134 PARAMS ((bfd *archive, file_ptr filepos)); 135 extern bfd *_bfd_generic_get_elt_at_index 136 PARAMS ((bfd *, symindex)); 137 bfd * _bfd_new_bfd 138 PARAMS ((void)); 139 void _bfd_delete_bfd 140 PARAMS ((bfd *)); 141 142 bfd_boolean bfd_false 143 PARAMS ((bfd *ignore)); 144 bfd_boolean bfd_true 145 PARAMS ((bfd *ignore)); 146 PTR bfd_nullvoidptr 147 PARAMS ((bfd *ignore)); 148 int bfd_0 149 PARAMS ((bfd *ignore)); 150 unsigned int bfd_0u 151 PARAMS ((bfd *ignore)); 152 long bfd_0l 153 PARAMS ((bfd *ignore)); 154 long _bfd_n1 155 PARAMS ((bfd *ignore)); 156 void bfd_void 157 PARAMS ((bfd *ignore)); 158 159 bfd *_bfd_new_bfd_contained_in 160 PARAMS ((bfd *)); 161 const bfd_target *_bfd_dummy_target 162 PARAMS ((bfd *abfd)); 163 164 void bfd_dont_truncate_arname 165 PARAMS ((bfd *abfd, const char *filename, char *hdr)); 166 void bfd_bsd_truncate_arname 167 PARAMS ((bfd *abfd, const char *filename, char *hdr)); 168 void bfd_gnu_truncate_arname 169 PARAMS ((bfd *abfd, const char *filename, char *hdr)); 170 171 bfd_boolean bsd_write_armap 172 PARAMS ((bfd *arch, unsigned int elength, struct orl *map, 173 unsigned int orl_count, int stridx)); 174 175 bfd_boolean coff_write_armap 176 PARAMS ((bfd *arch, unsigned int elength, struct orl *map, 177 unsigned int orl_count, int stridx)); 178 179 extern PTR _bfd_generic_read_ar_hdr 180 PARAMS ((bfd *)); 181 182 extern PTR _bfd_generic_read_ar_hdr_mag 183 PARAMS ((bfd *, const char *)); 184 185 bfd * bfd_generic_openr_next_archived_file 186 PARAMS ((bfd *archive, bfd *last_file)); 187 188 int bfd_generic_stat_arch_elt 189 PARAMS ((bfd *, struct stat *)); 153 190 154 191 #define _bfd_read_ar_hdr(abfd) \ … … 162 199 #define _bfd_generic_bfd_free_cached_info bfd_true 163 200 #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 201 ((bfd_boolean (*) PARAMS ((bfd *, asection *))) bfd_true) 202 extern bfd_boolean _bfd_generic_get_section_contents 203 PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); 204 extern bfd_boolean _bfd_generic_get_section_contents_in_window 169 205 PARAMS ((bfd *, asection *, bfd_window *, file_ptr, bfd_size_type)); 170 206 … … 173 209 174 210 #define _bfd_generic_bfd_copy_private_bfd_data \ 175 ((b oolean (*) PARAMS ((bfd *, bfd *))) bfd_true)211 ((bfd_boolean (*) PARAMS ((bfd *, bfd *))) bfd_true) 176 212 #define _bfd_generic_bfd_merge_private_bfd_data \ 177 ((b oolean (*) PARAMS ((bfd *, bfd *))) bfd_true)213 ((bfd_boolean (*) PARAMS ((bfd *, bfd *))) bfd_true) 178 214 #define _bfd_generic_bfd_set_private_flags \ 179 ((b oolean (*) PARAMS ((bfd *, flagword))) bfd_true)215 ((bfd_boolean (*) PARAMS ((bfd *, flagword))) bfd_true) 180 216 #define _bfd_generic_bfd_copy_private_section_data \ 181 ((b oolean (*) PARAMS ((bfd *, asection *, bfd *, asection *))) bfd_true)217 ((bfd_boolean (*) PARAMS ((bfd *, asection *, bfd *, asection *))) bfd_true) 182 218 #define _bfd_generic_bfd_copy_private_symbol_data \ 183 ((b oolean (*) PARAMS ((bfd *, asymbol *, bfd *, asymbol *))) bfd_true)219 ((bfd_boolean (*) PARAMS ((bfd *, asymbol *, bfd *, asymbol *))) bfd_true) 184 220 #define _bfd_generic_bfd_print_private_bfd_data \ 185 ((b oolean (*) PARAMS ((bfd *, PTR))) bfd_true)221 ((bfd_boolean (*) PARAMS ((bfd *, PTR))) bfd_true) 186 222 187 223 /* Routines to use for BFD_JUMP_TABLE_CORE when there is no core file 188 224 support. Use BFD_JUMP_TABLE_CORE (_bfd_nocore). */ 189 225 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 226 extern char *_bfd_nocore_core_file_failing_command 227 PARAMS ((bfd *)); 228 extern int _bfd_nocore_core_file_failing_signal 229 PARAMS ((bfd *)); 230 extern bfd_boolean _bfd_nocore_core_file_matches_executable_p 193 231 PARAMS ((bfd *, bfd *)); 194 232 … … 199 237 #define _bfd_noarchive_slurp_extended_name_table bfd_false 200 238 #define _bfd_noarchive_construct_extended_name_table \ 201 ((boolean (*) PARAMS ((bfd *, char **, bfd_size_type *, const char **))) \ 239 ((bfd_boolean (*) \ 240 PARAMS ((bfd *, char **, bfd_size_type *, const char **))) \ 202 241 bfd_false) 203 242 #define _bfd_noarchive_truncate_arname \ 204 243 ((void (*) PARAMS ((bfd *, const char *, char *))) bfd_void) 205 244 #define _bfd_noarchive_write_armap \ 206 ((b oolean (*) \245 ((bfd_boolean (*) \ 207 246 PARAMS ((bfd *, unsigned int, struct orl *, unsigned int, int))) \ 208 247 bfd_false) … … 221 260 #define _bfd_archive_bsd_slurp_extended_name_table \ 222 261 _bfd_slurp_extended_name_table 223 extern b oolean _bfd_archive_bsd_construct_extended_name_table262 extern bfd_boolean _bfd_archive_bsd_construct_extended_name_table 224 263 PARAMS ((bfd *, char **, bfd_size_type *, const char **)); 225 264 #define _bfd_archive_bsd_truncate_arname bfd_bsd_truncate_arname … … 231 270 #define _bfd_archive_bsd_generic_stat_arch_elt \ 232 271 bfd_generic_stat_arch_elt 233 extern boolean _bfd_archive_bsd_update_armap_timestamp PARAMS ((bfd *)); 272 extern bfd_boolean _bfd_archive_bsd_update_armap_timestamp 273 PARAMS ((bfd *)); 234 274 235 275 /* Routines to use for BFD_JUMP_TABLE_ARCHIVE to get COFF style … … 239 279 #define _bfd_archive_coff_slurp_extended_name_table \ 240 280 _bfd_slurp_extended_name_table 241 extern b oolean _bfd_archive_coff_construct_extended_name_table281 extern bfd_boolean _bfd_archive_coff_construct_extended_name_table 242 282 PARAMS ((bfd *, char **, bfd_size_type *, const char **)); 243 283 #define _bfd_archive_coff_truncate_arname bfd_dont_truncate_arname … … 257 297 #define _bfd_nosymbols_get_symtab \ 258 298 ((long (*) PARAMS ((bfd *, asymbol **))) _bfd_n1) 259 #define _bfd_nosymbols_make_empty_symbol \ 260 ((asymbol *(*) PARAMS ((bfd *))) bfd_nullvoidptr) 299 #define _bfd_nosymbols_make_empty_symbol _bfd_generic_make_empty_symbol 261 300 #define _bfd_nosymbols_print_symbol \ 262 301 ((void (*) PARAMS ((bfd *, PTR, asymbol *, bfd_print_symbol_type))) bfd_void) … … 264 303 ((void (*) PARAMS ((bfd *, asymbol *, symbol_info *))) bfd_void) 265 304 #define _bfd_nosymbols_bfd_is_local_label_name \ 266 ((b oolean (*) PARAMS ((bfd *, const char *))) bfd_false)305 ((bfd_boolean (*) PARAMS ((bfd *, const char *))) bfd_false) 267 306 #define _bfd_nosymbols_get_lineno \ 268 307 ((alent *(*) PARAMS ((bfd *, asymbol *))) bfd_nullvoidptr) 269 308 #define _bfd_nosymbols_find_nearest_line \ 270 ((b oolean (*) \309 ((bfd_boolean (*) \ 271 310 PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **, \ 272 311 const char **, unsigned int *))) \ … … 275 314 ((asymbol *(*) PARAMS ((bfd *, PTR, unsigned long))) bfd_nullvoidptr) 276 315 #define _bfd_nosymbols_read_minisymbols \ 277 ((long (*) PARAMS ((bfd *, b oolean, PTR *, unsigned int *))) _bfd_n1)316 ((long (*) PARAMS ((bfd *, bfd_boolean, PTR *, unsigned int *))) _bfd_n1) 278 317 #define _bfd_nosymbols_minisymbol_to_symbol \ 279 ((asymbol *(*) PARAMS ((bfd *, b oolean, const PTR, asymbol *))) \318 ((asymbol *(*) PARAMS ((bfd *, bfd_boolean, const PTR, asymbol *))) \ 280 319 bfd_nullvoidptr) 281 320 … … 295 334 296 335 #define _bfd_nowrite_set_arch_mach \ 297 ((b oolean (*) PARAMS ((bfd *, enum bfd_architecture, unsigned long))) \336 ((bfd_boolean (*) PARAMS ((bfd *, enum bfd_architecture, unsigned long))) \ 298 337 bfd_false) 299 338 #define _bfd_nowrite_set_section_contents \ 300 ((boolean (*) PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type))) \ 339 ((bfd_boolean (*) \ 340 PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type))) \ 301 341 bfd_false) 302 342 … … 305 345 306 346 #define _bfd_generic_set_arch_mach bfd_default_set_arch_mach 307 extern b oolean _bfd_generic_set_section_contents347 extern bfd_boolean _bfd_generic_set_section_contents 308 348 PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); 309 349 … … 311 351 support linking. Use BFD_JUMP_TABLE_LINK (_bfd_nolink). */ 312 352 313 #define _bfd_nolink_sizeof_headers ((int (*) PARAMS ((bfd *, b oolean))) bfd_0)353 #define _bfd_nolink_sizeof_headers ((int (*) PARAMS ((bfd *, bfd_boolean))) bfd_0) 314 354 #define _bfd_nolink_bfd_get_relocated_section_contents \ 315 355 ((bfd_byte *(*) \ 316 356 PARAMS ((bfd *, struct bfd_link_info *, struct bfd_link_order *, \ 317 bfd_byte *, b oolean, asymbol **))) \357 bfd_byte *, bfd_boolean, asymbol **))) \ 318 358 bfd_nullvoidptr) 319 359 #define _bfd_nolink_bfd_relax_section \ 320 ((b oolean (*) \321 PARAMS ((bfd *, asection *, struct bfd_link_info *, b oolean *))) \360 ((bfd_boolean (*) \ 361 PARAMS ((bfd *, asection *, struct bfd_link_info *, bfd_boolean *))) \ 322 362 bfd_false) 323 363 #define _bfd_nolink_bfd_gc_sections \ 324 ((b oolean (*) \364 ((bfd_boolean (*) \ 325 365 PARAMS ((bfd *, struct bfd_link_info *))) \ 366 bfd_false) 367 #define _bfd_nolink_bfd_merge_sections \ 368 ((bfd_boolean (*) \ 369 PARAMS ((bfd *, struct bfd_link_info *))) \ 370 bfd_false) 371 #define _bfd_nolink_bfd_discard_group \ 372 ((bfd_boolean (*) \ 373 PARAMS ((bfd *, struct sec *))) \ 326 374 bfd_false) 327 375 #define _bfd_nolink_bfd_link_hash_table_create \ 328 376 ((struct bfd_link_hash_table *(*) PARAMS ((bfd *))) bfd_nullvoidptr) 377 #define _bfd_nolink_bfd_link_hash_table_free \ 378 ((void (*) PARAMS ((struct bfd_link_hash_table *))) bfd_void) 329 379 #define _bfd_nolink_bfd_link_add_symbols \ 330 ((boolean (*) PARAMS ((bfd *, struct bfd_link_info *))) bfd_false) 380 ((bfd_boolean (*) PARAMS ((bfd *, struct bfd_link_info *))) bfd_false) 381 #define _bfd_nolink_bfd_link_just_syms \ 382 ((void (*) PARAMS ((asection *, struct bfd_link_info *))) bfd_void) 331 383 #define _bfd_nolink_bfd_final_link \ 332 ((b oolean (*) PARAMS ((bfd *, struct bfd_link_info *))) bfd_false)384 ((bfd_boolean (*) PARAMS ((bfd *, struct bfd_link_info *))) bfd_false) 333 385 #define _bfd_nolink_bfd_link_split_section \ 334 ((b oolean (*) PARAMS ((bfd *, struct sec *))) bfd_false)386 ((bfd_boolean (*) PARAMS ((bfd *, struct sec *))) bfd_false) 335 387 336 388 /* Routines to use for BFD_JUMP_TABLE_DYNAMIC for targets which do not … … 348 400 /* Generic routine to determine of the given symbol is a local 349 401 label. */ 350 extern boolean bfd_generic_is_local_label_name PARAMS ((bfd *, const char *)); 402 extern bfd_boolean bfd_generic_is_local_label_name 403 PARAMS ((bfd *, const char *)); 351 404 352 405 /* Generic minisymbol routines. */ 353 406 extern long _bfd_generic_read_minisymbols 354 PARAMS ((bfd *, b oolean, PTR *, unsigned int *));407 PARAMS ((bfd *, bfd_boolean, PTR *, unsigned int *)); 355 408 extern asymbol *_bfd_generic_minisymbol_to_symbol 356 PARAMS ((bfd *, b oolean, const PTR, asymbol *));409 PARAMS ((bfd *, bfd_boolean, const PTR, asymbol *)); 357 410 358 411 /* 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 *));412 extern bfd_boolean _bfd_stab_section_find_nearest_line 413 PARAMS ((bfd *, asymbol **, asection *, bfd_vma, bfd_boolean *, 414 const char **, const char **, unsigned int *, PTR *)); 362 415 363 416 /* Find the neaderst line using DWARF 1 debugging information. */ 364 extern b oolean _bfd_dwarf1_find_nearest_line417 extern bfd_boolean _bfd_dwarf1_find_nearest_line 365 418 PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **, 366 419 const char **, unsigned int *)); 367 420 368 421 /* Find the nearest line using DWARF 2 debugging information. */ 369 extern b oolean _bfd_dwarf2_find_nearest_line422 extern bfd_boolean _bfd_dwarf2_find_nearest_line 370 423 PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **, 371 424 const char **, unsigned int *, unsigned int, 372 425 PTR *)); 426 427 /* Create a new section entry. */ 428 extern struct bfd_hash_entry *bfd_section_hash_newfunc 429 PARAMS ((struct bfd_hash_entry *, struct bfd_hash_table *, const char *)); 373 430 374 431 /* A routine to create entries for a bfd_link_hash_table. */ … … 379 436 380 437 /* Initialize a bfd_link_hash_table. */ 381 extern b oolean _bfd_link_hash_table_init438 extern bfd_boolean _bfd_link_hash_table_init 382 439 PARAMS ((struct bfd_link_hash_table *, bfd *, 383 440 struct bfd_hash_entry *(*) (struct bfd_hash_entry *, … … 389 446 PARAMS ((bfd *)); 390 447 448 /* Generic link hash table destruction routine. */ 449 extern void _bfd_generic_link_hash_table_free 450 PARAMS ((struct bfd_link_hash_table *)); 451 391 452 /* Generic add symbol routine. */ 392 extern b oolean _bfd_generic_link_add_symbols453 extern bfd_boolean _bfd_generic_link_add_symbols 393 454 PARAMS ((bfd *, struct bfd_link_info *)); 394 455 … … 396 457 which the linker must collect constructors and destructors by name, 397 458 as the collect2 program does. */ 398 extern b oolean _bfd_generic_link_add_symbols_collect459 extern bfd_boolean _bfd_generic_link_add_symbols_collect 399 460 PARAMS ((bfd *, struct bfd_link_info *)); 400 461 401 462 /* Generic archive add symbol routine. */ 402 extern b oolean _bfd_generic_link_add_archive_symbols463 extern bfd_boolean _bfd_generic_link_add_archive_symbols 403 464 PARAMS ((bfd *, struct bfd_link_info *, 404 boolean (*checkfn) (bfd *, struct bfd_link_info *, boolean *))); 405 406 465 bfd_boolean (*) (bfd *, struct bfd_link_info *, bfd_boolean *))); 407 466 408 467 /* Forward declaration to avoid prototype errors. */ … … 410 469 411 470 /* Generic routine to add a single symbol. */ 412 extern b oolean _bfd_generic_link_add_one_symbol471 extern bfd_boolean _bfd_generic_link_add_one_symbol 413 472 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 **)); 473 asection *, bfd_vma, const char *, bfd_boolean copy, 474 bfd_boolean constructor, struct bfd_link_hash_entry **)); 475 476 /* Generic routine to mark section as supplying symbols only. */ 477 extern void _bfd_generic_link_just_syms 478 PARAMS ((asection *, struct bfd_link_info *)); 416 479 417 480 /* Generic link routine. */ 418 extern b oolean _bfd_generic_final_link481 extern bfd_boolean _bfd_generic_final_link 419 482 PARAMS ((bfd *, struct bfd_link_info *)); 420 483 421 extern b oolean _bfd_generic_link_split_section484 extern bfd_boolean _bfd_generic_link_split_section 422 485 PARAMS ((bfd *, struct sec *)); 423 486 424 487 /* Generic reloc_link_order processing routine. */ 425 extern b oolean _bfd_generic_reloc_link_order488 extern bfd_boolean _bfd_generic_reloc_link_order 426 489 PARAMS ((bfd *, struct bfd_link_info *, asection *, 427 490 struct bfd_link_order *)); 428 491 429 492 /* Default link order processing routine. */ 430 extern b oolean _bfd_default_link_order493 extern bfd_boolean _bfd_default_link_order 431 494 PARAMS ((bfd *, struct bfd_link_info *, asection *, 432 495 struct bfd_link_order *)); … … 439 502 extern bfd_reloc_status_type _bfd_final_link_relocate 440 503 PARAMS ((reloc_howto_type *, bfd *, asection *, bfd_byte *, 441 bfd_vma address, bfd_vma value, bfd_vma addend));504 bfd_vma, bfd_vma, bfd_vma)); 442 505 443 506 /* Relocate a particular location by a howto and a value. */ … … 447 510 /* Link stabs in sections in the first pass. */ 448 511 449 extern b oolean _bfd_link_section_stabs512 extern bfd_boolean _bfd_link_section_stabs 450 513 PARAMS ((bfd *, PTR *, asection *, asection *, PTR *)); 451 514 515 /* Eliminate stabs for discarded functions and symbols. */ 516 extern bfd_boolean _bfd_discard_section_stabs 517 PARAMS ((bfd *, asection *, PTR, 518 bfd_boolean (*) (bfd_vma, PTR), PTR)); 519 452 520 /* Write out the .stab section when linking stabs in sections. */ 453 521 454 extern b oolean _bfd_write_section_stabs522 extern bfd_boolean _bfd_write_section_stabs 455 523 PARAMS ((bfd *, PTR *, asection *, PTR *, bfd_byte *)); 456 524 457 525 /* Write out the .stabstr string table when linking stabs in sections. */ 458 526 459 extern boolean _bfd_write_stab_strings PARAMS ((bfd *, PTR *)); 527 extern bfd_boolean _bfd_write_stab_strings 528 PARAMS ((bfd *, PTR *)); 460 529 461 530 /* Find an offset within a .stab section when linking stabs in … … 465 534 PARAMS ((bfd *, PTR *, asection *, PTR *, bfd_vma)); 466 535 536 /* Attempt to merge a SEC_MERGE section. */ 537 538 extern bfd_boolean _bfd_merge_section 539 PARAMS ((bfd *, PTR *, asection *, PTR *)); 540 541 /* Attempt to merge SEC_MERGE sections. */ 542 543 extern bfd_boolean _bfd_merge_sections 544 PARAMS ((bfd *, PTR, void (*)(bfd *, asection *))); 545 546 /* Write out a merged section. */ 547 548 extern bfd_boolean _bfd_write_merged_section 549 PARAMS ((bfd *, asection *, PTR)); 550 551 /* Find an offset within a modified SEC_MERGE section. */ 552 553 extern bfd_vma _bfd_merged_section_offset 554 PARAMS ((bfd *, asection **, PTR, bfd_vma, bfd_vma)); 555 467 556 /* Create a string table. */ 468 extern struct bfd_strtab_hash *_bfd_stringtab_init PARAMS ((void)); 557 extern struct bfd_strtab_hash *_bfd_stringtab_init 558 PARAMS ((void)); 469 559 470 560 /* Create an XCOFF .debug section style string table. */ 471 extern struct bfd_strtab_hash *_bfd_xcoff_stringtab_init PARAMS ((void)); 561 extern struct bfd_strtab_hash *_bfd_xcoff_stringtab_init 562 PARAMS ((void)); 472 563 473 564 /* Free a string table. */ 474 extern void _bfd_stringtab_free PARAMS ((struct bfd_strtab_hash *)); 565 extern void _bfd_stringtab_free 566 PARAMS ((struct bfd_strtab_hash *)); 475 567 476 568 /* Get the size of a string table. */ 477 extern bfd_size_type _bfd_stringtab_size PARAMS ((struct bfd_strtab_hash *)); 569 extern bfd_size_type _bfd_stringtab_size 570 PARAMS ((struct bfd_strtab_hash *)); 478 571 479 572 /* Add a string to a string table. */ 480 573 extern bfd_size_type _bfd_stringtab_add 481 PARAMS ((struct bfd_strtab_hash *, const char *, b oolean hash,482 b oolean copy));574 PARAMS ((struct bfd_strtab_hash *, const char *, bfd_boolean hash, 575 bfd_boolean copy)); 483 576 484 577 /* Write out a string table. */ 485 extern boolean _bfd_stringtab_emit PARAMS ((bfd *, struct bfd_strtab_hash *)); 578 extern bfd_boolean _bfd_stringtab_emit 579 PARAMS ((bfd *, struct bfd_strtab_hash *)); 486 580 487 581 /* Check that endianness of input and output file match. */ 488 extern boolean _bfd_generic_verify_endian_match PARAMS ((bfd *, bfd *)); 582 extern bfd_boolean _bfd_generic_verify_endian_match 583 PARAMS ((bfd *, bfd *)); 489 584 490 585 … … 501 596 #define bfd_write_p(abfd) ((abfd)->direction == write_direction || (abfd)->direction == both_direction) 502 597 503 void bfd_assert PARAMS ((const char*,int)); 598 void bfd_assert 599 PARAMS ((const char*,int)); 504 600 505 601 #define BFD_ASSERT(x) \ … … 509 605 { bfd_assert(__FILE__,__LINE__); } 510 606 511 extern void _bfd_abort PARAMS ((const char *, int, const char *))512 607 extern void _bfd_abort 608 PARAMS ((const char *, int, const char *)) ATTRIBUTE_NORETURN; 513 609 514 610 /* if gcc >= 2.6, we can give a function name, too */ … … 520 616 #define abort() _bfd_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__) 521 617 522 FILE * bfd_cache_lookup_worker PARAMS ((bfd *)); 618 FILE * bfd_cache_lookup_worker 619 PARAMS ((bfd *)); 523 620 524 621 extern bfd *bfd_last_cache; … … 529 626 extern const bfd_target *bfd_default_vector[]; 530 627 628 /* List of associated target vectors. */ 629 extern const bfd_target * const *bfd_associated_vector; 630 531 631 /* Functions shared by the ECOFF and MIPS ELF backends, which have no 532 632 other common header files. */ … … 536 636 #endif 537 637 538 extern b oolean _bfd_ecoff_locate_line638 extern bfd_boolean _bfd_ecoff_locate_line 539 639 PARAMS ((bfd *, asection *, bfd_vma, struct ecoff_debug_info * const, 540 640 const struct ecoff_debug_swap * const, struct ecoff_find_line *, 541 641 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)); 642 extern bfd_boolean _bfd_ecoff_get_accumulated_pdr 643 PARAMS ((PTR, bfd_byte *)); 644 extern bfd_boolean _bfd_ecoff_get_accumulated_sym 645 PARAMS ((PTR, bfd_byte *)); 646 extern bfd_boolean _bfd_ecoff_get_accumulated_ss 647 PARAMS ((PTR, bfd_byte *)); 648 649 extern bfd_vma _bfd_get_gp_value 650 PARAMS ((bfd *)); 651 extern void _bfd_set_gp_value 652 PARAMS ((bfd *, bfd_vma)); 548 653 549 654 /* Function shared by the COFF and ELF SH backends, which have no 550 655 other common header files. */ 551 656 552 extern b oolean _bfd_sh_align_load_span657 extern bfd_boolean _bfd_sh_align_load_span 553 658 PARAMS ((bfd *, asection *, bfd_byte *, 554 b oolean (*) (bfd *, asection *, PTR, bfd_byte *, bfd_vma),555 PTR, bfd_vma **, bfd_vma *, bfd_vma, bfd_vma, b oolean *));556 557 /* And more follows*/558 559 void 560 bfd_write_bigendian_4byte_int PARAMS ((bfd * abfd, int i));659 bfd_boolean (*) (bfd *, asection *, PTR, bfd_byte *, bfd_vma), 660 PTR, bfd_vma **, bfd_vma *, bfd_vma, bfd_vma, bfd_boolean *)); 661 662 /* Extracted from init.c. */ 663 /* Extracted from libbfd.c. */ 664 bfd_boolean 665 bfd_write_bigendian_4byte_int PARAMS ((bfd *, unsigned int)); 561 666 562 667 unsigned int 563 668 bfd_log2 PARAMS ((bfd_vma x)); 564 669 670 /* Extracted from bfdio.c. */ 671 /* Extracted from bfdwin.c. */ 672 struct _bfd_window_internal { 673 struct _bfd_window_internal *next; 674 PTR data; 675 bfd_size_type size; 676 int refcount : 31; /* should be enough... */ 677 unsigned mapped : 1; /* 1 = mmap, 0 = malloc */ 678 }; 679 /* Extracted from cache.c. */ 565 680 #define BFD_CACHE_MAX_OPEN 10 566 681 extern bfd *bfd_last_cache; … … 570 685 (FILE*) (bfd_last_cache->iostream): \ 571 686 bfd_cache_lookup_worker(x)) 572 b oolean687 bfd_boolean 573 688 bfd_cache_init PARAMS ((bfd *abfd)); 574 689 575 b oolean690 bfd_boolean 576 691 bfd_cache_close PARAMS ((bfd *abfd)); 577 692 … … 582 697 bfd_cache_lookup_worker PARAMS ((bfd *abfd)); 583 698 699 /* Extracted from reloc.c. */ 584 700 #ifdef _BFD_MAKE_TABLE_bfd_reloc_code_real 585 701 … … 608 724 "BFD_RELOC_HI16_S_GOTOFF", 609 725 "BFD_RELOC_8_GOTOFF", 726 "BFD_RELOC_64_PLT_PCREL", 610 727 "BFD_RELOC_32_PLT_PCREL", 611 728 "BFD_RELOC_24_PLT_PCREL", 612 729 "BFD_RELOC_16_PLT_PCREL", 613 730 "BFD_RELOC_8_PLT_PCREL", 731 "BFD_RELOC_64_PLTOFF", 614 732 "BFD_RELOC_32_PLTOFF", 615 733 "BFD_RELOC_16_PLTOFF", … … 670 788 "BFD_RELOC_SPARC_6", 671 789 "BFD_RELOC_SPARC_5", 790 "BFD_RELOC_SPARC_PLT32", 672 791 "BFD_RELOC_SPARC_PLT64", 673 792 "BFD_RELOC_SPARC_HIX22", … … 678 797 "BFD_RELOC_SPARC_REGISTER", 679 798 "BFD_RELOC_SPARC_REV32", 799 "BFD_RELOC_SPARC_TLS_GD_HI22", 800 "BFD_RELOC_SPARC_TLS_GD_LO10", 801 "BFD_RELOC_SPARC_TLS_GD_ADD", 802 "BFD_RELOC_SPARC_TLS_GD_CALL", 803 "BFD_RELOC_SPARC_TLS_LDM_HI22", 804 "BFD_RELOC_SPARC_TLS_LDM_LO10", 805 "BFD_RELOC_SPARC_TLS_LDM_ADD", 806 "BFD_RELOC_SPARC_TLS_LDM_CALL", 807 "BFD_RELOC_SPARC_TLS_LDO_HIX22", 808 "BFD_RELOC_SPARC_TLS_LDO_LOX10", 809 "BFD_RELOC_SPARC_TLS_LDO_ADD", 810 "BFD_RELOC_SPARC_TLS_IE_HI22", 811 "BFD_RELOC_SPARC_TLS_IE_LO10", 812 "BFD_RELOC_SPARC_TLS_IE_LD", 813 "BFD_RELOC_SPARC_TLS_IE_LDX", 814 "BFD_RELOC_SPARC_TLS_IE_ADD", 815 "BFD_RELOC_SPARC_TLS_LE_HIX22", 816 "BFD_RELOC_SPARC_TLS_LE_LOX10", 817 "BFD_RELOC_SPARC_TLS_DTPMOD32", 818 "BFD_RELOC_SPARC_TLS_DTPMOD64", 819 "BFD_RELOC_SPARC_TLS_DTPOFF32", 820 "BFD_RELOC_SPARC_TLS_DTPOFF64", 821 "BFD_RELOC_SPARC_TLS_TPOFF32", 822 "BFD_RELOC_SPARC_TLS_TPOFF64", 680 823 "BFD_RELOC_ALPHA_GPDISP_HI16", 681 824 "BFD_RELOC_ALPHA_GPDISP_LO16", … … 684 827 "BFD_RELOC_ALPHA_ELF_LITERAL", 685 828 "BFD_RELOC_ALPHA_LITUSE", 686 "BFD_RELOC_ALPHA_USER_LITERAL",687 "BFD_RELOC_ALPHA_USER_LITUSE_BASE",688 "BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF",689 "BFD_RELOC_ALPHA_USER_LITUSE_JSR",690 "BFD_RELOC_ALPHA_USER_GPDISP",691 "BFD_RELOC_ALPHA_USER_GPRELHIGH",692 "BFD_RELOC_ALPHA_USER_GPRELLOW",693 829 "BFD_RELOC_ALPHA_HINT", 694 830 "BFD_RELOC_ALPHA_LINKAGE", 695 831 "BFD_RELOC_ALPHA_CODEADDR", 832 "BFD_RELOC_ALPHA_GPREL_HI16", 833 "BFD_RELOC_ALPHA_GPREL_LO16", 834 "BFD_RELOC_ALPHA_BRSGP", 835 "BFD_RELOC_ALPHA_TLSGD", 836 "BFD_RELOC_ALPHA_TLSLDM", 837 "BFD_RELOC_ALPHA_DTPMOD64", 838 "BFD_RELOC_ALPHA_GOTDTPREL16", 839 "BFD_RELOC_ALPHA_DTPREL64", 840 "BFD_RELOC_ALPHA_DTPREL_HI16", 841 "BFD_RELOC_ALPHA_DTPREL_LO16", 842 "BFD_RELOC_ALPHA_DTPREL16", 843 "BFD_RELOC_ALPHA_GOTTPREL16", 844 "BFD_RELOC_ALPHA_TPREL64", 845 "BFD_RELOC_ALPHA_TPREL_HI16", 846 "BFD_RELOC_ALPHA_TPREL_LO16", 847 "BFD_RELOC_ALPHA_TPREL16", 696 848 "BFD_RELOC_MIPS_JMP", 697 849 "BFD_RELOC_MIPS16_JMP", … … 724 876 "BFD_RELOC_MIPS_RELGOT", 725 877 "BFD_RELOC_MIPS_JALR", 878 "BFD_RELOC_FRV_LABEL16", 879 "BFD_RELOC_FRV_LABEL24", 880 "BFD_RELOC_FRV_LO16", 881 "BFD_RELOC_FRV_HI16", 882 "BFD_RELOC_FRV_GPREL12", 883 "BFD_RELOC_FRV_GPRELU12", 884 "BFD_RELOC_FRV_GPREL32", 885 "BFD_RELOC_FRV_GPRELHI", 886 "BFD_RELOC_FRV_GPRELLO", 726 887 727 888 "BFD_RELOC_386_GOT32", … … 733 894 "BFD_RELOC_386_GOTOFF", 734 895 "BFD_RELOC_386_GOTPC", 896 "BFD_RELOC_386_TLS_TPOFF", 897 "BFD_RELOC_386_TLS_IE", 898 "BFD_RELOC_386_TLS_GOTIE", 899 "BFD_RELOC_386_TLS_LE", 900 "BFD_RELOC_386_TLS_GD", 901 "BFD_RELOC_386_TLS_LDM", 902 "BFD_RELOC_386_TLS_LDO_32", 903 "BFD_RELOC_386_TLS_IE_32", 904 "BFD_RELOC_386_TLS_LE_32", 905 "BFD_RELOC_386_TLS_DTPMOD32", 906 "BFD_RELOC_386_TLS_DTPOFF32", 907 "BFD_RELOC_386_TLS_TPOFF32", 735 908 "BFD_RELOC_X86_64_GOT32", 736 909 "BFD_RELOC_X86_64_PLT32", … … 741 914 "BFD_RELOC_X86_64_GOTPCREL", 742 915 "BFD_RELOC_X86_64_32S", 916 "BFD_RELOC_X86_64_DTPMOD64", 917 "BFD_RELOC_X86_64_DTPOFF64", 918 "BFD_RELOC_X86_64_TPOFF64", 919 "BFD_RELOC_X86_64_TLSGD", 920 "BFD_RELOC_X86_64_TLSLD", 921 "BFD_RELOC_X86_64_DTPOFF32", 922 "BFD_RELOC_X86_64_GOTTPOFF", 923 "BFD_RELOC_X86_64_TPOFF32", 743 924 "BFD_RELOC_NS32K_IMM_8", 744 925 "BFD_RELOC_NS32K_IMM_16", … … 753 934 "BFD_RELOC_NS32K_DISP_16_PCREL", 754 935 "BFD_RELOC_NS32K_DISP_32_PCREL", 936 "BFD_RELOC_PDP11_DISP_8_PCREL", 937 "BFD_RELOC_PDP11_DISP_6_PCREL", 755 938 "BFD_RELOC_PJ_CODE_HI16", 756 939 "BFD_RELOC_PJ_CODE_LO16", … … 789 972 "BFD_RELOC_PPC_EMB_BIT_FLD", 790 973 "BFD_RELOC_PPC_EMB_RELSDA", 974 "BFD_RELOC_PPC64_HIGHER", 975 "BFD_RELOC_PPC64_HIGHER_S", 976 "BFD_RELOC_PPC64_HIGHEST", 977 "BFD_RELOC_PPC64_HIGHEST_S", 978 "BFD_RELOC_PPC64_TOC16_LO", 979 "BFD_RELOC_PPC64_TOC16_HI", 980 "BFD_RELOC_PPC64_TOC16_HA", 981 "BFD_RELOC_PPC64_TOC", 982 "BFD_RELOC_PPC64_PLTGOT16", 983 "BFD_RELOC_PPC64_PLTGOT16_LO", 984 "BFD_RELOC_PPC64_PLTGOT16_HI", 985 "BFD_RELOC_PPC64_PLTGOT16_HA", 986 "BFD_RELOC_PPC64_ADDR16_DS", 987 "BFD_RELOC_PPC64_ADDR16_LO_DS", 988 "BFD_RELOC_PPC64_GOT16_DS", 989 "BFD_RELOC_PPC64_GOT16_LO_DS", 990 "BFD_RELOC_PPC64_PLT16_LO_DS", 991 "BFD_RELOC_PPC64_SECTOFF_DS", 992 "BFD_RELOC_PPC64_SECTOFF_LO_DS", 993 "BFD_RELOC_PPC64_TOC16_DS", 994 "BFD_RELOC_PPC64_TOC16_LO_DS", 995 "BFD_RELOC_PPC64_PLTGOT16_DS", 996 "BFD_RELOC_PPC64_PLTGOT16_LO_DS", 997 "BFD_RELOC_PPC_TLS", 998 "BFD_RELOC_PPC_DTPMOD", 999 "BFD_RELOC_PPC_TPREL16", 1000 "BFD_RELOC_PPC_TPREL16_LO", 1001 "BFD_RELOC_PPC_TPREL16_HI", 1002 "BFD_RELOC_PPC_TPREL16_HA", 1003 "BFD_RELOC_PPC_TPREL", 1004 "BFD_RELOC_PPC_DTPREL16", 1005 "BFD_RELOC_PPC_DTPREL16_LO", 1006 "BFD_RELOC_PPC_DTPREL16_HI", 1007 "BFD_RELOC_PPC_DTPREL16_HA", 1008 "BFD_RELOC_PPC_DTPREL", 1009 "BFD_RELOC_PPC_GOT_TLSGD16", 1010 "BFD_RELOC_PPC_GOT_TLSGD16_LO", 1011 "BFD_RELOC_PPC_GOT_TLSGD16_HI", 1012 "BFD_RELOC_PPC_GOT_TLSGD16_HA", 1013 "BFD_RELOC_PPC_GOT_TLSLD16", 1014 "BFD_RELOC_PPC_GOT_TLSLD16_LO", 1015 "BFD_RELOC_PPC_GOT_TLSLD16_HI", 1016 "BFD_RELOC_PPC_GOT_TLSLD16_HA", 1017 "BFD_RELOC_PPC_GOT_TPREL16", 1018 "BFD_RELOC_PPC_GOT_TPREL16_LO", 1019 "BFD_RELOC_PPC_GOT_TPREL16_HI", 1020 "BFD_RELOC_PPC_GOT_TPREL16_HA", 1021 "BFD_RELOC_PPC_GOT_DTPREL16", 1022 "BFD_RELOC_PPC_GOT_DTPREL16_LO", 1023 "BFD_RELOC_PPC_GOT_DTPREL16_HI", 1024 "BFD_RELOC_PPC_GOT_DTPREL16_HA", 1025 "BFD_RELOC_PPC64_TPREL16_DS", 1026 "BFD_RELOC_PPC64_TPREL16_LO_DS", 1027 "BFD_RELOC_PPC64_TPREL16_HIGHER", 1028 "BFD_RELOC_PPC64_TPREL16_HIGHERA", 1029 "BFD_RELOC_PPC64_TPREL16_HIGHEST", 1030 "BFD_RELOC_PPC64_TPREL16_HIGHESTA", 1031 "BFD_RELOC_PPC64_DTPREL16_DS", 1032 "BFD_RELOC_PPC64_DTPREL16_LO_DS", 1033 "BFD_RELOC_PPC64_DTPREL16_HIGHER", 1034 "BFD_RELOC_PPC64_DTPREL16_HIGHERA", 1035 "BFD_RELOC_PPC64_DTPREL16_HIGHEST", 1036 "BFD_RELOC_PPC64_DTPREL16_HIGHESTA", 791 1037 "BFD_RELOC_I370_D12", 792 1038 "BFD_RELOC_CTOR", … … 801 1047 "BFD_RELOC_ARM_MULTI", 802 1048 "BFD_RELOC_ARM_CP_OFF_IMM", 1049 "BFD_RELOC_ARM_CP_OFF_IMM_S2", 803 1050 "BFD_RELOC_ARM_ADR_IMM", 804 1051 "BFD_RELOC_ARM_LDR_IMM", … … 845 1092 "BFD_RELOC_SH_RELATIVE", 846 1093 "BFD_RELOC_SH_GOTPC", 1094 "BFD_RELOC_SH_GOT_LOW16", 1095 "BFD_RELOC_SH_GOT_MEDLOW16", 1096 "BFD_RELOC_SH_GOT_MEDHI16", 1097 "BFD_RELOC_SH_GOT_HI16", 1098 "BFD_RELOC_SH_GOTPLT_LOW16", 1099 "BFD_RELOC_SH_GOTPLT_MEDLOW16", 1100 "BFD_RELOC_SH_GOTPLT_MEDHI16", 1101 "BFD_RELOC_SH_GOTPLT_HI16", 1102 "BFD_RELOC_SH_PLT_LOW16", 1103 "BFD_RELOC_SH_PLT_MEDLOW16", 1104 "BFD_RELOC_SH_PLT_MEDHI16", 1105 "BFD_RELOC_SH_PLT_HI16", 1106 "BFD_RELOC_SH_GOTOFF_LOW16", 1107 "BFD_RELOC_SH_GOTOFF_MEDLOW16", 1108 "BFD_RELOC_SH_GOTOFF_MEDHI16", 1109 "BFD_RELOC_SH_GOTOFF_HI16", 1110 "BFD_RELOC_SH_GOTPC_LOW16", 1111 "BFD_RELOC_SH_GOTPC_MEDLOW16", 1112 "BFD_RELOC_SH_GOTPC_MEDHI16", 1113 "BFD_RELOC_SH_GOTPC_HI16", 1114 "BFD_RELOC_SH_COPY64", 1115 "BFD_RELOC_SH_GLOB_DAT64", 1116 "BFD_RELOC_SH_JMP_SLOT64", 1117 "BFD_RELOC_SH_RELATIVE64", 1118 "BFD_RELOC_SH_GOT10BY4", 1119 "BFD_RELOC_SH_GOT10BY8", 1120 "BFD_RELOC_SH_GOTPLT10BY4", 1121 "BFD_RELOC_SH_GOTPLT10BY8", 1122 "BFD_RELOC_SH_GOTPLT32", 1123 "BFD_RELOC_SH_SHMEDIA_CODE", 1124 "BFD_RELOC_SH_IMMU5", 1125 "BFD_RELOC_SH_IMMS6", 1126 "BFD_RELOC_SH_IMMS6BY32", 1127 "BFD_RELOC_SH_IMMU6", 1128 "BFD_RELOC_SH_IMMS10", 1129 "BFD_RELOC_SH_IMMS10BY2", 1130 "BFD_RELOC_SH_IMMS10BY4", 1131 "BFD_RELOC_SH_IMMS10BY8", 1132 "BFD_RELOC_SH_IMMS16", 1133 "BFD_RELOC_SH_IMMU16", 1134 "BFD_RELOC_SH_IMM_LOW16", 1135 "BFD_RELOC_SH_IMM_LOW16_PCREL", 1136 "BFD_RELOC_SH_IMM_MEDLOW16", 1137 "BFD_RELOC_SH_IMM_MEDLOW16_PCREL", 1138 "BFD_RELOC_SH_IMM_MEDHI16", 1139 "BFD_RELOC_SH_IMM_MEDHI16_PCREL", 1140 "BFD_RELOC_SH_IMM_HI16", 1141 "BFD_RELOC_SH_IMM_HI16_PCREL", 1142 "BFD_RELOC_SH_PT_16", 1143 "BFD_RELOC_SH_TLS_GD_32", 1144 "BFD_RELOC_SH_TLS_LD_32", 1145 "BFD_RELOC_SH_TLS_LDO_32", 1146 "BFD_RELOC_SH_TLS_IE_32", 1147 "BFD_RELOC_SH_TLS_LE_32", 1148 "BFD_RELOC_SH_TLS_DTPMOD32", 1149 "BFD_RELOC_SH_TLS_DTPOFF32", 1150 "BFD_RELOC_SH_TLS_TPOFF32", 847 1151 "BFD_RELOC_THUMB_PCREL_BRANCH9", 848 1152 "BFD_RELOC_THUMB_PCREL_BRANCH12", … … 865 1169 "BFD_RELOC_D30V_32", 866 1170 "BFD_RELOC_D30V_32_PCREL", 1171 "BFD_RELOC_DLX_HI16_S", 1172 "BFD_RELOC_DLX_LO16", 1173 "BFD_RELOC_DLX_JMP26", 867 1174 "BFD_RELOC_M32R_24", 868 1175 "BFD_RELOC_M32R_10_PCREL", … … 889 1196 "BFD_RELOC_V850_CALLT_6_7_OFFSET", 890 1197 "BFD_RELOC_V850_CALLT_16_16_OFFSET", 891 1198 "BFD_RELOC_V850_LONGCALL", 1199 "BFD_RELOC_V850_LONGJUMP", 1200 "BFD_RELOC_V850_ALIGN", 892 1201 "BFD_RELOC_MN10300_32_PCREL", 893 1202 "BFD_RELOC_MN10300_16_PCREL", … … 912 1221 "BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2", 913 1222 "BFD_RELOC_MCORE_RVA", 1223 "BFD_RELOC_MMIX_GETA", 1224 "BFD_RELOC_MMIX_GETA_1", 1225 "BFD_RELOC_MMIX_GETA_2", 1226 "BFD_RELOC_MMIX_GETA_3", 1227 "BFD_RELOC_MMIX_CBRANCH", 1228 "BFD_RELOC_MMIX_CBRANCH_J", 1229 "BFD_RELOC_MMIX_CBRANCH_1", 1230 "BFD_RELOC_MMIX_CBRANCH_2", 1231 "BFD_RELOC_MMIX_CBRANCH_3", 1232 "BFD_RELOC_MMIX_PUSHJ", 1233 "BFD_RELOC_MMIX_PUSHJ_1", 1234 "BFD_RELOC_MMIX_PUSHJ_2", 1235 "BFD_RELOC_MMIX_PUSHJ_3", 1236 "BFD_RELOC_MMIX_JMP", 1237 "BFD_RELOC_MMIX_JMP_1", 1238 "BFD_RELOC_MMIX_JMP_2", 1239 "BFD_RELOC_MMIX_JMP_3", 1240 "BFD_RELOC_MMIX_ADDR19", 1241 "BFD_RELOC_MMIX_ADDR27", 1242 "BFD_RELOC_MMIX_REG_OR_BYTE", 1243 "BFD_RELOC_MMIX_REG", 1244 "BFD_RELOC_MMIX_BASE_PLUS_OFFSET", 1245 "BFD_RELOC_MMIX_LOCAL", 914 1246 "BFD_RELOC_AVR_7_PCREL", 915 1247 "BFD_RELOC_AVR_13_PCREL", … … 928 1260 "BFD_RELOC_AVR_HH8_LDI_PM_NEG", 929 1261 "BFD_RELOC_AVR_CALL", 1262 "BFD_RELOC_390_12", 1263 "BFD_RELOC_390_GOT12", 1264 "BFD_RELOC_390_PLT32", 1265 "BFD_RELOC_390_COPY", 1266 "BFD_RELOC_390_GLOB_DAT", 1267 "BFD_RELOC_390_JMP_SLOT", 1268 "BFD_RELOC_390_RELATIVE", 1269 "BFD_RELOC_390_GOTPC", 1270 "BFD_RELOC_390_GOT16", 1271 "BFD_RELOC_390_PC16DBL", 1272 "BFD_RELOC_390_PLT16DBL", 1273 "BFD_RELOC_390_PC32DBL", 1274 "BFD_RELOC_390_PLT32DBL", 1275 "BFD_RELOC_390_GOTPCDBL", 1276 "BFD_RELOC_390_GOT64", 1277 "BFD_RELOC_390_PLT64", 1278 "BFD_RELOC_390_GOTENT", 1279 "BFD_RELOC_390_GOTOFF64", 1280 "BFD_RELOC_390_GOTPLT12", 1281 "BFD_RELOC_390_GOTPLT16", 1282 "BFD_RELOC_390_GOTPLT32", 1283 "BFD_RELOC_390_GOTPLT64", 1284 "BFD_RELOC_390_GOTPLTENT", 1285 "BFD_RELOC_390_PLTOFF16", 1286 "BFD_RELOC_390_PLTOFF32", 1287 "BFD_RELOC_390_PLTOFF64", 1288 "BFD_RELOC_390_TLS_LOAD", 1289 "BFD_RELOC_390_TLS_GDCALL", 1290 "BFD_RELOC_390_TLS_LDCALL", 1291 "BFD_RELOC_390_TLS_GD32", 1292 "BFD_RELOC_390_TLS_GD64", 1293 "BFD_RELOC_390_TLS_GOTIE12", 1294 "BFD_RELOC_390_TLS_GOTIE32", 1295 "BFD_RELOC_390_TLS_GOTIE64", 1296 "BFD_RELOC_390_TLS_LDM32", 1297 "BFD_RELOC_390_TLS_LDM64", 1298 "BFD_RELOC_390_TLS_IE32", 1299 "BFD_RELOC_390_TLS_IE64", 1300 "BFD_RELOC_390_TLS_IEENT", 1301 "BFD_RELOC_390_TLS_LE32", 1302 "BFD_RELOC_390_TLS_LE64", 1303 "BFD_RELOC_390_TLS_LDO32", 1304 "BFD_RELOC_390_TLS_LDO64", 1305 "BFD_RELOC_390_TLS_DTPMOD", 1306 "BFD_RELOC_390_TLS_DTPOFF", 1307 "BFD_RELOC_390_TLS_TPOFF", 1308 "BFD_RELOC_IP2K_FR9", 1309 "BFD_RELOC_IP2K_BANK", 1310 "BFD_RELOC_IP2K_ADDR16CJP", 1311 "BFD_RELOC_IP2K_PAGE3", 1312 "BFD_RELOC_IP2K_LO8DATA", 1313 "BFD_RELOC_IP2K_HI8DATA", 1314 "BFD_RELOC_IP2K_EX8DATA", 1315 "BFD_RELOC_IP2K_LO8INSN", 1316 "BFD_RELOC_IP2K_HI8INSN", 1317 "BFD_RELOC_IP2K_PC_SKIP", 1318 "BFD_RELOC_IP2K_TEXT", 1319 "BFD_RELOC_IP2K_FR_OFFSET", 1320 "BFD_RELOC_VPE4KMATH_DATA", 1321 "BFD_RELOC_VPE4KMATH_INSN", 930 1322 "BFD_RELOC_VTABLE_INHERIT", 931 1323 "BFD_RELOC_VTABLE_ENTRY", … … 967 1359 "BFD_RELOC_IA64_LTOFF_FPTR22", 968 1360 "BFD_RELOC_IA64_LTOFF_FPTR64I", 1361 "BFD_RELOC_IA64_LTOFF_FPTR32MSB", 1362 "BFD_RELOC_IA64_LTOFF_FPTR32LSB", 969 1363 "BFD_RELOC_IA64_LTOFF_FPTR64MSB", 970 1364 "BFD_RELOC_IA64_LTOFF_FPTR64LSB", … … 988 1382 "BFD_RELOC_IA64_IPLTLSB", 989 1383 "BFD_RELOC_IA64_COPY", 1384 "BFD_RELOC_IA64_LTOFF22X", 1385 "BFD_RELOC_IA64_LDXMOV", 1386 "BFD_RELOC_IA64_TPREL14", 990 1387 "BFD_RELOC_IA64_TPREL22", 1388 "BFD_RELOC_IA64_TPREL64I", 991 1389 "BFD_RELOC_IA64_TPREL64MSB", 992 1390 "BFD_RELOC_IA64_TPREL64LSB", 993 "BFD_RELOC_IA64_LTOFF_TP22", 994 "BFD_RELOC_IA64_LTOFF22X", 995 "BFD_RELOC_IA64_LDXMOV", 1391 "BFD_RELOC_IA64_LTOFF_TPREL22", 1392 "BFD_RELOC_IA64_DTPMOD64MSB", 1393 "BFD_RELOC_IA64_DTPMOD64LSB", 1394 "BFD_RELOC_IA64_LTOFF_DTPMOD22", 1395 "BFD_RELOC_IA64_DTPREL14", 1396 "BFD_RELOC_IA64_DTPREL22", 1397 "BFD_RELOC_IA64_DTPREL64I", 1398 "BFD_RELOC_IA64_DTPREL32MSB", 1399 "BFD_RELOC_IA64_DTPREL32LSB", 1400 "BFD_RELOC_IA64_DTPREL64MSB", 1401 "BFD_RELOC_IA64_DTPREL64LSB", 1402 "BFD_RELOC_IA64_LTOFF_DTPREL22", 996 1403 "BFD_RELOC_M68HC11_HI8", 997 1404 "BFD_RELOC_M68HC11_LO8", 998 1405 "BFD_RELOC_M68HC11_3B", 1406 "BFD_RELOC_M68HC11_RL_JUMP", 1407 "BFD_RELOC_M68HC11_RL_GROUP", 1408 "BFD_RELOC_M68HC11_LO16", 1409 "BFD_RELOC_M68HC11_PAGE", 1410 "BFD_RELOC_M68HC11_24", 999 1411 "BFD_RELOC_CRIS_BDISP8", 1000 1412 "BFD_RELOC_CRIS_UNSIGNED_5", … … 1002 1414 "BFD_RELOC_CRIS_UNSIGNED_6", 1003 1415 "BFD_RELOC_CRIS_UNSIGNED_4", 1416 "BFD_RELOC_CRIS_COPY", 1417 "BFD_RELOC_CRIS_GLOB_DAT", 1418 "BFD_RELOC_CRIS_JUMP_SLOT", 1419 "BFD_RELOC_CRIS_RELATIVE", 1420 "BFD_RELOC_CRIS_32_GOT", 1421 "BFD_RELOC_CRIS_16_GOT", 1422 "BFD_RELOC_CRIS_32_GOTPLT", 1423 "BFD_RELOC_CRIS_16_GOTPLT", 1424 "BFD_RELOC_CRIS_32_GOTREL", 1425 "BFD_RELOC_CRIS_32_PLT_GOTREL", 1426 "BFD_RELOC_CRIS_32_PLT_PCREL", 1004 1427 "BFD_RELOC_860_COPY", 1005 1428 "BFD_RELOC_860_GLOB_DAT", … … 1034 1457 "BFD_RELOC_860_HIGOT", 1035 1458 "BFD_RELOC_860_HIGOTOFF", 1459 "BFD_RELOC_OPENRISC_ABS_26", 1460 "BFD_RELOC_OPENRISC_REL_26", 1461 "BFD_RELOC_H8_DIR16A8", 1462 "BFD_RELOC_H8_DIR16R8", 1463 "BFD_RELOC_H8_DIR24A8", 1464 "BFD_RELOC_H8_DIR24R8", 1465 "BFD_RELOC_H8_DIR32A16", 1466 "BFD_RELOC_XSTORMY16_REL_12", 1467 "BFD_RELOC_XSTORMY16_12", 1468 "BFD_RELOC_XSTORMY16_24", 1469 "BFD_RELOC_XSTORMY16_FPTR16", 1470 "BFD_RELOC_VAX_GLOB_DAT", 1471 "BFD_RELOC_VAX_JMP_SLOT", 1472 "BFD_RELOC_VAX_RELATIVE", 1473 "BFD_RELOC_MSP430_10_PCREL", 1474 "BFD_RELOC_MSP430_16_PCREL", 1475 "BFD_RELOC_MSP430_16", 1476 "BFD_RELOC_MSP430_16_PCREL_BYTE", 1477 "BFD_RELOC_MSP430_16_BYTE", 1478 "BFD_RELOC_IQ2000_OFFSET_16", 1479 "BFD_RELOC_IQ2000_OFFSET_21", 1480 "BFD_RELOC_IQ2000_UHI16", 1481 "BFD_RELOC_XTENSA_RTLD", 1482 "BFD_RELOC_XTENSA_GLOB_DAT", 1483 "BFD_RELOC_XTENSA_JMP_SLOT", 1484 "BFD_RELOC_XTENSA_RELATIVE", 1485 "BFD_RELOC_XTENSA_PLT", 1486 "BFD_RELOC_XTENSA_OP0", 1487 "BFD_RELOC_XTENSA_OP1", 1488 "BFD_RELOC_XTENSA_OP2", 1489 "BFD_RELOC_XTENSA_ASM_EXPAND", 1490 "BFD_RELOC_XTENSA_ASM_SIMPLIFY", 1036 1491 "@@overflow: BFD_RELOC_UNUSED@@", 1037 1492 }; … … 1041 1496 bfd_default_reloc_type_lookup PARAMS ((bfd *abfd, bfd_reloc_code_real_type code)); 1042 1497 1043 b oolean1498 bfd_boolean 1044 1499 bfd_generic_relax_section PARAMS ((bfd *abfd, 1045 1500 asection *section, 1046 1501 struct bfd_link_info *, 1047 b oolean *));1048 1049 b oolean1502 bfd_boolean *)); 1503 1504 bfd_boolean 1050 1505 bfd_generic_gc_sections PARAMS ((bfd *, struct bfd_link_info *)); 1506 1507 bfd_boolean 1508 bfd_generic_merge_sections PARAMS ((bfd *, struct bfd_link_info *)); 1051 1509 1052 1510 bfd_byte * … … 1055 1513 struct bfd_link_order *link_order, 1056 1514 bfd_byte *data, 1057 b oolean relocateable,1515 bfd_boolean relocateable, 1058 1516 asymbol **symbols)); 1059 1517 1518 /* Extracted from archures.c. */ 1060 1519 extern const bfd_arch_info_type bfd_default_arch_struct; 1061 b oolean1520 bfd_boolean 1062 1521 bfd_default_set_arch_mach PARAMS ((bfd *abfd, 1063 1522 enum bfd_architecture arch, … … 1068 1527 const bfd_arch_info_type *b)); 1069 1528 1070 b oolean1529 bfd_boolean 1071 1530 bfd_default_scan PARAMS ((const struct bfd_arch_info *info, const char *string)); 1072 1531 1532 /* Extracted from elf.c. */ 1073 1533 struct elf_internal_shdr * 1074 1534 bfd_elf_find_section PARAMS ((bfd *abfd, char *name)); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.