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.
92 been selected with --enable-targets, or if --enable-64-bit-bfd. */
95 /* The word size of the default bfd target. */
142 typedef struct bfd bfd;
144 /* Boolean type used in bfd. Too many systems define their own
223 extern void bfd_sprintf_vma (bfd *, char *, bfd_vma);
224 extern void bfd_fprintf_vma (bfd *, void *, bfd_vma);
270 bfd *abfd;
271 } u; /* bfd* or file position. */
465 extern bfd_size_type bfd_bread (void *, bfd_size_type, bfd *);
466 extern bfd_size_type bfd_bwrite (const void *, bfd_size_type, bfd *);
467 extern int bfd_seek (bfd *, file_ptr, int);
468 extern file_ptr bfd_tell (bfd *);
469 extern int bfd_flush (bfd *);
470 extern int bfd_stat (bfd *, struct stat *);
491 (bfd *abfd);
497 (bfd *, unsigned long, bfd_boolean, flagword, bfd_boolean, bfd_vma,
554 (bfd *, file_ptr, bfd_size_type, bfd_window *, bfd_boolean);
573 extern bfd *bfd_elf_bfd_from_remote_memory
574 (bfd *templ, bfd_vma ehdr_vma, bfd_size_type size, bfd_vma *loadbasep,
594 bfd *bfd_fopen (const char *filename, const char *target,
597 bfd *bfd_openr (const char *filename, const char *target);
599 bfd *bfd_fdopenr (const char *filename, const char *target, int fd);
601 bfd *bfd_openstreamr (const char * filename, const char * target,
604 bfd *bfd_openr_iovec (const char *filename, const char *target,
605 void *(*open_func) (struct bfd *nbfd,
608 file_ptr (*pread_func) (struct bfd *nbfd,
613 int (*close_func) (struct bfd *nbfd,
615 int (*stat_func) (struct bfd *abfd,
619 bfd *bfd_openw (const char *filename, const char *target);
621 bfd_boolean bfd_close (bfd *abfd);
623 bfd_boolean bfd_close_all_done (bfd *);
625 bfd *bfd_create (const char *filename, bfd *templ);
627 bfd_boolean bfd_make_writable (bfd *abfd);
629 bfd_boolean bfd_make_readable (bfd *abfd);
631 void *bfd_alloc (bfd *abfd, bfd_size_type wanted);
633 void *bfd_zalloc (bfd *abfd, bfd_size_type wanted);
638 char *bfd_get_debug_link_info (bfd *abfd, unsigned long *crc32_out);
640 char *bfd_get_alt_debug_link_info (bfd * abfd,
644 char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir);
646 char *bfd_follow_gnu_debugaltlink (bfd *abfd, const char *dir);
649 (bfd *abfd, const char *filename);
652 (bfd *abfd, struct bfd_section *sect, const char *filename);
654 char *bfd_follow_build_id_debuglink (bfd *abfd, const char *dir);
656 const char *bfd_set_filename (bfd *abfd, const char *filename);
786 long bfd_get_mtime (bfd *abfd);
788 ufile_ptr bfd_get_size (bfd *abfd);
790 ufile_ptr bfd_get_file_size (bfd *abfd);
792 void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len,
812 /* Which section in the bfd; 0..n-1 as sections are created in a bfd. */
1080 user_set_vma flag is maintained by bfd; if it's not set, the
1189 bfd *owner;
1408 void bfd_section_list_clear (bfd *);
1410 asection *bfd_get_section_by_name (bfd *abfd, const char *name);
1412 asection *bfd_get_next_section_by_name (bfd *ibfd, asection *sec);
1414 asection *bfd_get_linker_section (bfd *abfd, const char *name);
1417 (bfd *abfd,
1419 bfd_boolean (*func) (bfd *abfd, asection *sect, void *obj),
1423 (bfd *abfd, const char *templat, int *count);
1425 asection *bfd_make_section_old_way (bfd *abfd, const char *name);
1428 (bfd *abfd, const char *name, flagword flags);
1430 asection *bfd_make_section_anyway (bfd *abfd, const char *name);
1433 (bfd *, const char *name, flagword flags);
1435 asection *bfd_make_section (bfd *, const char *name);
1443 (bfd *abfd,
1444 void (*func) (bfd *abfd, asection *sect, void *obj),
1448 (bfd *abfd,
1449 bfd_boolean (*operation) (bfd *abfd, asection *sect, void *obj),
1455 (bfd *abfd, asection *section, const void *data,
1459 (bfd *abfd, asection *section, void *location, file_ptr offset,
1463 (bfd *abfd, asection *section, bfd_byte **buf);
1466 (bfd *ibfd, asection *isec, bfd *obfd, asection *osec);
1471 bfd_boolean bfd_generic_is_group_section (bfd *, const asection *sec);
1473 const char *bfd_generic_group_name (bfd *, const asection *sec);
1475 bfd_boolean bfd_generic_discard_group (bfd *abfd, asection *group);
2010 const char *bfd_printable_name (bfd *abfd);
2017 (const bfd *abfd, const bfd *bbfd, bfd_boolean accept_unknowns);
2019 void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg);
2022 (bfd *abfd, enum bfd_architecture arch, unsigned long mach);
2024 enum bfd_architecture bfd_get_arch (const bfd *abfd);
2026 unsigned long bfd_get_mach (const bfd *abfd);
2028 unsigned int bfd_arch_bits_per_byte (const bfd *abfd);
2030 unsigned int bfd_arch_bits_per_address (const bfd *abfd);
2032 const bfd_arch_info_type *bfd_get_arch_info (bfd *abfd);
2040 unsigned int bfd_octets_per_byte (const bfd *abfd,
2194 (bfd *, arelent *, struct bfd_symbol *, void *, asection *,
2195 bfd *, char **);
2227 bfd *abfd,
2232 (bfd *abfd,
2236 bfd *output_bfd,
2240 (bfd *abfd,
5522 important as several tables in the AArch64 bfd backend are indexed
6290 (bfd *abfd, bfd_reloc_code_real_type code);
6292 (bfd *abfd, const char *reloc_name);
6308 these globals be per-bfd (or per-target-flavor). FIXME. */
6309 struct bfd *the_bfd; /* Use bfd_asymbol_bfd(sym) to access this field. */
6444 bfd_boolean bfd_is_local_label (bfd *abfd, asymbol *sym);
6446 bfd_boolean bfd_is_local_label_name (bfd *abfd, const char *name);
6451 bfd_boolean bfd_is_target_special_symbol (bfd *abfd, asymbol *sym);
6460 (bfd *abfd, asymbol **location, unsigned int count);
6462 void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol);
6467 asymbol *_bfd_generic_make_empty_symbol (bfd *);
6479 (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym);
6485 /* Extracted from bfd.c. */
6508 struct bfd
6523 struct bfd *lru_prev, *lru_next;
6702 bfd *plugin_dummy_bfd;
6704 /* The offset of this bfd in the file, typically 0 if it is not
6711 thin archive rather than the offset of the bfd in its actual
6755 struct bfd *my_archive; /* The containing archive BFD. */
6756 struct bfd *archive_next; /* The next BFD in the archive. */
6757 struct bfd *archive_head; /* The first BFD in the archive. */
6758 struct bfd *nested_archives; /* List of nested archive in a flattened
6763 struct bfd *next;
6818 bfd_get_filename (const bfd *abfd)
6824 bfd_get_cacheable (const bfd *abfd)
6830 bfd_get_format (const bfd *abfd)
6836 bfd_get_file_flags (const bfd *abfd)
6842 bfd_get_start_address (const bfd *abfd)
6848 bfd_get_symcount (const bfd *abfd)
6854 bfd_get_dynamic_symcount (const bfd *abfd)
6860 bfd_get_outsymbols (const bfd *abfd)
6866 bfd_count_sections (const bfd *abfd)
6872 bfd_has_map (const bfd *abfd)
6878 bfd_is_thin_archive (const bfd *abfd)
6884 bfd_usrdata (const bfd *abfd)
6891 bfd_set_cacheable (bfd * abfd, bfd_boolean val)
6898 bfd_set_thin_archive (bfd *abfd, bfd_boolean val)
6904 bfd_set_usrdata (bfd *abfd, void *val)
6927 static inline struct bfd *
6940 bfd_get_section_limit_octets (const bfd *abfd, const asection *sec)
6949 bfd_get_section_limit (const bfd *abfd, const asection *sec)
6955 /* Functions to handle insertion and deletion of a bfd's sections. These
6959 bfd_section_list_remove (bfd *abfd, asection *s)
6974 bfd_section_list_append (bfd *abfd, asection *s)
6991 bfd_section_list_prepend (bfd *abfd, asection *s)
7008 bfd_section_list_insert_after (bfd *abfd, asection *a, asection *s)
7021 bfd_section_list_insert_before (bfd *abfd, asection *b, asection *s)
7034 bfd_section_removed_from_list (const bfd *abfd, const asection *s)
7072 void bfd_set_input_error (bfd *input, bfd_error_type error_tag);
7095 long bfd_get_reloc_upper_bound (bfd *abfd, asection *sect);
7098 (bfd *abfd, asection *sec, arelent **loc, asymbol **syms);
7101 (bfd *abfd, asection *sec, arelent **rel, unsigned int count);
7105 bfd_boolean bfd_set_file_flags (bfd *abfd, flagword flags);
7107 int bfd_get_arch_size (bfd *abfd);
7109 int bfd_get_sign_extend_vma (bfd *abfd);
7111 bfd_boolean bfd_set_start_address (bfd *abfd, bfd_vma vma);
7113 unsigned int bfd_get_gp_size (bfd *abfd);
7115 void bfd_set_gp_size (bfd *abfd, unsigned int i);
7119 bfd_boolean bfd_copy_private_header_data (bfd *ibfd, bfd *obfd);
7124 bfd_boolean bfd_copy_private_bfd_data (bfd *ibfd, bfd *obfd);
7129 bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags);
7228 (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *,
7231 bfd_boolean bfd_alt_mach_code (bfd *abfd, int alternative);
7241 char *bfd_demangle (bfd *, const char *, int);
7244 (bfd *abfd, bfd_byte *contents, asection *sec);
7247 (bfd *abfd, bfd_byte *contents, asection *sec,
7251 int bfd_get_compression_header_size (bfd *abfd, asection *sec);
7254 (bfd *ibfd, asection *isec, bfd *obfd, bfd_size_type size);
7257 (bfd *ibfd, asection *isec, bfd *obfd,
7262 (bfd *abfd, symindex previous, carsym **sym);
7264 bfd_boolean bfd_set_archive_head (bfd *output, bfd *new_head);
7266 bfd *bfd_openr_next_archived_file (bfd *archive, bfd *previous);
7269 const char *bfd_core_file_failing_command (bfd *abfd);
7271 int bfd_core_file_failing_signal (bfd *abfd);
7273 int bfd_core_file_pid (bfd *abfd);
7276 (bfd *core_bfd, bfd *exec_bfd);
7279 (bfd *core_bfd, bfd *exec_bfd);
7282 #define BFD_SEND(bfd, message, arglist) \
7283 ((*((bfd)->xvec->message)) arglist)
7287 #define BFD_SEND(bfd, message, arglist) \
7288 (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
7289 ((*((bfd)->xvec->message)) arglist) : \
7292 #define BFD_SEND_FMT(bfd, message, arglist) \
7293 (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist)
7297 #define BFD_SEND_FMT(bfd, message, arglist) \
7298 (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
7299 (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist) : \
7337 typedef void (*bfd_cleanup) (bfd *);
7405 bfd_cleanup (*_bfd_check_format[bfd_type_end]) (bfd *);
7408 bfd_boolean (*_bfd_set_format[bfd_type_end]) (bfd *);
7411 bfd_boolean (*_bfd_write_contents[bfd_type_end]) (bfd *);
7423 bfd_boolean (*_close_and_cleanup) (bfd *);
7425 bfd_boolean (*_bfd_free_cached_info) (bfd *);
7427 bfd_boolean (*_new_section_hook) (bfd *, sec_ptr);
7429 bfd_boolean (*_bfd_get_section_contents) (bfd *, sec_ptr, void *, file_ptr,
7431 bfd_boolean (*_bfd_get_section_contents_in_window) (bfd *, sec_ptr,
7448 bfd_boolean (*_bfd_copy_private_bfd_data) (bfd *, bfd *);
7451 bfd_boolean (*_bfd_merge_private_bfd_data) (bfd *, struct bfd_link_info *);
7457 bfd_boolean (*_bfd_init_private_section_data) (bfd *, sec_ptr, bfd *,
7462 bfd_boolean (*_bfd_copy_private_section_data) (bfd *, sec_ptr, bfd *,
7466 bfd_boolean (*_bfd_copy_private_symbol_data) (bfd *, asymbol *, bfd *,
7470 bfd_boolean (*_bfd_copy_private_header_data) (bfd *, bfd *);
7472 bfd_boolean (*_bfd_set_private_flags) (bfd *, flagword);
7475 bfd_boolean (*_bfd_print_private_bfd_data) (bfd *, void *);
7484 char * (*_core_file_failing_command) (bfd *);
7485 int (*_core_file_failing_signal) (bfd *);
7486 bfd_boolean (*_core_file_matches_executable_p) (bfd *, bfd *);
7487 int (*_core_file_pid) (bfd *);
7503 bfd_boolean (*_bfd_slurp_armap) (bfd *);
7504 bfd_boolean (*_bfd_slurp_extended_name_table) (bfd *);
7505 bfd_boolean (*_bfd_construct_extended_name_table) (bfd *, char **,
7508 void (*_bfd_truncate_arname) (bfd *, const char *, char *);
7509 bfd_boolean (*write_armap) (bfd *, unsigned int, struct orl *,
7511 void * (*_bfd_read_ar_hdr_fn) (bfd *);
7512 bfd_boolean (*_bfd_write_ar_hdr_fn) (bfd *, bfd *);
7513 bfd * (*openr_next_archived_file) (bfd *, bfd *);
7516 bfd * (*_bfd_get_elt_at_index) (bfd *, symindex);
7517 int (*_bfd_stat_arch_elt) (bfd *, struct stat *);
7518 bfd_boolean (*_bfd_update_armap_timestamp) (bfd *);
7538 long (*_bfd_get_symtab_upper_bound) (bfd *);
7539 long (*_bfd_canonicalize_symtab) (bfd *, struct bfd_symbol **);
7541 (*_bfd_make_empty_symbol) (bfd *);
7542 void (*_bfd_print_symbol) (bfd *, void *, struct bfd_symbol *,
7546 void (*_bfd_get_symbol_info) (bfd *, struct bfd_symbol *,
7550 const char *(*_bfd_get_symbol_version_string) (bfd *, struct bfd_symbol *,
7555 bfd_boolean (*_bfd_is_local_label_name) (bfd *, const char *);
7556 bfd_boolean (*_bfd_is_target_special_symbol) (bfd *, asymbol *);
7557 alent * (*_get_lineno) (bfd *, struct bfd_symbol *);
7558 bfd_boolean (*_bfd_find_nearest_line) (bfd *, struct bfd_symbol **,
7562 bfd_boolean (*_bfd_find_line) (bfd *, struct bfd_symbol **,
7566 (bfd *, const char **, const char **, unsigned int *);
7570 asymbol * (*_bfd_make_debug_symbol) (bfd *, void *, unsigned long size);
7573 long (*_read_minisymbols) (bfd *, bfd_boolean, void **,
7577 asymbol * (*_minisymbol_to_symbol) (bfd *, bfd_boolean, const void *,
7588 long (*_get_reloc_upper_bound) (bfd *, sec_ptr);
7589 long (*_bfd_canonicalize_reloc) (bfd *, sec_ptr, arelent **,
7591 void (*_bfd_set_reloc) (bfd *, sec_ptr, arelent **, unsigned int);
7594 (*reloc_type_lookup) (bfd *, bfd_reloc_code_real_type);
7596 (*reloc_name_lookup) (bfd *, const char *);
7603 bfd_boolean (*_bfd_set_arch_mach) (bfd *, enum bfd_architecture,
7605 bfd_boolean (*_bfd_set_section_contents) (bfd *, sec_ptr, const void *,
7631 int (*_bfd_sizeof_headers) (bfd *, struct bfd_link_info *);
7632 bfd_byte * (*_bfd_get_relocated_section_contents) (bfd *,
7638 bfd_boolean (*_bfd_relax_section) (bfd *, struct bfd_section *,
7644 (*_bfd_link_hash_table_create) (bfd *);
7647 bfd_boolean (*_bfd_link_add_symbols) (bfd *, struct bfd_link_info *);
7656 void (*_bfd_copy_link_hash_symbol_type) (bfd *,
7662 bfd_boolean (*_bfd_final_link) (bfd *, struct bfd_link_info *);
7665 bfd_boolean (*_bfd_link_split_section) (bfd *, struct bfd_section *);
7667 /* Check the relocations in the bfd for validity. */
7668 bfd_boolean (* _bfd_link_check_relocs)(bfd *, struct bfd_link_info *);
7671 bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *);
7678 bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *);
7681 bfd_boolean (*_bfd_is_group_section) (bfd *, const struct bfd_section *);
7684 const char *(*_bfd_group_name) (bfd *, const struct bfd_section *);
7687 bfd_boolean (*_bfd_discard_group) (bfd *, struct bfd_section *);
7691 bfd_boolean (*_section_already_linked) (bfd *, asection *,
7695 bfd_boolean (*_bfd_define_common_symbol) (bfd *, struct bfd_link_info *,
7699 void (*_bfd_link_hide_symbol) (bfd *, struct bfd_link_info *,
7716 long (*_bfd_get_dynamic_symtab_upper_bound) (bfd *);
7718 long (*_bfd_canonicalize_dynamic_symtab) (bfd *, struct bfd_symbol **);
7720 long (*_bfd_get_synthetic_symtab) (bfd *, long, struct bfd_symbol **,
7724 long (*_bfd_get_dynamic_reloc_upper_bound) (bfd *);
7726 long (*_bfd_canonicalize_dynamic_reloc) (bfd *, arelent **,
7739 bfd_get_target (const bfd *abfd)
7745 bfd_get_flavour (const bfd *abfd)
7751 bfd_applicable_file_flags (const bfd *abfd)
7757 bfd_family_coff (const bfd *abfd)
7764 bfd_big_endian (const bfd *abfd)
7769 bfd_little_endian (const bfd *abfd)
7775 bfd_header_big_endian (const bfd *abfd)
7781 bfd_header_little_endian (const bfd *abfd)
7787 bfd_applicable_section_flags (const bfd *abfd)
7793 bfd_get_symbol_leading_char (const bfd *abfd)
7808 const bfd_target *bfd_find_target (const char *target_name, bfd *abfd);
7811 bfd *abfd,
7824 bfd_boolean bfd_check_format (bfd *abfd, bfd_format format);
7827 (bfd *abfd, bfd_format format, char ***matching);
7829 bfd_boolean bfd_set_format (bfd *abfd, bfd_format format);
7845 bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec);
7850 bfd_boolean bfd_section_already_linked (bfd *abfd,
7858 (bfd *output_bfd, struct bfd_link_info *info,
7865 (bfd *output_bfd, struct bfd_link_info *info,
7886 (bfd *abfd, struct bfd_link_info *info);
7889 (bfd *abfd, struct bfd_link_info *info);
7892 (bfd *ibfd, struct bfd_link_info *info);
7899 (bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table);
7903 (bfd *abfd, asection *section, bfd_byte **ptr);
7909 (bfd *abfd, asection *section,
7915 (bfd *abfd, asection *section);
7918 (bfd *abfd, asection *section);
7921 (bfd *abfd, asection *section);
7924 (bfd *abfd, asection *section, bfd_byte *uncompressed_buffer);