/toolchain/binutils/binutils-2.25/gold/ |
defstd.cc | 44 elfcpp::STT_NOTYPE, // type 45 elfcpp::STB_GLOBAL, // binding 46 elfcpp::STV_HIDDEN, // visibility 56 elfcpp::STT_NOTYPE, // type 57 elfcpp::STB_GLOBAL, // binding 58 elfcpp::STV_HIDDEN, // visibility 68 elfcpp::STT_NOTYPE, // type 69 elfcpp::STB_GLOBAL, // binding 70 elfcpp::STV_HIDDEN, // visibility 80 elfcpp::STT_NOTYPE, // typ [all...] |
sparc.cc | 29 #include "elfcpp.h" 57 typedef Output_data_reloc<elfcpp::SHT_RELA, true, size, big_endian> Reloc_section; 62 copy_relocs_(elfcpp::R_SPARC_COPY), 115 typename elfcpp::Elf_types<size>::Elf_Addr view_address, 141 typename elfcpp::Elf_types<size>::Elf_Off 145 typename elfcpp::Elf_types<size>::Elf_Addr view_address, 155 if (sym->type() == elfcpp::STT_SPARC_REGISTER) 217 const elfcpp::Ehdr<size, big_endian>& ehdr); 240 const elfcpp::Rela<size, big_endian>& reloc, unsigned int r_type, 241 const elfcpp::Sym<size, big_endian>& lsym [all...] |
reloc-types.h | 29 #include "elfcpp.h" 35 // SH_TYPE, which is either elfcpp::SHT_REL or elfcpp::SHT_RELA. 41 struct Reloc_types<elfcpp::SHT_REL, size, big_endian> 43 typedef typename elfcpp::Rel<size, big_endian> Reloc; 44 typedef typename elfcpp::Rel_write<size, big_endian> Reloc_write; 45 static const int reloc_size = elfcpp::Elf_sizes<size>::rel_size; 47 static inline typename elfcpp::Elf_types<size>::Elf_Swxword 51 static inline typename elfcpp::Elf_types<size>::Elf_Swxword 57 typename elfcpp::Elf_types<size>::Elf_Swxword [all...] |
tilegx.cc | 27 #include "elfcpp.h" 68 typedef Output_data_reloc<elfcpp::SHT_RELA, true,size, big_endian> 171 typename elfcpp::Elf_types<size>::Elf_Addr, 173 typename elfcpp::Elf_types<size>::Elf_Addr, 234 typedef Output_data_reloc<elfcpp::SHT_RELA, true, size, big_endian> 241 rela_irelative_(NULL), copy_relocs_(elfcpp::R_TILEGX_COPY), 292 typename elfcpp::Elf_types<size>::Elf_Addr view_address, 319 typename elfcpp::Elf_types<size>::Elf_Off offset_in_output_section, 322 typename elfcpp::Elf_types<size>::Elf_Addr view_address, 426 typename elfcpp::Elf_types<size>::Elf_Addr r_offset [all...] |
binary.cc | 29 #include "elfcpp.h" 49 Binary_to_elf::Binary_to_elf(elfcpp::EM machine, int size, bool big_endian, 181 const int sym_size = elfcpp::Elf_sizes<size>::sym_size; 183 size_t output_size = (elfcpp::Elf_sizes<size>::ehdr_size 184 + 5 * elfcpp::Elf_sizes<size>::shdr_size); 202 this->write_section_header<size, big_endian>("", &shstrtab, elfcpp::SHT_NULL, 209 elfcpp::SHT_PROGBITS, 210 (elfcpp::SHF_ALLOC 211 | elfcpp::SHF_WRITE), 216 elfcpp::SHT_SYMTAB [all...] |
i386.cc | 27 #include "elfcpp.h" 84 typedef Output_data_reloc<elfcpp::SHT_REL, true, 32, false> Reloc_section; 150 elfcpp::Elf_types<32>::Elf_Addr got_address) 161 elfcpp::Elf_types<32>::Elf_Addr got_address, 175 elfcpp::Elf_types<32>::Elf_Addr got_address) = 0; 179 elfcpp::Elf_types<32>::Elf_Addr got_address, 301 elfcpp::Elf_types<32>::Elf_Addr got_address); 305 elfcpp::Elf_types<32>::Elf_Addr got_address, 331 do_fill_first_plt_entry(unsigned char* pov, elfcpp::Elf_types<32>::Elf_Addr); 335 elfcpp::Elf_types<32>::Elf_Addr [all...] |
powerpc.cc | 28 #include "elfcpp.h" 81 typedef typename elfcpp::Elf_types<size>::Elf_Addr Address; 86 const typename elfcpp::Ehdr<size, big_endian>& ehdr) 217 typename elfcpp::Elf_types<size>::Elf_Addr dst_off) 226 add_gc_mark(typename elfcpp::Elf_types<size>::Elf_Addr dst_off) 302 { return this->e_flags_ & elfcpp::EF_PPC64_ABI; } 310 { return elfcpp::ppc64_decode_local_entry(sym->nonvis() >> 3); } 314 { return elfcpp::ppc64_decode_local_entry(this->st_other_[symndx] >> 5); } 371 elfcpp::Elf_Word e_flags_; 381 typedef typename elfcpp::Elf_types<size>::Elf_Addr Address [all...] |
x86_64.cc | 27 #include "elfcpp.h" 91 typedef Output_data_reloc<elfcpp::SHT_RELA, true, size, false> Reloc_section; 222 typename elfcpp::Elf_types<size>::Elf_Addr got_address, 223 typename elfcpp::Elf_types<size>::Elf_Addr plt_address) 230 typename elfcpp::Elf_types<size>::Elf_Addr got_address, 231 typename elfcpp::Elf_types<size>::Elf_Addr plt_address, 243 typename elfcpp::Elf_types<size>::Elf_Addr got_address, 244 typename elfcpp::Elf_types<size>::Elf_Addr plt_address, 245 typename elfcpp::Elf_types<size>::Elf_Addr got_base, 258 typename elfcpp::Elf_types<size>::Elf_Addr got_addr [all...] |
arm.cc | 37 #include "elfcpp.h" 97 typedef elfcpp::Elf_types<32>::Elf_Addr Arm_address; 159 { return Insn_template(data, THUMB16_TYPE, elfcpp::R_ARM_NONE, 0); } 165 { return Insn_template(data, THUMB16_SPECIAL_TYPE, elfcpp::R_ARM_NONE, 1); } 169 { return Insn_template(data, THUMB32_TYPE, elfcpp::R_ARM_NONE, 0); } 174 return Insn_template(data, THUMB32_TYPE, elfcpp::R_ARM_THM_JUMP24, 180 { return Insn_template(data, ARM_TYPE, elfcpp::R_ARM_NONE, 0); } 184 { return Insn_template(data, ARM_TYPE, elfcpp::R_ARM_JUMP24, reloc_addend); } 795 elfcpp::Swap<32, big_endian>::writeval(view, 799 elfcpp::Swap<32, big_endian>::writeval(view [all...] |
reloc.h | 31 #include "elfcpp.h" 328 typename elfcpp::Swap<valsize, big_endian>::Valtype value) 330 typedef typename elfcpp::Swap<valsize, big_endian>::Valtype Valtype; 332 Valtype x = elfcpp::Swap<valsize, big_endian>::readval(wv); 333 elfcpp::Swap<valsize, big_endian>::writeval(wv, x + value); 340 typename elfcpp::Swap<valsize, big_endian>::Valtype value) 342 typedef typename elfcpp::Swap_unaligned<valsize, big_endian>::Valtype 344 Valtype x = elfcpp::Swap_unaligned<valsize, big_endian>::readval(view); 345 elfcpp::Swap_unaligned<valsize, big_endian>::writeval(view, x + value); 357 typedef typename elfcpp::Swap<valsize, big_endian>::Valtype Valtype [all...] |
mips.cc | 32 #include "elfcpp.h" 153 case elfcpp::R_MIPS_26: 154 case elfcpp::R_MIPS_PC16: 155 case elfcpp::R_MICROMIPS_26_S1: 156 case elfcpp::R_MICROMIPS_PC7_S1: 157 case elfcpp::R_MICROMIPS_PC10_S1: 158 case elfcpp::R_MICROMIPS_PC16_S1: 159 case elfcpp::R_MICROMIPS_PC23_S2: 162 case elfcpp::R_MIPS16_26: 199 return (r_type == elfcpp::R_MIPS_HI1 [all...] |
reduced_debug_output.cc | 53 elfcpp::DW_FORM form = 54 static_cast<elfcpp::DW_FORM>(read_unsigned_LEB_128(abbrev, 63 case elfcpp::DW_FORM_flag_present: 65 case elfcpp::DW_FORM_strp: 66 case elfcpp::DW_FORM_sec_offset: 69 case elfcpp::DW_FORM_addr: 70 case elfcpp::DW_FORM_ref_addr: 73 case elfcpp::DW_FORM_block1: 77 case elfcpp::DW_FORM_block2: 84 case elfcpp::DW_FORM_block4 [all...] |
int_encoding.h | 29 #include "elfcpp.h" 102 typename elfcpp::Valtype_base<valsize>::Valtype value) 106 elfcpp::Swap_unaligned<valsize, true>::writeval(buffer, value); 108 elfcpp::Swap_unaligned<valsize, false>::writeval(buffer, value); 115 typename elfcpp::Valtype_base<valsize>::Valtype 118 typename elfcpp::Valtype_base<valsize>::Valtype return_value; 120 return_value = elfcpp::Swap_unaligned<valsize, true>::readval(source); 122 return_value = elfcpp::Swap_unaligned<valsize, false>::readval(source); 129 typename elfcpp::Valtype_base<valsize>::Valtype 132 typename elfcpp::Valtype_base<valsize>::Valtype return_value [all...] |
layout.cc | 654 const elfcpp::Shdr<size, big_endian>& shdr) 657 && (shdr.get_sh_flags() & elfcpp::SHF_EXCLUDE)) 660 elfcpp::Elf_Word sh_type = shdr.get_sh_type(); 662 if ((sh_type >= elfcpp::SHT_LOOS && sh_type <= elfcpp::SHT_HIOS) 663 || (sh_type >= elfcpp::SHT_LOPROC && sh_type <= elfcpp::SHT_HIPROC)) 668 case elfcpp::SHT_NULL: 669 case elfcpp::SHT_SYMTAB: 670 case elfcpp::SHT_DYNSYM [all...] |
target.cc | 24 #include "elfcpp.h" 72 const elfcpp::Ehdr<size, big_endian>& ehdr) 77 if (et == elfcpp::ET_REL 78 || (et == elfcpp::ET_EXEC && input_file->just_symbols())) 85 else if (et == elfcpp::ET_DYN) 107 off_t offset, const elfcpp::Ehdr<32, false>& ehdr) 117 off_t offset, const elfcpp::Ehdr<32, true>& ehdr) 127 off_t offset, const elfcpp::Ehdr<64, false>& ehdr) 137 off_t offset, const elfcpp::Ehdr<64, true>& ehdr) 145 Target::do_make_output_section(const char* name, elfcpp::Elf_Word type [all...] |
aarch64.cc | 29 #include "elfcpp.h" 78 typedef typename elfcpp::Swap<32, big_endian>::Valtype Insntype; 429 typedef typename elfcpp::Elf_types<size>::Elf_Addr Valtype; 471 typedef typename elfcpp::Elf_types<size>::Elf_Addr AArch64_address; 501 if ((shndx == elfcpp::SHN_UNDEF) 503 && shndx != elfcpp::SHN_UNDEF 546 typedef typename elfcpp::Swap<size, big_endian>::Valtype Valtype; 551 case elfcpp::R_AARCH64_TLS_DTPREL64: 554 case elfcpp::R_AARCH64_TLS_TPREL64: 560 elfcpp::Swap<size, big_endian>::writeval(wv, x) [all...] |
symtab.cc | 55 elfcpp::STT type, elfcpp::STB binding, 56 elfcpp::STV visibility, unsigned char nonvis) 116 const elfcpp::Sym<size, big_endian>& sym, 135 Output_data* od, elfcpp::STT type, 136 elfcpp::STB binding, elfcpp::STV visibility, 154 Output_segment* os, elfcpp::STT type, 155 elfcpp::STB binding, elfcpp::STV visibility [all...] |
copy-relocs.cc | 78 if ((object->section_flags(shndx) & elfcpp::SHF_WRITE) == 0) 116 typename elfcpp::Elf_types<size>::Elf_WXword symsize = sym->symsize(); 128 typename elfcpp::Elf_types<size>::Elf_WXword addralign; 151 elfcpp::SHT_NOBITS, 152 elfcpp::SHF_ALLOC | elfcpp::SHF_WRITE, 181 unsigned int reloc_type = elfcpp::elf_r_type<size>(rel.get_r_info()); 182 typename elfcpp::Elf_types<size>::Elf_Addr addend = 220 class Copy_relocs<elfcpp::SHT_REL, 32, false>; 223 class Copy_relocs<elfcpp::SHT_RELA, 32, false> [all...] |
target-reloc.h | 26 #include "elfcpp.h" 60 const int sym_size = elfcpp::Elf_sizes<size>::sym_size; 72 typename elfcpp::Elf_types<size>::Elf_WXword r_info = reloc.get_r_info(); 73 unsigned int r_sym = elfcpp::elf_r_sym<size>(r_info); 74 unsigned int r_type = elfcpp::elf_r_type<size>(r_info); 79 typename elfcpp::Sym<size, big_endian> lsym(plocal_syms 98 && shndx != elfcpp::SHN_UNDEF 155 case elfcpp::STV_INTERNAL: 158 case elfcpp::STV_HIDDEN: 161 case elfcpp::STV_PROTECTED [all...] |
gdb-index.cc | 357 case elfcpp::DW_TAG_compile_unit: 358 case elfcpp::DW_TAG_type_unit: 359 this->cu_language_ = die->int_attribute(elfcpp::DW_AT_language); 360 if (die->tag() == elfcpp::DW_TAG_compile_unit) 369 if (this->cu_language_ == elfcpp::DW_LANG_Ada83 370 || this->cu_language_ == elfcpp::DW_LANG_Fortran77 371 || this->cu_language_ == elfcpp::DW_LANG_Fortran90 372 || this->cu_language_ == elfcpp::DW_LANG_Java 373 || this->cu_language_ == elfcpp::DW_LANG_Ada95 374 || this->cu_language_ == elfcpp::DW_LANG_Fortran9 [all...] |
dwarf_reader.cc | 61 const int symsize = elfcpp::Elf_sizes<size>::sym_size; 63 elfcpp::Sym<size, big_endian> elfsym(this->symtab_ + symndx * symsize); 81 typename elfcpp::Elf_types<size>::Elf_Addr value; 87 if (this->reloc_type_ == elfcpp::SHT_RELA) 260 bool has_children = *this->buffer_pos_ == elfcpp::DW_CHILDREN_yes; 283 if (attr == elfcpp::DW_AT_sibling) 367 if ((reloc_type == elfcpp::SHT_REL 368 || reloc_type == elfcpp::SHT_RELA) 474 if (this->reloc_type_ == elfcpp::SHT_REL) 538 if ((reloc_type == elfcpp::SHT_RE [all...] |
symtab.h | 33 #include "elfcpp.h" 209 elfcpp::STB 214 elfcpp::STT 220 set_type(elfcpp::STT type) 227 return (this->type_ == elfcpp::STT_FUNC 228 || this->type_ == elfcpp::STT_GNU_IFUNC); 232 elfcpp::STV 238 set_visibility(elfcpp::STV visibility) 243 override_visibility(elfcpp::STV); 248 set_undef_binding(elfcpp::STB bind [all...] |
/toolchain/binutils/binutils-2.25/gold/testsuite/ |
ehdr_start_test.cc | 32 #include "elfcpp.h" 59 assert(__ehdr_start[elfcpp::EI_MAG0] == elfcpp::ELFMAG0 60 && __ehdr_start[elfcpp::EI_MAG1] == elfcpp::ELFMAG1 61 && __ehdr_start[elfcpp::EI_MAG2] == elfcpp::ELFMAG2 62 && __ehdr_start[elfcpp::EI_MAG3] == elfcpp::ELFMAG3);
|
/toolchain/binutils/binutils-2.25/elfcpp/ |
README | 0 elfcpp is a C++ library for reading and writing ELF information. This 5 elfcpp does not do file I/O. It deals only with offsets and memory
|
ChangeLog | 29 * elfcpp.h (PT_MIPS_ABIFLAGS): New program header type. 34 * elfcpp.h (EM_AARCH64, SHT_AARCH64_ATTRIBUTES, PT_AARCH64_ARCHEXT, 39 * elfcpp.h: Remove openrisc and or32 support. 68 * elfcpp.h (SHT_MIPS_OPTIONS): New enum constant. 116 * elfcpp.h: add EM_TILEGX. 161 * elfcpp.h (SHT_MIPS_REGINFO): New enums for processor-specific flags. 182 * elfcpp.h (STT_GNU_IFUNC): Add comment. 188 * elfcpp.h (ELFOSABI): Add ELFOSABI_GNU with value of ELFOSABI_LINUX, 197 * elfcpp.h (enum SHT): Add SHT_GNU_INCREMENTAL_GOT_PLT. 201 * elfcpp.h (enum SHT): Add SHT_GNU_INCREMENTAL_SYMTAB [all...] |