Lines Matching refs:elf

526 	sym = find_symbol_by_name(file->elf, symname);  in add_pv_ops()
533 rel = find_reloc_by_dest_range(file->elf, sym->sec, off, end - off); in add_pv_ops()
574 sym = find_symbol_by_name(file->elf, "pv_ops"); in init_pv_ops()
617 sec = find_section_by_name(file->elf, ".rela.discard.unreachable"); in add_dead_ends()
652 sec = find_section_by_name(file->elf, ".rela.discard.reachable"); in add_dead_ends()
692 sec = find_section_by_name(file->elf, ".static_call_sites"); in create_static_call_sections()
706 sec = elf_create_section(file->elf, ".static_call_sites", SHF_WRITE, in create_static_call_sections()
718 if (elf_add_reloc_to_insn(file->elf, sec, in create_static_call_sections()
739 key_sym = find_symbol_by_name(file->elf, tmp); in create_static_call_sections()
761 if (elf_add_reloc(file->elf, sec, in create_static_call_sections()
779 sec = find_section_by_name(file->elf, ".retpoline_sites"); in create_retpoline_sites_sections()
792 sec = elf_create_section(file->elf, ".retpoline_sites", 0, in create_retpoline_sites_sections()
805 if (elf_add_reloc_to_insn(file->elf, sec, in create_retpoline_sites_sections()
825 sec = find_section_by_name(file->elf, ".return_sites"); in create_return_sites_sections()
838 sec = elf_create_section(file->elf, ".return_sites", 0, in create_return_sites_sections()
851 if (elf_add_reloc_to_insn(file->elf, sec, in create_return_sites_sections()
871 sec = find_section_by_name(file->elf, ".ibt_endbr_seal"); in create_ibt_endbr_seal_sections()
890 sec = elf_create_section(file->elf, ".ibt_endbr_seal", 0, in create_ibt_endbr_seal_sections()
910 if (elf_add_reloc_to_insn(file->elf, sec, in create_ibt_endbr_seal_sections()
931 sec = find_section_by_name(file->elf, ".cfi_sites"); in create_cfi_sections()
954 sec = elf_create_section(file->elf, ".cfi_sites", 0, sizeof(unsigned int), idx); in create_cfi_sections()
973 if (elf_add_reloc_to_insn(file->elf, sec, in create_cfi_sections()
988 int addrsize = elf_class_addrsize(file->elf); in create_mcount_loc_sections()
993 sec = find_section_by_name(file->elf, "__mcount_loc"); in create_mcount_loc_sections()
1007 sec = elf_create_section(file->elf, "__mcount_loc", 0, addrsize, idx); in create_mcount_loc_sections()
1020 if (elf_add_reloc_to_insn(file->elf, sec, idx, in create_mcount_loc_sections()
1038 sec = find_section_by_name(file->elf, ".call_sites"); in create_direct_call_sections()
1052 sec = elf_create_section(file->elf, ".call_sites", 0, sizeof(unsigned int), idx); in create_direct_call_sections()
1062 if (elf_add_reloc_to_insn(file->elf, sec, in create_direct_call_sections()
1084 sec = find_section_by_name(file->elf, ".rela.discard.func_stack_frame_non_standard"); in add_ignores()
1302 func = find_symbol_by_name(file->elf, *name); in add_uaccess_safe()
1322 sec = find_section_by_name(file->elf, ".rela.discard.ignore_alts"); in add_ignore_alternatives()
1364 reloc = find_reloc_by_dest_range(file->elf, insn->sec, in insn_reloc()
1421 elf_write_reloc(file->elf, reloc); in annotate_call_site()
1424 elf_write_insn(file->elf, insn->sec, in annotate_call_site()
1450 elf_write_reloc(file->elf, reloc); in annotate_call_site()
1453 elf_write_insn(file->elf, insn->sec, in annotate_call_site()
1940 elf_write_reloc(file->elf, reloc); in handle_jump_alt()
1942 elf_write_insn(file->elf, orig_insn->sec, in handle_jump_alt()
1980 ret = special_get_alts(file->elf, &special_alts); in add_special_section_alts()
2256 sec = find_section_by_name(file->elf, ".discard.unwind_hints"); in read_unwind_hints()
2276 reloc = find_reloc_by_dest(file->elf, sec, i * sizeof(*hint)); in read_unwind_hints()
2333 cfi.cfa.offset = bswap_if_needed(file->elf, hint->sp_offset); in read_unwind_hints()
2350 sec = find_section_by_name(file->elf, ".rela.discard.noendbr"); in read_noendbr_hints()
2373 sec = find_section_by_name(file->elf, ".rela.discard.retpoline_safe"); in read_retpoline_hints()
2410 sec = find_section_by_name(file->elf, ".rela.discard.instr_end"); in read_instr_hints()
2429 sec = find_section_by_name(file->elf, ".rela.discard.instr_begin"); in read_instr_hints()
2457 sec = find_section_by_name(file->elf, ".rela.discard.intra_function_calls"); in read_intra_function_calls()
4198 elf_create_prefix_symbol(file->elf, func, opts.prefix); in add_prefix_symbol()
4260 sec = find_section_by_name(file->elf, ".noinstr.text"); in validate_noinstr_sections()
4266 sec = find_section_by_name(file->elf, ".entry.text"); in validate_noinstr_sections()
4272 sec = find_section_by_name(file->elf, ".cpuidle.text"); in validate_noinstr_sections()
4347 reloc = find_reloc_by_dest_range(file->elf, insn->sec, in validate_ibt_insn()
4557 if (!cfi_hash_alloc(1UL << (file->elf->symbol_bits - 3))) in check()