Lines Matching refs:elf
464 sym = find_symbol_by_name(file->elf, symname); in add_pv_ops()
471 rel = find_reloc_by_dest_range(file->elf, sym->sec, off, end - off); in add_pv_ops()
512 sym = find_symbol_by_name(file->elf, "pv_ops"); in init_pv_ops()
555 sec = find_section_by_name(file->elf, ".rela.discard.unreachable"); in add_dead_ends()
590 sec = find_section_by_name(file->elf, ".rela.discard.reachable"); in add_dead_ends()
630 sec = find_section_by_name(file->elf, ".static_call_sites"); in create_static_call_sections()
644 sec = elf_create_section(file->elf, ".static_call_sites", SHF_WRITE, in create_static_call_sections()
656 if (elf_add_reloc_to_insn(file->elf, sec, in create_static_call_sections()
676 key_sym = find_symbol_by_name(file->elf, tmp); in create_static_call_sections()
697 if (elf_add_reloc(file->elf, sec, in create_static_call_sections()
715 sec = find_section_by_name(file->elf, ".retpoline_sites"); in create_retpoline_sites_sections()
728 sec = elf_create_section(file->elf, ".retpoline_sites", 0, in create_retpoline_sites_sections()
741 if (elf_add_reloc_to_insn(file->elf, sec, in create_retpoline_sites_sections()
761 sec = find_section_by_name(file->elf, ".return_sites"); in create_return_sites_sections()
774 sec = elf_create_section(file->elf, ".return_sites", 0, in create_return_sites_sections()
787 if (elf_add_reloc_to_insn(file->elf, sec, in create_return_sites_sections()
807 sec = find_section_by_name(file->elf, ".ibt_endbr_seal"); in create_ibt_endbr_seal_sections()
826 sec = elf_create_section(file->elf, ".ibt_endbr_seal", 0, in create_ibt_endbr_seal_sections()
839 if (elf_add_reloc_to_insn(file->elf, sec, in create_ibt_endbr_seal_sections()
860 sec = find_section_by_name(file->elf, "__mcount_loc"); in create_mcount_loc_sections()
874 sec = elf_create_section(file->elf, "__mcount_loc", 0, sizeof(unsigned long), idx); in create_mcount_loc_sections()
884 if (elf_add_reloc_to_insn(file->elf, sec, in create_mcount_loc_sections()
906 sec = find_section_by_name(file->elf, ".rela.discard.func_stack_frame_non_standard"); in add_ignores()
1111 func = find_symbol_by_name(file->elf, *name); in add_uaccess_safe()
1131 sec = find_section_by_name(file->elf, ".rela.discard.ignore_alts"); in add_ignore_alternatives()
1174 insn->reloc = find_reloc_by_dest_range(file->elf, insn->sec, in insn_reloc()
1231 elf_write_reloc(file->elf, reloc); in annotate_call_site()
1234 elf_write_insn(file->elf, insn->sec, in annotate_call_site()
1260 elf_write_reloc(file->elf, reloc); in annotate_call_site()
1263 elf_write_insn(file->elf, insn->sec, in annotate_call_site()
1712 elf_write_reloc(file->elf, reloc); in handle_jump_alt()
1714 elf_write_insn(file->elf, orig_insn->sec, in handle_jump_alt()
1752 ret = special_get_alts(file->elf, &special_alts); in add_special_section_alts()
2026 sec = find_section_by_name(file->elf, ".discard.unwind_hints"); in read_unwind_hints()
2046 reloc = find_reloc_by_dest(file->elf, sec, i * sizeof(*hint)); in read_unwind_hints()
2119 sec = find_section_by_name(file->elf, ".rela.discard.noendbr"); in read_noendbr_hints()
2142 sec = find_section_by_name(file->elf, ".rela.discard.retpoline_safe"); in read_retpoline_hints()
2179 sec = find_section_by_name(file->elf, ".rela.discard.instr_end"); in read_instr_hints()
2198 sec = find_section_by_name(file->elf, ".rela.discard.instr_begin"); in read_instr_hints()
2226 sec = find_section_by_name(file->elf, ".rela.discard.intra_function_calls"); in read_intra_function_calls()
3951 sec = find_section_by_name(file->elf, ".noinstr.text"); in validate_noinstr_sections()
3957 sec = find_section_by_name(file->elf, ".entry.text"); in validate_noinstr_sections()
4014 reloc = find_reloc_by_dest_range(file->elf, insn->sec, in validate_ibt_insn()
4214 if (!cfi_hash_alloc(1UL << (file->elf->symbol_bits - 3))) in check()