Searched refs:shdr (Results 1 – 10 of 10) sorted by relevance
| /tools/perf/util/ |
| A D | genelf.c | 81 Elf_Shdr *shdr; in jit_add_eh_frame_info() local 107 if (!shdr) { in jit_add_eh_frame_info() 141 if (!shdr) { in jit_add_eh_frame_info() 146 shdr->sh_name = 90; in jit_add_eh_frame_info() 173 Elf_Shdr *shdr; in jit_write_elf() local 243 if (!shdr) { in jit_write_elf() 248 shdr->sh_name = 1; in jit_write_elf() 290 if (!shdr) { in jit_write_elf() 326 if (!shdr) { in jit_write_elf() 369 if (!shdr) { in jit_write_elf() [all …]
|
| A D | genelf_debug.c | 499 Elf_Shdr *shdr; in jit_add_debug_info() local 532 shdr = elf_getshdr(scn); in jit_add_debug_info() 533 if (!shdr) { in jit_add_debug_info() 541 shdr->sh_flags = 0; in jit_add_debug_info() 542 shdr->sh_entsize = 0; in jit_add_debug_info() 567 if (!shdr) { in jit_add_debug_info() 575 shdr->sh_flags = 0; in jit_add_debug_info() 576 shdr->sh_entsize = 0; in jit_add_debug_info() 601 if (!shdr) { in jit_add_debug_info() 609 shdr->sh_flags = 0; in jit_add_debug_info() [all …]
|
| A D | symbol-elf.c | 181 GElf_Shdr shdr; in elf_addr_to_index() local 188 (addr < (shdr.sh_addr + shdr.sh_size))) in elf_addr_to_index() 228 GElf_Shdr shdr; in filename__has_section() local 485 GElf_Shdr shdr; in get_rela_dyn_info() local 497 if (!scn || !gelf_getshdr(scn, &shdr) || !shdr.sh_link) in get_rela_dyn_info() 594 for (i = 0; i < shdr.sh_size; i += shdr.sh_entsize) { in dso__synthesize_plt_got_symbols() 1378 offs = shdr.sh_offset + shdr.sh_size; in max_text_section() 1432 sym->st_value -= shdr->sh_addr - shdr->sh_offset; in dso__process_kernel_symbol() 1610 nr_syms = shdr.sh_size / shdr.sh_entsize; in dso__load_sym_internal() 1774 sym.st_value -= shdr.sh_addr - shdr.sh_offset; in dso__load_sym_internal() [all …]
|
| A D | debuginfo.c | 153 GElf_Shdr mem, *shdr; in debuginfo__get_text_offset() local 172 shdr = gelf_getshdr(scn, &mem); in debuginfo__get_text_offset() 173 if (!shdr) in debuginfo__get_text_offset() 175 *offs = shdr->sh_addr; in debuginfo__get_text_offset() 177 *offs -= shdr->sh_offset; in debuginfo__get_text_offset()
|
| A D | unwind-libunwind-local.c | 176 GElf_Shdr shdr; in elf_section_address_and_offset() local 186 if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL)) in elf_section_address_and_offset() 189 *address = shdr.sh_addr; in elf_section_address_and_offset() 190 *offset = shdr.sh_offset; in elf_section_address_and_offset()
|
| A D | probe-event.c | 303 GElf_Shdr shdr; in find_module_name() local 320 sec = elf_section_by_name(elf, &ehdr, &shdr, in find_module_name() 628 GElf_Shdr shdr; in get_text_start_address() local 647 if (!elf_section_by_name(elf, &ehdr, &shdr, ".text", NULL)) in get_text_start_address() 650 *address = shdr.sh_addr - shdr.sh_offset; in get_text_start_address()
|
| A D | probe-finder.c | 1156 GElf_Shdr shdr; in debuginfo__find_probes() local 1158 if (elf_section_by_name(elf, &ehdr, &shdr, ".eh_frame", NULL) && in debuginfo__find_probes() 1159 shdr.sh_type == SHT_PROGBITS) in debuginfo__find_probes()
|
| /tools/lib/bpf/ |
| A D | linker.c | 608 Elf64_Shdr *shdr = sec->shdr; in is_ignored_sec() local 761 sec->shdr = shdr; in linker_load_obj_file() 935 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_symtab() 1032 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_relos() 1167 dst_sec->shdr = shdr; in init_sec() 1176 shdr->sh_type = src_sec->shdr->sh_type; in init_sec() 1177 shdr->sh_flags = src_sec->shdr->sh_flags; in init_sec() 1185 shdr->sh_addralign = src_sec->shdr->sh_addralign; in init_sec() 1186 shdr->sh_entsize = src_sec->shdr->sh_entsize; in init_sec() 1217 if (dst->shdr->sh_type != src->shdr->sh_type) { in secs_match() [all …]
|
| A D | usdt.c | 358 static int find_elf_sec_by_name(Elf *elf, const char *sec_name, GElf_Shdr *shdr, Elf_Scn **scn) in find_elf_sec_by_name() argument 373 if (!gelf_getshdr(sec, shdr)) in find_elf_sec_by_name() 376 name = elf_strptr(elf, shstrndx, shdr->sh_name); in find_elf_sec_by_name()
|
| A D | libbpf.c | 649 Elf64_Shdr *shdr; member 3690 Elf64_Shdr *shdr; in elf_sec_hdr() local 3696 if (!shdr) { in elf_sec_hdr() 3702 return shdr; in elf_sec_hdr() 3973 sec_desc->shdr = sh; in bpf_object__elf_collect() 4724 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_prog_relos() 7206 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_map_relos() 7326 Elf64_Shdr *shdr; in bpf_object__collect_relos() local 7333 shdr = sec_desc->shdr; in bpf_object__collect_relos() 7335 idx = shdr->sh_info; in bpf_object__collect_relos() [all …]
|
Completed in 55 milliseconds