#include "bfd.h"#include "sysdep.h"#include "libiberty.h"#include "bfdlink.h"#include "libbfd.h"#include "elf-bfd.h"#include "elfcore.h"


Go to the source code of this file.
Defines | |
| #define | Elf_External_Ehdr NAME(Elf,External_Ehdr) |
| #define | Elf_External_Sym NAME(Elf,External_Sym) |
| #define | Elf_External_Shdr NAME(Elf,External_Shdr) |
| #define | Elf_External_Phdr NAME(Elf,External_Phdr) |
| #define | Elf_External_Rel NAME(Elf,External_Rel) |
| #define | Elf_External_Rela NAME(Elf,External_Rela) |
| #define | Elf_External_Dyn NAME(Elf,External_Dyn) |
| #define | elf_core_file_failing_command NAME(bfd_elf,core_file_failing_command) |
| #define | elf_core_file_failing_signal NAME(bfd_elf,core_file_failing_signal) |
| #define | elf_core_file_matches_executable_p NAME(bfd_elf,core_file_matches_executable_p) |
| #define | elf_object_p NAME(bfd_elf,object_p) |
| #define | elf_core_file_p NAME(bfd_elf,core_file_p) |
| #define | elf_get_symtab_upper_bound NAME(bfd_elf,get_symtab_upper_bound) |
| #define | elf_get_dynamic_symtab_upper_bound NAME(bfd_elf,get_dynamic_symtab_upper_bound) |
| #define | elf_swap_reloc_in NAME(bfd_elf,swap_reloc_in) |
| #define | elf_swap_reloca_in NAME(bfd_elf,swap_reloca_in) |
| #define | elf_swap_reloc_out NAME(bfd_elf,swap_reloc_out) |
| #define | elf_swap_reloca_out NAME(bfd_elf,swap_reloca_out) |
| #define | elf_swap_symbol_in NAME(bfd_elf,swap_symbol_in) |
| #define | elf_swap_symbol_out NAME(bfd_elf,swap_symbol_out) |
| #define | elf_swap_phdr_in NAME(bfd_elf,swap_phdr_in) |
| #define | elf_swap_phdr_out NAME(bfd_elf,swap_phdr_out) |
| #define | elf_swap_dyn_in NAME(bfd_elf,swap_dyn_in) |
| #define | elf_swap_dyn_out NAME(bfd_elf,swap_dyn_out) |
| #define | elf_get_reloc_upper_bound NAME(bfd_elf,get_reloc_upper_bound) |
| #define | elf_canonicalize_reloc NAME(bfd_elf,canonicalize_reloc) |
| #define | elf_slurp_symbol_table NAME(bfd_elf,slurp_symbol_table) |
| #define | elf_canonicalize_symtab NAME(bfd_elf,canonicalize_symtab) |
| #define | elf_canonicalize_dynamic_symtab NAME(bfd_elf,canonicalize_dynamic_symtab) |
| #define | elf_get_synthetic_symtab NAME(bfd_elf,get_synthetic_symtab) |
| #define | elf_make_empty_symbol NAME(bfd_elf,make_empty_symbol) |
| #define | elf_get_symbol_info NAME(bfd_elf,get_symbol_info) |
| #define | elf_get_lineno NAME(bfd_elf,get_lineno) |
| #define | elf_set_arch_mach NAME(bfd_elf,set_arch_mach) |
| #define | elf_find_nearest_line NAME(bfd_elf,find_nearest_line) |
| #define | elf_sizeof_headers NAME(bfd_elf,sizeof_headers) |
| #define | elf_set_section_contents NAME(bfd_elf,set_section_contents) |
| #define | elf_no_info_to_howto NAME(bfd_elf,no_info_to_howto) |
| #define | elf_no_info_to_howto_rel NAME(bfd_elf,no_info_to_howto_rel) |
| #define | elf_find_section NAME(bfd_elf,find_section) |
| #define | elf_write_shdrs_and_ehdr NAME(bfd_elf,write_shdrs_and_ehdr) |
| #define | elf_write_out_phdrs NAME(bfd_elf,write_out_phdrs) |
| #define | elf_write_relocs NAME(bfd_elf,write_relocs) |
| #define | elf_slurp_reloc_table NAME(bfd_elf,slurp_reloc_table) |
Functions/Subroutines | |
| void | elf_swap_symbol_in (bfd *abfd, const void *psrc, const void *pshn, Elf_Internal_Sym *dst) |
| void | elf_swap_symbol_out (bfd *abfd, const Elf_Internal_Sym *src, void *cdst, void *shndx) |
| static void | elf_swap_ehdr_in (bfd *abfd, const Elf_External_Ehdr *src, Elf_Internal_Ehdr *dst) |
| static void | elf_swap_ehdr_out (bfd *abfd, const Elf_Internal_Ehdr *src, Elf_External_Ehdr *dst) |
| static void | elf_swap_shdr_in (bfd *abfd, const Elf_External_Shdr *src, Elf_Internal_Shdr *dst) |
| static void | elf_swap_shdr_out (bfd *abfd, const Elf_Internal_Shdr *src, Elf_External_Shdr *dst) |
| void | elf_swap_phdr_in (bfd *abfd, const Elf_External_Phdr *src, Elf_Internal_Phdr *dst) |
| void | elf_swap_phdr_out (bfd *abfd, const Elf_Internal_Phdr *src, Elf_External_Phdr *dst) |
| void | elf_swap_reloc_in (bfd *abfd, const bfd_byte *s, Elf_Internal_Rela *dst) |
| void | elf_swap_reloca_in (bfd *abfd, const bfd_byte *s, Elf_Internal_Rela *dst) |
| void | elf_swap_reloc_out (bfd *abfd, const Elf_Internal_Rela *src, bfd_byte *d) |
| void | elf_swap_reloca_out (bfd *abfd, const Elf_Internal_Rela *src, bfd_byte *d) |
| void | elf_swap_dyn_in (bfd *abfd, const void *p, Elf_Internal_Dyn *dst) |
| void | elf_swap_dyn_out (bfd *abfd, const Elf_Internal_Dyn *src, void *p) |
| static bfd_boolean | elf_file_p (Elf_External_Ehdr *x_ehdrp) |
| const bfd_target * | elf_object_p (bfd *abfd) |
| void | elf_write_relocs (bfd *abfd, asection *sec, void *data) |
| int | elf_write_out_phdrs (bfd *abfd, const Elf_Internal_Phdr *phdr, unsigned int count) |
| bfd_boolean | elf_write_shdrs_and_ehdr (bfd *abfd) |
| long | elf_slurp_symbol_table (bfd *abfd, asymbol **symptrs, bfd_boolean dynamic) |
| static bfd_boolean | elf_slurp_reloc_table_from_section (bfd *abfd, asection *asect, Elf_Internal_Shdr *rel_hdr, bfd_size_type reloc_count, arelent *relents, asymbol **symbols, bfd_boolean dynamic) |
| bfd_boolean | elf_slurp_reloc_table (bfd *abfd, asection *asect, asymbol **symbols, bfd_boolean dynamic) |
| struct elf_size_info | NAME (_bfd_elf, size_info) |
Variables | |
| bfd *bfd * | templ |
| bfd *bfd bfd_vma | ehdr_vma |
| bfd *bfd bfd_vma bfd_vma * | loadbasep |
| bfd *bfd bfd_vma bfd_vma int(* | target_read_memory )(bfd_vma, bfd_byte *, int)) |
| #define elf_canonicalize_dynamic_symtab NAME(bfd_elf,canonicalize_dynamic_symtab) |
| #define elf_canonicalize_reloc NAME(bfd_elf,canonicalize_reloc) |
| #define elf_canonicalize_symtab NAME(bfd_elf,canonicalize_symtab) |
| #define elf_core_file_failing_command NAME(bfd_elf,core_file_failing_command) |
| #define elf_core_file_failing_signal NAME(bfd_elf,core_file_failing_signal) |
| #define elf_core_file_matches_executable_p NAME(bfd_elf,core_file_matches_executable_p) |
| #define Elf_External_Dyn NAME(Elf,External_Dyn) |
Definition at line 85 of file elfcode.h.
Referenced by elf_add_dynamic_entry(), elf_bfd_final_link(), elf_link_add_object_symbols(), elf_swap_dyn_in(), and elf_swap_dyn_out().
| #define Elf_External_Ehdr NAME(Elf,External_Ehdr) |
Definition at line 79 of file elfcode.h.
Referenced by elf_core_file_p(), elf_object_p(), and elf_write_shdrs_and_ehdr().
| #define Elf_External_Phdr NAME(Elf,External_Phdr) |
Definition at line 82 of file elfcode.h.
Referenced by elf_core_file_p(), elf_object_p(), and elf_write_out_phdrs().
| #define Elf_External_Rel NAME(Elf,External_Rel) |
Definition at line 83 of file elfcode.h.
Referenced by elf_bfd_final_link(), elf_link_adjust_relocs(), elf_link_sort_relocs(), elf_reloc_link_order(), elf_slurp_reloc_table_from_section(), elf_swap_reloc_in(), elf_swap_reloc_out(), and elf_write_relocs().
| #define Elf_External_Rela NAME(Elf,External_Rela) |
Definition at line 84 of file elfcode.h.
Referenced by elf_bfd_final_link(), elf_link_adjust_relocs(), elf_link_input_bfd(), elf_link_sort_relocs(), elf_reloc_link_order(), elf_slurp_reloc_table_from_section(), elf_swap_reloca_in(), elf_swap_reloca_out(), and elf_write_relocs().
| #define Elf_External_Shdr NAME(Elf,External_Shdr) |
Definition at line 81 of file elfcode.h.
Referenced by elf_object_p(), and elf_write_shdrs_and_ehdr().
| #define Elf_External_Sym NAME(Elf,External_Sym) |
Definition at line 80 of file elfcode.h.
Referenced by elf_bfd_discard_info(), elf_bfd_final_link(), elf_gc_common_finalize_got_offsets(), elf_gc_mark(), elf_gc_record_vtinherit(), elf_link_add_object_symbols(), elf_link_check_versioned_symbol(), elf_link_flush_output_syms(), elf_link_input_bfd(), elf_link_output_extsym(), elf_link_output_sym(), elf_slurp_symbol_table(), elf_swap_symbol_in(), and elf_swap_symbol_out().
| #define elf_find_nearest_line NAME(bfd_elf,find_nearest_line) |
| #define elf_get_dynamic_symtab_upper_bound NAME(bfd_elf,get_dynamic_symtab_upper_bound) |
| #define elf_get_reloc_upper_bound NAME(bfd_elf,get_reloc_upper_bound) |
| #define elf_get_symtab_upper_bound NAME(bfd_elf,get_symtab_upper_bound) |
| #define elf_get_synthetic_symtab NAME(bfd_elf,get_synthetic_symtab) |
| #define elf_make_empty_symbol NAME(bfd_elf,make_empty_symbol) |
| #define elf_no_info_to_howto NAME(bfd_elf,no_info_to_howto) |
| #define elf_no_info_to_howto_rel NAME(bfd_elf,no_info_to_howto_rel) |
| #define elf_set_section_contents NAME(bfd_elf,set_section_contents) |
| #define elf_slurp_reloc_table NAME(bfd_elf,slurp_reloc_table) |
| #define elf_slurp_symbol_table NAME(bfd_elf,slurp_symbol_table) |
| #define elf_swap_dyn_in NAME(bfd_elf,swap_dyn_in) |
Definition at line 104 of file elfcode.h.
Referenced by elf_bfd_final_link(), and elf_link_add_object_symbols().
| #define elf_swap_dyn_out NAME(bfd_elf,swap_dyn_out) |
Definition at line 105 of file elfcode.h.
Referenced by elf_add_dynamic_entry(), and elf_bfd_final_link().
| #define elf_swap_phdr_in NAME(bfd_elf,swap_phdr_in) |
| #define elf_swap_phdr_out NAME(bfd_elf,swap_phdr_out) |
| #define elf_swap_reloc_in NAME(bfd_elf,swap_reloc_in) |
| #define elf_swap_reloc_out NAME(bfd_elf,swap_reloc_out) |
| #define elf_swap_reloca_in NAME(bfd_elf,swap_reloca_in) |
| #define elf_swap_reloca_out NAME(bfd_elf,swap_reloca_out) |
| #define elf_swap_symbol_out NAME(bfd_elf,swap_symbol_out) |
Definition at line 101 of file elfcode.h.
Referenced by elf_bfd_final_link(), elf_link_output_extsym(), and elf_link_output_sym().
| #define elf_write_shdrs_and_ehdr NAME(bfd_elf,write_shdrs_and_ehdr) |
| static bfd_boolean elf_file_p | ( | Elf_External_Ehdr * | x_ehdrp | ) | [inline, static] |
| const bfd_target* elf_object_p | ( | bfd * | abfd | ) |
Definition at line 474 of file elfcode.h.
References _bfd_elf_setup_group_pointers(), bfd_target::_bfd_set_format, elf_backend_data::arch, bfd_alloc(), bfd_bread(), bfd_default_set_arch_mach(), bfd_elf_get_str_section(), bfd_error_system_call, bfd_error_wrong_format, bfd_get_error(), bfd_header_big_endian, bfd_header_little_endian, bfd_object, bfd_preserve_finish(), bfd_preserve_restore(), bfd_preserve_save(), bfd_section_from_elf_index(), bfd_section_from_shdr(), bfd_seek(), bfd_set_error(), bfd_set_start_address(), bfd_target_elf_flavour, bfd_target_vector, D_PAGED, DYNAMIC, elf_internal_ehdr::e_entry, elf_internal_ehdr::e_machine, elf_internal_ehdr::e_phnum, elf_internal_ehdr::e_phoff, elf_internal_ehdr::e_shentsize, elf_internal_ehdr::e_shnum, elf_internal_ehdr::e_shoff, elf_internal_ehdr::e_shstrndx, elf_internal_ehdr::e_type, EI_CLASS, EI_DATA, EI_VERSION, elf_backend_data::elf_backend_object_p, elf_elfheader, elf_elfsections, Elf_External_Ehdr, Elf_External_Phdr, Elf_External_Shdr, elf_file_p(), elf_backend_data::elf_machine_alt1, elf_backend_data::elf_machine_alt2, elf_backend_data::elf_machine_code, elf_numsections, elf_section_data, elf_swap_ehdr_in(), elf_swap_phdr_in, elf_swap_shdr_in(), elf_tdata, ELFCLASS, ELFDATA2LSB, ELFDATA2MSB, ELFDATANONE, EM_NONE, ET_CORE, ET_DYN, ET_EXEC, ET_REL, EV_CURRENT, EXEC_P, bfd_section::flags, bfd::flags, get_elf_backend_data, i, if(), bfd_preserve::marker, memcpy, elf_backend_data::minpagesize, NULL, s, SEC_DEBUGGING, bfd::sections, SEEK_SET, elf_internal_shdr::sh_link, elf_internal_shdr::sh_size, SHF_ALLOC, SHF_INFO_LINK, SHN_HIRESERVE, SHN_LORESERVE, SHN_UNDEF, SHN_XINDEX, SHT_NOBITS, SHT_REL, SHT_RELA, where, and bfd::xvec.
| bfd_boolean elf_slurp_reloc_table | ( | bfd * | abfd, | |
| asection * | asect, | |||
| asymbol ** | symbols, | |||
| bfd_boolean | dynamic | |||
| ) |
Definition at line 1379 of file elfcode.h.
References bfd_alloc(), BFD_ASSERT, d, elf_section_data, elf_slurp_reloc_table_from_section(), FALSE, bfd_section::flags, NULL, NUM_SHDR_ENTRIES, bfd_section::rel_filepos, bfd_elf_section_data::rel_hdr, bfd_elf_section_data::rel_hdr2, bfd_section::reloc_count, bfd_section::relocation, SEC_RELOC, elf_internal_shdr::sh_offset, bfd_section::size, bfd_elf_section_data::this_hdr, and TRUE.
| static bfd_boolean elf_slurp_reloc_table_from_section | ( | bfd * | abfd, | |
| asection * | asect, | |||
| Elf_Internal_Shdr * | rel_hdr, | |||
| bfd_size_type | reloc_count, | |||
| arelent * | relents, | |||
| asymbol ** | symbols, | |||
| bfd_boolean | dynamic | |||
| ) | [static] |
Definition at line 1280 of file elfcode.h.
References _, bfd_abs_section, bfd_abs_section_ptr, BFD_ASSERT, bfd_bread(), bfd_get_dynamic_symcount, bfd_get_symcount, bfd_malloc(), bfd_seek(), DYNAMIC, Elf_External_Rel, Elf_External_Rela, elf_backend_data::elf_info_to_howto, elf_backend_data::elf_info_to_howto_rel, ELF_R_SYM, elf_swap_reloc_in, elf_swap_reloca_in, EXEC_P, FALSE, bfd::filename, bfd::flags, free(), get_elf_backend_data, i, bfd_section::name, NULL, elf_internal_rela::r_addend, elf_internal_rela::r_info, elf_internal_rela::r_offset, s, SEEK_SET, elf_internal_shdr::sh_entsize, elf_internal_shdr::sh_offset, elf_internal_shdr::sh_size, bfd_section::symbol_ptr_ptr, symcount, TRUE, and bfd_section::vma.
Referenced by elf_slurp_reloc_table().
Definition at line 1045 of file elfcode.h.
References _, _bfd_elf_slurp_version_tables(), _bfd_elf_swap_versym_in(), bfd_abs_section_ptr, bfd_bread(), bfd_com_section_ptr, bfd_elf_get_elf_syms(), bfd_elf_sym_name(), bfd_malloc(), bfd_section_from_elf_index(), bfd_seek(), bfd_und_section_ptr, bfd_zalloc(), BSF_DEBUGGING, BSF_DYNAMIC, BSF_FILE, BSF_FUNCTION, BSF_GLOBAL, BSF_LOCAL, BSF_OBJECT, BSF_SECTION_SYM, BSF_THREAD_LOCAL, BSF_WEAK, elf_internal_shdr::contents, DYNAMIC, elf_backend_data::elf_backend_symbol_processing, elf_backend_data::elf_backend_symbol_table_processing, elf_dynversym, Elf_External_Sym, ELF_ST_BIND, ELF_ST_TYPE, elf_tdata, EXEC_P, FALSE, bfd::filename, bfd_symbol::flags, bfd::flags, free(), get_elf_backend_data, elf_symbol_type::internal_elf_sym, long, memcpy, bfd_symbol::name, NULL, bfd_symbol::section, SEEK_SET, elf_internal_shdr::sh_offset, elf_internal_shdr::sh_size, SHN_ABS, SHN_COMMON, SHN_HIRESERVE, SHN_LORESERVE, SHN_UNDEF, elf_internal_sym::st_info, elf_internal_sym::st_shndx, elf_internal_sym::st_size, elf_internal_sym::st_value, STB_GLOBAL, STB_LOCAL, STB_WEAK, STT_FILE, STT_FUNC, STT_OBJECT, STT_SECTION, STT_TLS, sym, elf_symbol_type::symbol, symcount, bfd_symbol::the_bfd, bfd_symbol::value, elf_symbol_type::version, bfd_section::vma, and elf_internal_versym::vs_vers.
| void elf_swap_dyn_in | ( | bfd * | abfd, | |
| const void * | p, | |||
| Elf_Internal_Dyn * | dst | |||
| ) |
Definition at line 428 of file elfcode.h.
References elf_internal_dyn::d_tag, elf_internal_dyn::d_un, elf_internal_dyn::d_val, Elf_External_Dyn, and src.
| void elf_swap_dyn_out | ( | bfd * | abfd, | |
| const Elf_Internal_Dyn * | src, | |||
| void * | p | |||
| ) |
Definition at line 439 of file elfcode.h.
References elf_internal_dyn::d_tag, elf_internal_dyn::d_un, elf_internal_dyn::d_val, dst, and Elf_External_Dyn.
| static void elf_swap_ehdr_in | ( | bfd * | abfd, | |
| const Elf_External_Ehdr * | src, | |||
| Elf_Internal_Ehdr * | dst | |||
| ) | [static] |
Definition at line 230 of file elfcode.h.
References elf_internal_ehdr::e_ehsize, elf_internal_ehdr::e_entry, elf_internal_ehdr::e_flags, elf_internal_ehdr::e_ident, elf_internal_ehdr::e_machine, elf_internal_ehdr::e_phentsize, elf_internal_ehdr::e_phnum, elf_internal_ehdr::e_phoff, elf_internal_ehdr::e_shentsize, elf_internal_ehdr::e_shnum, elf_internal_ehdr::e_shoff, elf_internal_ehdr::e_shstrndx, elf_internal_ehdr::e_type, elf_internal_ehdr::e_version, EI_NIDENT, get_elf_backend_data, H_GET_16, H_GET_32, and memcpy.
Referenced by elf_core_file_p(), and elf_object_p().
| static void elf_swap_ehdr_out | ( | bfd * | abfd, | |
| const Elf_Internal_Ehdr * | src, | |||
| Elf_External_Ehdr * | dst | |||
| ) | [static] |
Definition at line 258 of file elfcode.h.
References elf_internal_ehdr::e_ehsize, elf_internal_ehdr::e_entry, elf_internal_ehdr::e_flags, elf_internal_ehdr::e_ident, elf_internal_ehdr::e_machine, elf_internal_ehdr::e_phentsize, elf_internal_ehdr::e_phnum, elf_internal_ehdr::e_phoff, elf_internal_ehdr::e_shentsize, elf_internal_ehdr::e_shnum, elf_internal_ehdr::e_shoff, elf_internal_ehdr::e_shstrndx, elf_internal_ehdr::e_type, elf_internal_ehdr::e_version, EI_NIDENT, get_elf_backend_data, H_PUT_16, H_PUT_32, memcpy, SHN_LORESERVE, SHN_UNDEF, SHN_XINDEX, and tmp.
Referenced by elf_write_shdrs_and_ehdr().
| void elf_swap_phdr_in | ( | bfd * | abfd, | |
| const Elf_External_Phdr * | src, | |||
| Elf_Internal_Phdr * | dst | |||
| ) |
Definition at line 342 of file elfcode.h.
References get_elf_backend_data, H_GET_32, elf_internal_phdr::p_align, elf_internal_phdr::p_filesz, elf_internal_phdr::p_flags, elf_internal_phdr::p_memsz, elf_internal_phdr::p_offset, elf_internal_phdr::p_paddr, elf_internal_phdr::p_type, and elf_internal_phdr::p_vaddr.
| void elf_swap_phdr_out | ( | bfd * | abfd, | |
| const Elf_Internal_Phdr * | src, | |||
| Elf_External_Phdr * | dst | |||
| ) |
Definition at line 367 of file elfcode.h.
References H_PUT_32, elf_internal_phdr::p_align, elf_internal_phdr::p_filesz, elf_internal_phdr::p_flags, elf_internal_phdr::p_memsz, elf_internal_phdr::p_offset, elf_internal_phdr::p_paddr, elf_internal_phdr::p_type, and elf_internal_phdr::p_vaddr.
| void elf_swap_reloc_in | ( | bfd * | abfd, | |
| const bfd_byte * | s, | |||
| Elf_Internal_Rela * | dst | |||
| ) |
Definition at line 384 of file elfcode.h.
References Elf_External_Rel, elf_internal_rela::r_addend, elf_internal_rela::r_info, elf_internal_rela::r_offset, and src.
| void elf_swap_reloc_out | ( | bfd * | abfd, | |
| const Elf_Internal_Rela * | src, | |||
| bfd_byte * | d | |||
| ) |
Definition at line 407 of file elfcode.h.
References dst, Elf_External_Rel, elf_internal_rela::r_info, and elf_internal_rela::r_offset.
| void elf_swap_reloca_in | ( | bfd * | abfd, | |
| const bfd_byte * | s, | |||
| Elf_Internal_Rela * | dst | |||
| ) |
Definition at line 395 of file elfcode.h.
References Elf_External_Rela, elf_internal_rela::r_addend, elf_internal_rela::r_info, elf_internal_rela::r_offset, and src.
| void elf_swap_reloca_out | ( | bfd * | abfd, | |
| const Elf_Internal_Rela * | src, | |||
| bfd_byte * | d | |||
| ) |
Definition at line 417 of file elfcode.h.
References dst, Elf_External_Rela, elf_internal_rela::r_addend, elf_internal_rela::r_info, and elf_internal_rela::r_offset.
| static void elf_swap_shdr_in | ( | bfd * | abfd, | |
| const Elf_External_Shdr * | src, | |||
| Elf_Internal_Shdr * | dst | |||
| ) | [static] |
Definition at line 294 of file elfcode.h.
References elf_internal_shdr::bfd_section, elf_internal_shdr::contents, get_elf_backend_data, H_GET_32, NULL, elf_internal_shdr::sh_addr, elf_internal_shdr::sh_addralign, elf_internal_shdr::sh_entsize, elf_internal_shdr::sh_flags, elf_internal_shdr::sh_info, elf_internal_shdr::sh_link, elf_internal_shdr::sh_name, elf_internal_shdr::sh_offset, elf_internal_shdr::sh_size, and elf_internal_shdr::sh_type.
Referenced by elf_object_p().
| static void elf_swap_shdr_out | ( | bfd * | abfd, | |
| const Elf_Internal_Shdr * | src, | |||
| Elf_External_Shdr * | dst | |||
| ) | [static] |
Definition at line 321 of file elfcode.h.
References H_PUT_32, elf_internal_shdr::sh_addr, elf_internal_shdr::sh_addralign, elf_internal_shdr::sh_entsize, elf_internal_shdr::sh_flags, elf_internal_shdr::sh_info, elf_internal_shdr::sh_link, elf_internal_shdr::sh_name, elf_internal_shdr::sh_offset, elf_internal_shdr::sh_size, and elf_internal_shdr::sh_type.
Referenced by elf_write_shdrs_and_ehdr().
| void elf_swap_symbol_in | ( | bfd * | abfd, | |
| const void * | psrc, | |||
| const void * | pshn, | |||
| Elf_Internal_Sym * | dst | |||
| ) |
Definition at line 173 of file elfcode.h.
References abort, Elf_External_Sym, Elf_External_Sym_Shndx::est_shndx, get_elf_backend_data, H_GET_16, H_GET_32, H_GET_8, NULL, SHN_XINDEX, src, elf_internal_sym::st_info, elf_internal_sym::st_name, elf_internal_sym::st_other, elf_internal_sym::st_shndx, elf_internal_sym::st_size, and elf_internal_sym::st_value.
| void elf_swap_symbol_out | ( | bfd * | abfd, | |
| const Elf_Internal_Sym * | src, | |||
| void * | cdst, | |||
| void * | shndx | |||
| ) |
Definition at line 203 of file elfcode.h.
References abort, dst, Elf_External_Sym, H_PUT_16, H_PUT_32, H_PUT_8, NULL, SHN_HIRESERVE, SHN_XINDEX, elf_internal_sym::st_info, elf_internal_sym::st_name, elf_internal_sym::st_other, elf_internal_sym::st_shndx, elf_internal_sym::st_size, elf_internal_sym::st_value, and tmp.
| int elf_write_out_phdrs | ( | bfd * | abfd, | |
| const Elf_Internal_Phdr * | phdr, | |||
| unsigned int | count | |||
| ) |
Definition at line 969 of file elfcode.h.
References bfd_bwrite(), Elf_External_Phdr, and elf_swap_phdr_out.
Definition at line 862 of file elfcode.h.
References _bfd_elf_symbol_from_bfd_symbol(), _bfd_elf_validate_reloc(), abort, reloc_cache_entry::addend, reloc_cache_entry::address, bfd_alloc(), bfd_is_abs_section, elf_internal_shdr::contents, DYNAMIC, Elf_External_Rel, Elf_External_Rela, ELF_R_INFO, elf_section_data, elf_swap_reloc_out, elf_swap_reloca_out, EXEC_P, bfd_section::flags, bfd::flags, reloc_cache_entry::howto, idx, n, NULL, bfd_section::orelocation, ptr, elf_internal_rela::r_addend, elf_internal_rela::r_info, elf_internal_rela::r_offset, bfd_section::reloc_count, SEC_RELOC, bfd_symbol::section, elf_internal_shdr::sh_entsize, elf_internal_shdr::sh_size, elf_internal_shdr::sh_type, SHT_REL, SHT_RELA, STN_UNDEF, sym, reloc_cache_entry::sym_ptr_ptr, TRUE, reloc_howto_struct::type, bfd_symbol::value, bfd_section::vma, void, and bfd::xvec.
| bfd_boolean elf_write_shdrs_and_ehdr | ( | bfd * | abfd | ) |
Definition at line 988 of file elfcode.h.
References bfd_alloc(), bfd_bwrite(), bfd_seek(), count, elf_internal_ehdr::e_shnum, elf_internal_ehdr::e_shoff, elf_internal_ehdr::e_shstrndx, elf_elfheader, elf_elfsections, Elf_External_Ehdr, Elf_External_Shdr, elf_swap_ehdr_out(), elf_swap_shdr_out(), FALSE, SEEK_SET, elf_internal_shdr::sh_link, elf_internal_shdr::sh_size, SHN_HIRESERVE, SHN_LORESERVE, and TRUE.
| struct elf_size_info NAME | ( | _bfd_elf | , | |
| size_info | ||||
| ) | [read] |
1.5.6