Lines Matching refs:bfd

6    generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c",
8 "syms.c", "bfd.c", "archive.c", "corefile.c", "targets.c", "format.c",
10 Run "make headers" in your build bfd/ to regenerate. */
12 /* Main header file for the bfd library -- portable access to object files.
77 been selected with --enable-targets, or if --enable-64-bit-bfd. */
80 /* The word size of the default bfd target. */
90 typedef struct bfd bfd;
92 /* Boolean type used in bfd.
144 extern void bfd_sprintf_vma (bfd *, char *, bfd_vma);
145 extern void bfd_fprintf_vma (bfd *, void *, bfd_vma);
190 bfd *abfd;
191 } u; /* bfd* or file position. */
374 extern bfd_size_type bfd_bread (void *, bfd_size_type, bfd *);
375 extern bfd_size_type bfd_bwrite (const void *, bfd_size_type, bfd *);
376 extern int bfd_seek (bfd *, file_ptr, int);
377 extern file_ptr bfd_tell (bfd *);
378 extern int bfd_flush (bfd *);
379 extern int bfd_stat (bfd *, struct stat *);
400 (bfd *abfd);
406 (bfd *, unsigned long, bool, flagword, bool, bfd_vma,
463 (bfd *, file_ptr, bfd_size_type, bfd_window *, bool);
482 extern bfd *bfd_elf_bfd_from_remote_memory
483 (bfd *templ, bfd_vma ehdr_vma, bfd_size_type size, bfd_vma *loadbasep,
511 bfd *bfd_fopen (const char *filename, const char *target,
514 bfd *bfd_openr (const char *filename, const char *target);
516 bfd *bfd_fdopenr (const char *filename, const char *target, int fd);
518 bfd *bfd_fdopenw (const char *filename, const char *target, int fd);
520 bfd *bfd_openstreamr (const char * filename, const char * target,
523 bfd *bfd_openr_iovec (const char *filename, const char *target,
524 void *(*open_func) (struct bfd *nbfd,
527 file_ptr (*pread_func) (struct bfd *nbfd,
532 int (*close_func) (struct bfd *nbfd,
534 int (*stat_func) (struct bfd *abfd,
538 bfd *bfd_openw (const char *filename, const char *target);
540 bool bfd_close (bfd *abfd);
542 bool bfd_close_all_done (bfd *);
544 bfd *bfd_create (const char *filename, bfd *templ);
546 bool bfd_make_writable (bfd *abfd);
548 bool bfd_make_readable (bfd *abfd);
550 void *bfd_alloc (bfd *abfd, bfd_size_type wanted);
552 void *bfd_zalloc (bfd *abfd, bfd_size_type wanted);
557 char *bfd_get_debug_link_info (bfd *abfd, unsigned long *crc32_out);
559 char *bfd_get_alt_debug_link_info (bfd * abfd,
563 char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir);
565 char *bfd_follow_gnu_debugaltlink (bfd *abfd, const char *dir);
568 (bfd *abfd, const char *filename);
571 (bfd *abfd, struct bfd_section *sect, const char *filename);
573 char *bfd_follow_build_id_debuglink (bfd *abfd, const char *dir);
575 const char *bfd_set_filename (bfd *abfd, const char *filename);
705 long bfd_get_mtime (bfd *abfd);
707 ufile_ptr bfd_get_size (bfd *abfd);
709 ufile_ptr bfd_get_file_size (bfd *abfd);
711 void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len,
737 /* Which section in the bfd; 0..n-1 as sections are created in a bfd. */
993 user_set_vma flag is maintained by bfd; if it's not set, the
1095 bfd *owner;
1310 void bfd_section_list_clear (bfd *);
1312 asection *bfd_get_section_by_name (bfd *abfd, const char *name);
1314 asection *bfd_get_next_section_by_name (bfd *ibfd, asection *sec);
1316 asection *bfd_get_linker_section (bfd *abfd, const char *name);
1319 (bfd *abfd,
1321 bool (*func) (bfd *abfd, asection *sect, void *obj),
1325 (bfd *abfd, const char *templat, int *count);
1327 asection *bfd_make_section_old_way (bfd *abfd, const char *name);
1330 (bfd *abfd, const char *name, flagword flags);
1332 asection *bfd_make_section_anyway (bfd *abfd, const char *name);
1335 (bfd *, const char *name, flagword flags);
1337 asection *bfd_make_section (bfd *, const char *name);
1345 (bfd *abfd,
1346 void (*func) (bfd *abfd, asection *sect, void *obj),
1350 (bfd *abfd,
1351 bool (*operation) (bfd *abfd, asection *sect, void *obj),
1357 (bfd *abfd, asection *section, const void *data,
1361 (bfd *abfd, asection *section, void *location, file_ptr offset,
1365 (bfd *abfd, asection *section, bfd_byte **buf);
1368 (bfd *ibfd, asection *isec, bfd *obfd, asection *osec);
1373 bool bfd_generic_is_group_section (bfd *, const asection *sec);
1375 const char *bfd_generic_group_name (bfd *, const asection *sec);
1377 bool bfd_generic_discard_group (bfd *abfd, asection *group);
1919 const char *bfd_printable_name (bfd *abfd);
1926 (const bfd *abfd, const bfd *bbfd, bool accept_unknowns);
1928 void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg);
1931 (bfd *abfd, enum bfd_architecture arch, unsigned long mach);
1933 enum bfd_architecture bfd_get_arch (const bfd *abfd);
1935 unsigned long bfd_get_mach (const bfd *abfd);
1937 unsigned int bfd_arch_bits_per_byte (const bfd *abfd);
1939 unsigned int bfd_arch_bits_per_address (const bfd *abfd);
1941 const bfd_arch_info_type *bfd_get_arch_info (bfd *abfd);
1949 unsigned int bfd_octets_per_byte (const bfd *abfd,
2101 (bfd *, arelent *, struct bfd_symbol *, void *, asection *,
2102 bfd *, char **);
2139 bfd *abfd,
2144 (bfd *abfd,
2148 bfd *output_bfd,
2152 (bfd *abfd,
5444 important as several tables in the AArch64 bfd backend are indexed
6294 (bfd *abfd, bfd_reloc_code_real_type code);
6296 (bfd *abfd, const char *reloc_name);
6312 these globals be per-bfd (or per-target-flavor). FIXME. */
6313 struct bfd *the_bfd; /* Use bfd_asymbol_bfd(sym) to access this field. */
6451 bool bfd_is_local_label (bfd *abfd, asymbol *sym);
6453 bool bfd_is_local_label_name (bfd *abfd, const char *name);
6458 bool bfd_is_target_special_symbol (bfd *abfd, asymbol *sym);
6467 (bfd *abfd, asymbol **location, unsigned int count);
6469 void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol);
6474 asymbol *_bfd_generic_make_empty_symbol (bfd *);
6486 (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym);
6492 /* Extracted from bfd.c. */
6515 struct bfd
6530 struct bfd *lru_prev, *lru_next;
6713 bfd *plugin_dummy_bfd;
6715 /* The offset of this bfd in the file, typically 0 if it is not
6722 thin archive rather than the offset of the bfd in its actual
6775 struct bfd *my_archive; /* The containing archive BFD. */
6776 struct bfd *archive_next; /* The next BFD in the archive. */
6777 struct bfd *archive_head; /* The first BFD in the archive. */
6778 struct bfd *nested_archives; /* List of nested archive in a flattened
6783 struct bfd *next;
6838 bfd_get_filename (const bfd *abfd)
6844 bfd_get_cacheable (const bfd *abfd)
6850 bfd_get_format (const bfd *abfd)
6856 bfd_get_file_flags (const bfd *abfd)
6862 bfd_get_start_address (const bfd *abfd)
6868 bfd_get_symcount (const bfd *abfd)
6874 bfd_get_dynamic_symcount (const bfd *abfd)
6880 bfd_get_outsymbols (const bfd *abfd)
6886 bfd_count_sections (const bfd *abfd)
6892 bfd_has_map (const bfd *abfd)
6898 bfd_is_thin_archive (const bfd *abfd)
6904 bfd_usrdata (const bfd *abfd)
6911 bfd_set_cacheable (bfd * abfd, bool val)
6918 bfd_set_thin_archive (bfd *abfd, bool val)
6924 bfd_set_usrdata (bfd *abfd, void *val)
6947 static inline struct bfd *
6960 bfd_get_section_limit_octets (const bfd *abfd, const asection *sec)
6969 bfd_get_section_limit (const bfd *abfd, const asection *sec)
6976 bfd_get_section_alloc_size (const bfd *abfd, const asection *sec)
6983 /* Functions to handle insertion and deletion of a bfd's sections. These
6987 bfd_section_list_remove (bfd *abfd, asection *s)
7002 bfd_section_list_append (bfd *abfd, asection *s)
7019 bfd_section_list_prepend (bfd *abfd, asection *s)
7036 bfd_section_list_insert_after (bfd *abfd, asection *a, asection *s)
7049 bfd_section_list_insert_before (bfd *abfd, asection *b, asection *s)
7062 bfd_section_removed_from_list (const bfd *abfd, const asection *s)
7100 void bfd_set_input_error (bfd *input, bfd_error_type error_tag);
7123 long bfd_get_reloc_upper_bound (bfd *abfd, asection *sect);
7126 (bfd *abfd, asection *sec, arelent **loc, asymbol **syms);
7129 (bfd *abfd, asection *sec, arelent **rel, unsigned int count);
7133 bool bfd_set_file_flags (bfd *abfd, flagword flags);
7135 int bfd_get_arch_size (bfd *abfd);
7137 int bfd_get_sign_extend_vma (bfd *abfd);
7139 bool bfd_set_start_address (bfd *abfd, bfd_vma vma);
7141 unsigned int bfd_get_gp_size (bfd *abfd);
7143 void bfd_set_gp_size (bfd *abfd, unsigned int i);
7145 void bfd_set_gp_value (bfd *abfd, bfd_vma v);
7149 bool bfd_copy_private_header_data (bfd *ibfd, bfd *obfd);
7154 bool bfd_copy_private_bfd_data (bfd *ibfd, bfd *obfd);
7159 bool bfd_set_private_flags (bfd *abfd, flagword flags);
7263 (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *,
7266 bool bfd_alt_mach_code (bfd *abfd, int alternative);
7272 char *bfd_demangle (bfd *, const char *, int);
7276 (bfd *abfd, symindex previous, carsym **sym);
7278 bool bfd_set_archive_head (bfd *output, bfd *new_head);
7280 bfd *bfd_openr_next_archived_file (bfd *archive, bfd *previous);
7283 const char *bfd_core_file_failing_command (bfd *abfd);
7285 int bfd_core_file_failing_signal (bfd *abfd);
7287 int bfd_core_file_pid (bfd *abfd);
7290 (bfd *core_bfd, bfd *exec_bfd);
7293 (bfd *core_bfd, bfd *exec_bfd);
7296 #define BFD_SEND(bfd, message, arglist) \
7297 ((*((bfd)->xvec->message)) arglist)
7301 #define BFD_SEND(bfd, message, arglist) \
7302 (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
7303 ((*((bfd)->xvec->message)) arglist) : \
7306 #define BFD_SEND_FMT(bfd, message, arglist) \
7307 (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist)
7311 #define BFD_SEND_FMT(bfd, message, arglist) \
7312 (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
7313 (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist) : \
7356 typedef void (*bfd_cleanup) (bfd *);
7427 bfd_cleanup (*_bfd_check_format[bfd_type_end]) (bfd *);
7430 bool (*_bfd_set_format[bfd_type_end]) (bfd *);
7433 bool (*_bfd_write_contents[bfd_type_end]) (bfd *);
7445 bool (*_close_and_cleanup) (bfd *);
7447 bool (*_bfd_free_cached_info) (bfd *);
7449 bool (*_new_section_hook) (bfd *, sec_ptr);
7451 bool (*_bfd_get_section_contents) (bfd *, sec_ptr, void *, file_ptr,
7453 bool (*_bfd_get_section_contents_in_window) (bfd *, sec_ptr, bfd_window *,
7469 bool (*_bfd_copy_private_bfd_data) (bfd *, bfd *);
7472 bool (*_bfd_merge_private_bfd_data) (bfd *, struct bfd_link_info *);
7478 bool (*_bfd_init_private_section_data) (bfd *, sec_ptr, bfd *, sec_ptr,
7482 bool (*_bfd_copy_private_section_data) (bfd *, sec_ptr, bfd *, sec_ptr);
7485 bool (*_bfd_copy_private_symbol_data) (bfd *, asymbol *,
7486 bfd *, asymbol *);
7489 bool (*_bfd_copy_private_header_data) (bfd *, bfd *);
7491 bool (*_bfd_set_private_flags) (bfd *, flagword);
7494 bool (*_bfd_print_private_bfd_data) (bfd *, void *);
7503 char *(*_core_file_failing_command) (bfd *);
7504 int (*_core_file_failing_signal) (bfd *);
7505 bool (*_core_file_matches_executable_p) (bfd *, bfd *);
7506 int (*_core_file_pid) (bfd *);
7522 bool (*_bfd_slurp_armap) (bfd *);
7523 bool (*_bfd_slurp_extended_name_table) (bfd *);
7524 bool (*_bfd_construct_extended_name_table) (bfd *, char **,
7527 void (*_bfd_truncate_arname) (bfd *, const char *, char *);
7528 bool (*write_armap) (bfd *, unsigned, struct orl *, unsigned, int);
7529 void *(*_bfd_read_ar_hdr_fn) (bfd *);
7530 bool (*_bfd_write_ar_hdr_fn) (bfd *, bfd *);
7531 bfd *(*openr_next_archived_file) (bfd *, bfd *);
7534 bfd *(*_bfd_get_elt_at_index) (bfd *, symindex);
7535 int (*_bfd_stat_arch_elt) (bfd *, struct stat *);
7536 bool (*_bfd_update_armap_timestamp) (bfd *);
7557 long (*_bfd_get_symtab_upper_bound) (bfd *);
7558 long (*_bfd_canonicalize_symtab) (bfd *, struct bfd_symbol **);
7560 (*_bfd_make_empty_symbol) (bfd *);
7561 void (*_bfd_print_symbol) (bfd *, void *, struct bfd_symbol *,
7565 void (*_bfd_get_symbol_info) (bfd *, struct bfd_symbol *, symbol_info *);
7569 (*_bfd_get_symbol_version_string) (bfd *, struct bfd_symbol *,
7573 bool (*_bfd_is_local_label_name) (bfd *, const char *);
7574 bool (*_bfd_is_target_special_symbol) (bfd *, asymbol *);
7576 (*_get_lineno) (bfd *, struct bfd_symbol *);
7577 bool (*_bfd_find_nearest_line) (bfd *, struct bfd_symbol **,
7581 bool (*_bfd_find_nearest_line_with_alt) (bfd *, const char *,
7586 bool (*_bfd_find_line) (bfd *, struct bfd_symbol **,
7590 (bfd *, const char **, const char **, unsigned int *);
7595 (*_bfd_make_debug_symbol) (bfd *, void *, unsigned long size);
7598 long (*_read_minisymbols) (bfd *, bool, void **, unsigned int *);
7602 (*_minisymbol_to_symbol) (bfd *, bool, const void *, asymbol *);
7612 long (*_get_reloc_upper_bound) (bfd *, sec_ptr);
7613 long (*_bfd_canonicalize_reloc) (bfd *, sec_ptr, arelent **,
7615 void (*_bfd_set_reloc) (bfd *, sec_ptr, arelent **, unsigned int);
7618 (*reloc_type_lookup) (bfd *, bfd_reloc_code_real_type);
7620 (*reloc_name_lookup) (bfd *, const char *);
7627 bool (*_bfd_set_arch_mach) (bfd *, enum bfd_architecture,
7629 bool (*_bfd_set_section_contents) (bfd *, sec_ptr, const void *,
7655 int (*_bfd_sizeof_headers) (bfd *, struct bfd_link_info *);
7657 (*_bfd_get_relocated_section_contents) (bfd *,
7663 bool (*_bfd_relax_section) (bfd *, struct bfd_section *,
7669 (*_bfd_link_hash_table_create) (bfd *);
7672 bool (*_bfd_link_add_symbols) (bfd *, struct bfd_link_info *);
7681 void (*_bfd_copy_link_hash_symbol_type) (bfd *,
7687 bool (*_bfd_final_link) (bfd *, struct bfd_link_info *);
7690 bool (*_bfd_link_split_section) (bfd *, struct bfd_section *);
7692 /* Check the relocations in the bfd for validity. */
7693 bool (* _bfd_link_check_relocs)(bfd *, struct bfd_link_info *);
7696 bool (*_bfd_gc_sections) (bfd *, struct bfd_link_info *);
7703 bool (*_bfd_merge_sections) (bfd *, struct bfd_link_info *);
7706 bool (*_bfd_is_group_section) (bfd *, const struct bfd_section *);
7709 const char *(*_bfd_group_name) (bfd *, const struct bfd_section *);
7712 bool (*_bfd_discard_group) (bfd *, struct bfd_section *);
7716 bool (*_section_already_linked) (bfd *, asection *,
7720 bool (*_bfd_define_common_symbol) (bfd *, struct bfd_link_info *,
7724 void (*_bfd_link_hide_symbol) (bfd *, struct bfd_link_info *,
7741 long (*_bfd_get_dynamic_symtab_upper_bound) (bfd *);
7743 long (*_bfd_canonicalize_dynamic_symtab) (bfd *, struct bfd_symbol **);
7745 long (*_bfd_get_synthetic_symtab) (bfd *, long, struct bfd_symbol **,
7749 long (*_bfd_get_dynamic_reloc_upper_bound) (bfd *);
7751 long (*_bfd_canonicalize_dynamic_reloc) (bfd *, arelent **,
7764 bfd_get_target (const bfd *abfd)
7770 bfd_get_flavour (const bfd *abfd)
7776 bfd_applicable_file_flags (const bfd *abfd)
7782 bfd_family_coff (const bfd *abfd)
7789 bfd_big_endian (const bfd *abfd)
7794 bfd_little_endian (const bfd *abfd)
7800 bfd_header_big_endian (const bfd *abfd)
7806 bfd_header_little_endian (const bfd *abfd)
7812 bfd_applicable_section_flags (const bfd *abfd)
7818 bfd_get_symbol_leading_char (const bfd *abfd)
7832 bfd_keep_unused_section_symbols (const bfd *abfd)
7846 const bfd_target *bfd_find_target (const char *target_name, bfd *abfd);
7849 bfd *abfd,
7862 bool bfd_check_format (bfd *abfd, bfd_format format);
7865 (bfd *abfd, bfd_format format, char ***matching);
7867 bool bfd_set_format (bfd *abfd, bfd_format format);
7883 bool bfd_link_split_section (bfd *abfd, asection *sec);
7888 bool bfd_section_already_linked (bfd *abfd,
7896 (bfd *output_bfd, struct bfd_link_info *info,
7903 (bfd *output_bfd, struct bfd_link_info *info,
7924 (bfd *abfd, struct bfd_link_info *info);
7927 (bfd *abfd, struct bfd_link_info *info);
7930 (bfd *ibfd, struct bfd_link_info *info);
7937 (bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table);
7966 bfd_debug_name_to_zdebug (bfd *abfd, const char *name)
7979 bfd_zdebug_name_to_debug (bfd *abfd, const char *name)
7995 (bfd *abfd, bfd_byte *contents, asection *sec);
7997 int bfd_get_compression_header_size (bfd *abfd, asection *sec);
8000 (bfd *ibfd, asection *isec, bfd *obfd,
8004 (bfd *ibfd, asection *isec, bfd *obfd,
8008 (bfd *abfd, asection *section, bfd_byte **ptr);
8011 (bfd *abfd, asection *section,
8018 (bfd *abfd, asection *section);
8021 (bfd *abfd, asection *section);
8024 (bfd *abfd, asection *section);
8027 (bfd *abfd, asection *section, bfd_byte *uncompressed_buffer);