#include "bfd.h"#include "sysdep.h"#include "libbfd.h"

Go to the source code of this file.
| #define COERCE16 | ( | x | ) | (((bfd_signed_vma) (x) ^ 0x8000) - 0x8000) |
The do-it-yourself (byte) sex-change kit
Definition at line 396 of file libbfd.c.
Referenced by bfd_getb_signed_16(), and bfd_getl_signed_16().
| #define COERCE32 | ( | x | ) | (((bfd_signed_vma) (x) ^ 0x80000000) - 0x80000000) |
| #define COERCE64 | ( | x | ) | (((bfd_int64_t) (x) ^ EIGHT_GAZILLION) - EIGHT_GAZILLION) |
Definition at line 399 of file libbfd.c.
Referenced by bfd_getb_signed_64(), and bfd_getl_signed_64().
| #define EIGHT_GAZILLION ((bfd_int64_t) 1 << 63) |
| #define getpagesize | ( | void | ) | 2048 |
Definition at line 32 of file libbfd.c.
Referenced by darwin_gt_pch_use_address(), darwin_rs6000_gt_pch_use_address(), default_gt_pch_alloc_granularity(), elfunmap(), init_ggc(), load_file(), read_include_file(), and sol_gt_pch_use_address().
| const bfd_target* _bfd_dummy_target | ( | bfd *ignore_abfd | ATTRIBUTE_UNUSED | ) |
| bfd_boolean _bfd_generic_get_section_contents | ( | bfd * | abfd, | |
| sec_ptr | section, | |||
| void * | location, | |||
| file_ptr | offset, | |||
| bfd_size_type | count | |||
| ) |
Definition at line 693 of file libbfd.c.
References bfd_bread(), bfd_error_invalid_operation, bfd_seek(), bfd_set_error(), FALSE, bfd_section::filepos, bfd_section::rawsize, SEEK_SET, bfd_section::size, sz(), and TRUE.
| bfd_boolean _bfd_generic_get_section_contents_in_window | ( | bfd *abfd | ATTRIBUTE_UNUSED, | |
| sec_ptr section | ATTRIBUTE_UNUSED, | |||
| bfd_window *w | ATTRIBUTE_UNUSED, | |||
| file_ptr offset | ATTRIBUTE_UNUSED, | |||
| bfd_size_type count | ATTRIBUTE_UNUSED | |||
| ) |
Definition at line 719 of file libbfd.c.
References _bfd_generic_get_section_contents(), abfd, abort, bfd_free_window(), bfd_get_file_window(), bfd_get_section_contents(), bfd_malloc(), bfd_zmalloc(), count, FALSE, free(), NULL, offset, sz(), and TRUE.
| bfd_boolean _bfd_generic_set_section_contents | ( | bfd * | abfd, | |
| sec_ptr | section, | |||
| const void * | location, | |||
| file_ptr | offset, | |||
| bfd_size_type | count | |||
| ) |
Definition at line 771 of file libbfd.c.
References bfd_bwrite(), bfd_seek(), FALSE, bfd_section::filepos, SEEK_SET, and TRUE.
Definition at line 821 of file libbfd.c.
References _, bfd_big_endian, BFD_ENDIAN_UNKNOWN, bfd_error_wrong_format, bfd_set_error(), bfd_target::byteorder, FALSE, msg, TRUE, and bfd::xvec.
Referenced by _bfd_m68hc11_elf_merge_private_bfd_data(), _bfd_mips_elf_merge_private_bfd_data(), cris_elf_copy_private_bfd_data(), cris_elf_merge_private_bfd_data(), elf_xtensa_merge_private_bfd_data(), mcore_elf_merge_private_bfd_data(), ppc_elf_merge_private_bfd_data(), sh64_elf_merge_private_data(), sh_elf64_merge_private_data(), and sh_merge_bfd_arch().
Definition at line 96 of file libbfd.c.
References bfd_error_invalid_operation, and bfd_set_error().
| char* _bfd_nocore_core_file_failing_command | ( | bfd *ignore_abfd | ATTRIBUTE_UNUSED | ) |
Definition at line 120 of file libbfd.c.
References bfd_error_invalid_operation, bfd_set_error(), and NULL.
| int _bfd_nocore_core_file_failing_signal | ( | bfd *ignore_abfd | ATTRIBUTE_UNUSED | ) |
Definition at line 130 of file libbfd.c.
References bfd_error_invalid_operation, and bfd_set_error().
| bfd_boolean _bfd_nocore_core_file_matches_executable_p | ( | bfd *ignore_core_bfd | ATTRIBUTE_UNUSED, | |
| bfd *ignore_exec_bfd | ATTRIBUTE_UNUSED | |||
| ) |
Definition at line 109 of file libbfd.c.
References bfd_error_invalid_operation, bfd_set_error(), and FALSE.
| bfd_boolean bfd_false | ( | bfd *ignore | ATTRIBUTE_UNUSED | ) |
Definition at line 49 of file libbfd.c.
References bfd_error_invalid_operation, bfd_set_error(), and FALSE.
| bfd_boolean bfd_generic_is_local_label_name | ( | bfd * | abfd, | |
| const char * | name | |||
| ) |
| bfd_uint64_t bfd_get_bits | ( | const void * | p, | |
| int | bits, | |||
| bfd_boolean | big_p | |||
| ) |
Definition at line 668 of file libbfd.c.
References abort, addr(), bytes, i, and index().
Referenced by cgen_get_insn_value(), print_insn(), and read_insn().
Definition at line 403 of file libbfd.c.
References addr().
Referenced by bfd_pef_parse_imported_library(), bfd_pef_parse_traceback_table(), bfd_sym_display_name_table_entry(), bfd_sym_fetch_long(), bfd_sym_fetch_type_information_table_entry(), bfd_sym_parse_contained_labels_table_entry_v32(), bfd_sym_parse_contained_modules_table_entry_v32(), bfd_sym_parse_contained_statements_table_entry_v32(), bfd_sym_parse_contained_variables_table_entry_v32(), bfd_sym_parse_disk_table_v32(), bfd_sym_parse_file_reference_v32(), bfd_sym_parse_file_references_table_entry_v32(), bfd_sym_parse_header_v32(), bfd_sym_parse_modules_table_entry_v33(), bfd_sym_parse_resources_table_entry_v32(), build_link_order(), disassemble(), pj_elf_reloc(), print_insn_mips16(), print_insn_mn10200(), print_insn_mn10300(), print_insn_sh(), and print_mips16_insn_arg().
Definition at line 447 of file libbfd.c.
Referenced by _bfd_sh64_crange_bsearch_cmpb(), _bfd_sh64_crange_qsort_cmpb(), _print_insn_mips(), bfd_mach_o_archive_p(), bfd_mach_o_read_header(), bfd_pef_parse_function_stub(), bfd_pef_parse_function_stubs(), bfd_pef_parse_imported_library(), bfd_pef_parse_imported_symbol(), bfd_pef_parse_loader_header(), bfd_pef_parse_traceback_table(), bfd_pef_parse_traceback_tables(), bfd_pef_read_header(), bfd_pef_xlib_read_header(), bfd_sym_fetch_long(), bfd_sym_fetch_type_information_table_entry(), bfd_sym_parse_contained_labels_table_entry_v32(), bfd_sym_parse_contained_modules_table_entry_v32(), bfd_sym_parse_contained_statements_table_entry_v32(), bfd_sym_parse_contained_variables_table_entry_v32(), bfd_sym_parse_disk_table_v32(), bfd_sym_parse_file_reference_v32(), bfd_sym_parse_file_references_table_entry_v32(), bfd_sym_parse_header_v32(), bfd_sym_parse_modules_table_entry_v33(), bfd_sym_parse_resources_table_entry_v32(), bfd_sym_parse_type_table_entry_v32(), build_link_order(), decodeInstr(), do_slurp_coff_armap(), fill_instruction(), pj_elf_reloc(), print_insn_d10v(), print_insn_d30v(), print_insn_dlx(), print_insn_hppa(), print_insn_m88k(), print_insn_mmix(), print_insn_mn10300(), print_insn_powerpc(), print_insn_sh(), print_insn_sh64(), print_insn_shmedia(), and print_insn_sparc().
| bfd_uint64_t bfd_getb64 | ( | const void *p | ATTRIBUTE_UNUSED | ) |
| bfd_signed_vma bfd_getb_signed_16 | ( | const void * | p | ) |
| bfd_signed_vma bfd_getb_signed_32 | ( | const void * | p | ) |
| bfd_int64_t bfd_getb_signed_64 | ( | const void *p | ATTRIBUTE_UNUSED | ) |
Definition at line 410 of file libbfd.c.
References addr().
Referenced by _bfd_vms_get_header_values(), _bfd_vms_slurp_gsd(), _bfd_vms_slurp_hdr(), analyze_etir(), avrdis_opcode(), disassemble(), msp430dis_opcode(), print_insn_mips16(), print_insn_mn10200(), print_insn_sh(), print_insn_tic54x(), print_insn_v850(), print_instruction(), print_mips16_insn_arg(), tic54x_get_insn(), and tir_sta().
Definition at line 460 of file libbfd.c.
Referenced by _bfd_sh64_crange_bsearch_cmpl(), _bfd_sh64_crange_qsort_cmpl(), _bfd_vms_slurp_eom(), _bfd_vms_slurp_gsd(), _bfd_vms_slurp_hdr(), _print_insn_mips(), bfd_mach_o_read_header(), decodeInstr(), disassemble(), do_slurp_coff_armap(), elfNN_ia64_relax_brl(), etir_ctl(), etir_sta(), etir_sto(), fill_instruction(), print_insn_alpha(), print_insn_i860(), print_insn_i960(), print_insn_powerpc(), print_insn_sh(), print_insn_sh64(), print_insn_shmedia(), print_insn_sparc(), print_insn_tic4x(), print_insn_v850(), tir_ctl(), and tir_sta().
| bfd_uint64_t bfd_getl64 | ( | const void *p | ATTRIBUTE_UNUSED | ) |
| bfd_signed_vma bfd_getl_signed_16 | ( | const void * | p | ) |
| bfd_signed_vma bfd_getl_signed_32 | ( | const void * | p | ) |
| bfd_int64_t bfd_getl_signed_64 | ( | const void *p | ATTRIBUTE_UNUSED | ) |
| unsigned int bfd_log2 | ( | bfd_vma | x | ) |
Definition at line 800 of file libbfd.c.
References result.
Referenced by _bfd_elf_make_section_from_phdr(), _bfd_elf_make_section_from_shdr(), _bfd_elf_print_private_bfd_data(), _bfd_generic_link_add_one_symbol(), _bfd_mn10300_elf_adjust_dynamic_symbol(), aout_link_check_ar_symbols(), elf32_hppa_adjust_dynamic_symbol(), elf32_sparc_adjust_dynamic_symbol(), elf64_x86_64_adjust_dynamic_symbol(), elf_cris_adjust_dynamic_symbol(), elf_i386_adjust_dynamic_symbol(), elf_link_add_object_symbols(), elf_m68k_adjust_dynamic_symbol(), elf_s390_adjust_dynamic_symbol(), elf_vax_adjust_dynamic_symbol(), generic_link_check_archive_element(), i370_elf_adjust_dynamic_symbol(), ieee_slurp_sections(), m32r_elf_adjust_dynamic_symbol(), ppc64_elf_adjust_dynamic_symbol(), ppc_elf_adjust_dynamic_symbol(), sh64_elf64_adjust_dynamic_symbol(), sh_elf_adjust_dynamic_symbol(), sparc64_elf_adjust_dynamic_symbol(), and swap_out_syms().
| void* bfd_malloc | ( | bfd_size_type | size | ) |
Definition at line 146 of file libbfd.c.
References bfd_error_no_memory, bfd_set_error(), malloc, NULL, and ptr.
Referenced by _bfd_coff_final_link(), _bfd_coff_get_external_symbols(), _bfd_coff_link_hash_table_create(), _bfd_coff_read_internal_relocs(), _bfd_coff_read_string_table(), _bfd_compute_and_write_armap(), _bfd_ecoff_bfd_link_hash_table_create(), _bfd_ecoff_write_object_contents(), _bfd_elf_get_synthetic_symtab(), _bfd_elf_link_assign_sym_version(), _bfd_elf_link_hash_table_create(), _bfd_elf_link_read_relocs(), _bfd_elf_mips_get_relocated_section_contents(), _bfd_elf_slurp_version_tables(), _bfd_elf_strtab_finalize(), _bfd_elf_strtab_init(), _bfd_elf_write_section_eh_frame(), _bfd_elf_write_section_eh_frame_hdr(), _bfd_generic_final_link(), _bfd_generic_get_section_contents_in_window(), _bfd_generic_link_add_archive_symbols(), _bfd_generic_link_hash_table_create(), _bfd_generic_read_minisymbols(), _bfd_mips_elf_final_link(), _bfd_mips_elf_hi16_reloc(), _bfd_mips_elf_link_hash_table_create(), _bfd_mips_elf_read_ecoff_info(), _bfd_mips_elf_section_from_shdr(), _bfd_mn10300_elf_create_dynamic_sections(), _bfd_stab_section_find_nearest_line(), _bfd_stringtab_init(), _bfd_vms_get_record(), _bfd_vms_save_sized_string(), _bfd_xcoff_bfd_final_link(), _bfd_xcoff_bfd_link_hash_table_create(), add_extra_plt_sections(), alpha_ecoff_get_relocated_section_contents(), analyze_relocations(), aout_get_external_symbols(), apuinfo_list_add(), assign_section_numbers(), b_out_bfd_get_relocated_section_contents(), b_out_bfd_relax_section(), b_out_slurp_reloc_table(), b_out_squirt_out_relocs(), bfd_arch_list(), bfd_boolean(), bfd_check_format_matches(), bfd_coff_reloc16_get_relocated_section_contents(), bfd_coff_reloc16_relax_section(), bfd_ecoff_debug_accumulate(), bfd_ecoff_debug_init(), bfd_ecoff_write_accumulated_debug(), bfd_elf_final_link(), bfd_elf_get_elf_syms(), bfd_elf_match_symbols_in_sections(), bfd_elf_size_dynamic_sections(), bfd_generic_get_relocated_section_contents(), bfd_get_unique_section_name(), bfd_mach_o_core_fetch_environment(), bfd_mach_o_openr_next_archived_file(), bfd_make_writable(), bfd_malloc_and_get_section(), bfd_pef_parse_function_stubs(), bfd_pef_parse_symbols(), bfd_pef_print_loader_section(), bfd_pef_scan_start_address(), bfd_simple_get_relocated_section_contents(), bfd_target_list(), bfd_wrapped_link_hash_lookup(), bfd_xcoff_export_symbol(), bfd_xcoff_link_generate_rtinit(), bfd_xcoff_size_dynamic_sections(), cache_fix_array(), coff_arm_link_hash_table_create(), coff_i960_start_final_link(), compute_bucket_count(), concat_filename(), copy_private_bfd_data(), default_data_link_order(), default_indirect_link_order(), ecoff_compute_section_file_positions(), ecoff_indirect_link_order(), ecoff_link_add_object_symbols(), ecoff_link_check_archive_element(), ecoff_slurp_symbolic_header(), ecoff_write_symhdr(), elf32_h8_get_relocated_section_contents(), elf32_hppa_link_hash_table_create(), elf32_hppa_setup_section_lists(), elf32_m68hc11_setup_section_lists(), elf32_mn10300_link_hash_table_create(), elf64_alpha_read_ecoff_info(), elf64_hppa_check_relocs(), elf64_x86_64_link_hash_table_create(), elf_bfd_final_link(), elf_collect_hash_codes(), elf_cris_link_hash_table_create(), elf_i386_link_hash_table_create(), elf_link_add_object_symbols(), elf_link_check_versioned_symbol(), elf_m68k_link_hash_table_create(), elf_s390_link_hash_table_create(), elf_slurp_reloc_table_from_section(), elf_slurp_symbol_table(), elf_vax_link_hash_table_create(), elf_xtensa_combine_prop_entries(), elfcore_read_notes(), elfNN_ia64_final_link(), elfNN_ia64_relax_section(), find_arm_glue(), find_thumb_glue(), h8300_bfd_link_add_symbols(), h8300_coff_link_hash_table_create(), h8300_reloc16_extra_cases(), hppa_stub_name(), ieee_archive_p(), init_op_single_format_table(), ld_set_section_data(), linux_link_hash_table_create(), linux_tally_symbols(), lookup_line(), m32r_elf_create_dynamic_sections(), m32r_elf_hi16_reloc(), m32r_elf_link_hash_table_create(), m68hc11_elf_hash_table_create(), map_sections_to_segments(), merge_strings(), mips_elf64_slurp_one_reloc_table(), mips_elf_create_procedure_table(), mips_refhi_reloc(), mmo_get_spec_section(), mmo_object_p(), mmo_scan(), mn10200_elf_get_relocated_section_contents(), mn10300_elf_get_relocated_section_contents(), mn10300_elf_relax_section(), NAME(), new_section(), or32_elf_consth_reloc(), pe_print_edata(), pe_print_idata(), ppc64_elf_build_stubs(), ppc64_elf_edit_opd(), ppc64_elf_get_synthetic_symtab(), ppc_bfd_coff_final_link(), ppc_build_one_stub(), ppc_coff_link_hash_table_create(), ppc_elf_begin_write_processing(), ppc_elf_final_write_processing(), ppc_elf_relax_section(), ppc_stub_name(), record_arm_to_thumb_glue(), record_thumb_to_arm_glue(), record_toc(), reloc_bfd_fix_init(), sec_merge_init(), sh64_elf64_add_symbol_hook(), sh64_elf64_create_dynamic_sections(), sh64_elf64_link_hash_table_create(), sh64_elf_add_symbol_hook(), sh_align_loads(), sh_coff_get_relocated_section_contents(), sh_elf64_get_relocated_section_contents(), sh_elf_align_loads(), sh_elf_create_dynamic_sections(), sh_elf_get_relocated_section_contents(), sh_elf_link_hash_table_create(), sparc64_elf_slurp_one_reloc_table(), srec_read_section(), srec_scan(), sunos_add_dynamic_symbols(), sunos_canonicalize_dynamic_symtab(), sunos_link_hash_table_create(), sunos_scan_relocs(), xcoff64_write_object_contents(), xcoff_link_add_dynamic_symbols(), xcoff_link_add_symbols(), xcoff_write_archive_contents_big(), xtensa_get_property_section_name(), xtensa_isa_init(), and xtensa_read_table_entries().
Definition at line 68 of file libbfd.c.
References bfd_error_invalid_operation, bfd_set_error(), and NULL.
| void bfd_put_bits | ( | bfd_uint64_t | data, | |
| void * | p, | |||
| int | bits, | |||
| bfd_boolean | big_p | |||
| ) |
Definition at line 648 of file libbfd.c.
References abort, addr(), bytes, i, and index().
Referenced by cgen_put_insn_value(), hash_insn_array(), and hash_insn_list().
Definition at line 592 of file libbfd.c.
References addr().
Referenced by bfd_write_bigendian_4byte_int(), elfNN_ia64_install_value(), and pj_elf_reloc().
| void bfd_putb64 | ( | bfd_uint64_t data | ATTRIBUTE_UNUSED, | |
| void *p | ATTRIBUTE_UNUSED | |||
| ) |
Definition at line 439 of file libbfd.c.
References addr().
Referenced by build_link_order(), and image_write_w().
Definition at line 602 of file libbfd.c.
References addr().
Referenced by build_link_order(), elf32_sparc_relocate_section(), elfNN_ia64_install_value(), elfNN_ia64_relax_brl(), and image_write_l().
| void bfd_putl64 | ( | bfd_uint64_t data | ATTRIBUTE_UNUSED, | |
| void *p | ATTRIBUTE_UNUSED | |||
| ) |
| void* bfd_realloc | ( | void * | ptr, | |
| bfd_size_type | size | |||
| ) |
Definition at line 166 of file libbfd.c.
References bfd_error_no_memory, bfd_set_error(), malloc, NULL, realloc, and ret.
Referenced by _bfd_compute_and_write_armap(), _bfd_elf_add_dynamic_entry(), _bfd_elf_discard_section_eh_frame(), _bfd_elf_strtab_add(), _bfd_link_section_stabs(), _bfd_mips_elf_final_link(), _bfd_vms_get_record(), _bfd_vms_slurp_gsd(), _bfd_xcoff64_put_ldsymbol_name(), _bfd_xcoff_put_ldsymbol_name(), alloc_section(), bfd_bwrite(), bfd_elf_gc_record_vtentry(), bfd_mach_o_core_fetch_environment(), bfd_seek(), bfd_sunos_size_dynamic_sections(), check_section(), decode_line_info(), ecoff_add_bytes(), elf_add_dynamic_entry(), elf_gc_record_vtentry(), elf_link_output_sym(), elfNN_ia64_relax_section(), generic_add_output_symbol(), get_section_entry(), ieee_archive_p(), ihex_read_section(), ihex_scan(), ppc64_elf_edit_opd(), ppc_elf_relax_section(), read_abbrevs(), srec_scan(), sunos_add_dynamic_symbols(), sunos_scan_dynamic_symbol(), vms_new_section_hook(), and vsprint_msg().
| bfd_boolean bfd_true | ( | bfd *ignore | ATTRIBUTE_UNUSED | ) |
| bfd_boolean bfd_write_bigendian_4byte_int | ( | bfd * | abfd, | |
| unsigned int | i | |||
| ) |
Definition at line 226 of file libbfd.c.
References bfd_bwrite(), and bfd_putb32().
Referenced by coff_write_armap().
| void* bfd_zmalloc | ( | bfd_size_type | size | ) |
Definition at line 190 of file libbfd.c.
References bfd_error_no_memory, bfd_set_error(), malloc, memset, NULL, and ptr.
Referenced by _bfd_coff_reloc_link_order(), _bfd_elf_discard_section_eh_frame(), _bfd_elf_link_size_reloc_section(), _bfd_generic_get_section_contents_in_window(), _bfd_generic_reloc_link_order(), _bfd_mips_elf_discard_info(), _bfd_new_bfd(), _bfd_vms_slurp_gsd(), add_removed_literal(), add_value_map(), aout_link_reloc_link_order(), bfd_coff_reloc16_relax_section(), bfd_ecoff_write_accumulated_debug(), bfd_elf_final_link(), bfd_elf_gc_record_vtentry(), cisco_core_file_validate(), ebb_propose_action(), ecoff_reloc_link_order(), ecoff_write_shuffle(), elf32_hppa_setup_section_lists(), elf32_m68hc11_size_stubs(), elf32_sparc_link_hash_table_create(), elf64_alpha_bfd_link_hash_table_create(), elf_bfd_final_link(), elf_gc_record_vtentry(), elf_link_add_archive_symbols(), elf_link_sort_relocs(), elf_reloc_link_order(), elfNN_ia64_hash_table_create(), get_local_syms(), mmo_get_spec_section(), mmo_mkobject(), move_literal(), NAME(), ppc64_elf_edit_toc(), ppc64_elf_link_hash_table_create(), ppc64_elf_setup_section_lists(), ppc_elf_link_hash_table_create(), read_uarea(), relax_section(), sec_merge_emit(), sh64_bfd_elf_copy_private_section_data(), sparc64_elf_bfd_link_hash_table_create(), text_action_add(), text_action_add_literal(), trad_unix_core_file_p(), value_map_hash_table_init(), xcoff64_generate_rtinit(), xcoff_generate_rtinit(), xcoff_link_add_symbols(), xcoff_reloc_link_order(), xcoff_write_archive_contents_big(), and xcoff_write_armap_big().
| bfd_signed_vma read_signed_leb128 | ( | bfd *abfd | ATTRIBUTE_UNUSED, | |
| bfd_byte * | buf, | |||
| unsigned int * | bytes_read_ptr | |||
| ) |
| void warn_deprecated | ( | const char * | what, | |
| const char * | file, | |||
| int | line, | |||
| const char * | func | |||
| ) |
1.5.6