Lines Matching refs:elf
499 sym = find_symbol_by_name(file->elf, symname); in add_pv_ops()
506 reloc = find_reloc_by_dest_range(file->elf, sym->sec, off, end - off); in add_pv_ops()
548 sym = find_symbol_by_name(file->elf, "pv_ops"); in init_pv_ops()
592 rsec = find_section_by_name(file->elf, ".rela.discard.unreachable"); in add_dead_ends()
631 rsec = find_section_by_name(file->elf, ".rela.discard.reachable"); in add_dead_ends()
675 sec = find_section_by_name(file->elf, ".static_call_sites"); in create_static_call_sections()
689 sec = elf_create_section_pair(file->elf, ".static_call_sites", in create_static_call_sections()
701 if (!elf_init_reloc_text_sym(file->elf, sec, in create_static_call_sections()
721 key_sym = find_symbol_by_name(file->elf, tmp); in create_static_call_sections()
743 if (!elf_init_reloc_data_sym(file->elf, sec, in create_static_call_sections()
761 sec = find_section_by_name(file->elf, ".retpoline_sites"); in create_retpoline_sites_sections()
774 sec = elf_create_section_pair(file->elf, ".retpoline_sites", in create_retpoline_sites_sections()
782 if (!elf_init_reloc_text_sym(file->elf, sec, in create_retpoline_sites_sections()
799 sec = find_section_by_name(file->elf, ".return_sites"); in create_return_sites_sections()
812 sec = elf_create_section_pair(file->elf, ".return_sites", in create_return_sites_sections()
820 if (!elf_init_reloc_text_sym(file->elf, sec, in create_return_sites_sections()
837 sec = find_section_by_name(file->elf, ".ibt_endbr_seal"); in create_ibt_endbr_seal_sections()
856 sec = elf_create_section_pair(file->elf, ".ibt_endbr_seal", in create_ibt_endbr_seal_sections()
874 if (!elf_init_reloc_text_sym(file->elf, sec, in create_ibt_endbr_seal_sections()
891 sec = find_section_by_name(file->elf, ".cfi_sites"); in create_cfi_sections()
909 sec = elf_create_section_pair(file->elf, ".cfi_sites", in create_cfi_sections()
922 if (!elf_init_reloc_text_sym(file->elf, sec, in create_cfi_sections()
935 size_t addr_size = elf_addr_size(file->elf); in create_mcount_loc_sections()
940 sec = find_section_by_name(file->elf, "__mcount_loc"); in create_mcount_loc_sections()
954 sec = elf_create_section_pair(file->elf, "__mcount_loc", addr_size, in create_mcount_loc_sections()
966 reloc = elf_init_reloc_text_sym(file->elf, sec, idx * addr_size, idx, in create_mcount_loc_sections()
971 set_reloc_type(file->elf, reloc, addr_size == 8 ? R_ABS64 : R_ABS32); in create_mcount_loc_sections()
985 sec = find_section_by_name(file->elf, ".call_sites"); in create_direct_call_sections()
999 sec = elf_create_section_pair(file->elf, ".call_sites", in create_direct_call_sections()
1007 if (!elf_init_reloc_text_sym(file->elf, sec, in create_direct_call_sections()
1028 rsec = find_section_by_name(file->elf, ".rela.discard.func_stack_frame_non_standard"); in add_ignores()
1249 func = find_symbol_by_name(file->elf, *name); in add_uaccess_safe()
1269 rsec = find_section_by_name(file->elf, ".rela.discard.ignore_alts"); in add_ignore_alternatives()
1328 reloc = find_reloc_by_dest_range(file->elf, insn->sec, in insn_reloc()
1384 set_reloc_type(file->elf, reloc, R_NONE); in annotate_call_site()
1386 elf_write_insn(file->elf, insn->sec, in annotate_call_site()
1411 set_reloc_type(file->elf, reloc, R_NONE); in annotate_call_site()
1413 elf_write_insn(file->elf, insn->sec, in annotate_call_site()
1891 set_reloc_type(file->elf, reloc, R_NONE); in handle_jump_alt()
1892 elf_write_insn(file->elf, orig_insn->sec, in handle_jump_alt()
1930 ret = special_get_alts(file->elf, &special_alts); in add_special_section_alts()
2213 sec = find_section_by_name(file->elf, ".discard.unwind_hints"); in read_unwind_hints()
2232 reloc = find_reloc_by_dest(file->elf, sec, i * sizeof(*hint)); in read_unwind_hints()
2285 cfi.cfa.offset = bswap_if_needed(file->elf, hint->sp_offset); in read_unwind_hints()
2301 rsec = find_section_by_name(file->elf, ".rela.discard.noendbr"); in read_noendbr_hints()
2325 rsec = find_section_by_name(file->elf, ".rela.discard.retpoline_safe"); in read_retpoline_hints()
2361 rsec = find_section_by_name(file->elf, ".rela.discard.instr_end"); in read_instr_hints()
2380 rsec = find_section_by_name(file->elf, ".rela.discard.instr_begin"); in read_instr_hints()
2408 rsec = find_section_by_name(file->elf, ".rela.discard.validate_unret"); in read_validate_unret_hints()
2436 rsec = find_section_by_name(file->elf, ".rela.discard.intra_function_calls"); in read_intra_function_calls()
4129 elf_create_prefix_symbol(file->elf, func, opts.prefix); in add_prefix_symbol()
4222 sec = find_section_by_name(file->elf, ".noinstr.text"); in validate_noinstr_sections()
4228 sec = find_section_by_name(file->elf, ".entry.text"); in validate_noinstr_sections()
4234 sec = find_section_by_name(file->elf, ".cpuidle.text"); in validate_noinstr_sections()
4309 reloc = find_reloc_by_dest_range(file->elf, insn->sec, in validate_ibt_insn()
4664 if (!cfi_hash_alloc(1UL << (file->elf->symbol_bits - 3))) in check()