Lines Matching refs:elf

433 	sym = find_symbol_by_name(file->elf, symname);  in add_pv_ops()
440 rel = find_reloc_by_dest_range(file->elf, sym->sec, off, end - off); in add_pv_ops()
481 sym = find_symbol_by_name(file->elf, "pv_ops"); in init_pv_ops()
532 sec = find_section_by_name(file->elf, ".rela.discard.unreachable"); in add_dead_ends()
567 sec = find_section_by_name(file->elf, ".rela.discard.reachable"); in add_dead_ends()
607 sec = find_section_by_name(file->elf, ".static_call_sites"); in create_static_call_sections()
621 sec = elf_create_section(file->elf, ".static_call_sites", SHF_WRITE, in create_static_call_sections()
633 if (elf_add_reloc_to_insn(file->elf, sec, in create_static_call_sections()
653 key_sym = find_symbol_by_name(file->elf, tmp); in create_static_call_sections()
674 if (elf_add_reloc(file->elf, sec, in create_static_call_sections()
692 sec = find_section_by_name(file->elf, ".retpoline_sites"); in create_retpoline_sites_sections()
705 sec = elf_create_section(file->elf, ".retpoline_sites", 0, in create_retpoline_sites_sections()
718 if (elf_add_reloc_to_insn(file->elf, sec, in create_retpoline_sites_sections()
739 sec = find_section_by_name(file->elf, "__mcount_loc"); in create_mcount_loc_sections()
753 sec = elf_create_section(file->elf, "__mcount_loc", 0, sizeof(unsigned long), idx); in create_mcount_loc_sections()
763 if (elf_add_reloc_to_insn(file->elf, sec, in create_mcount_loc_sections()
785 sec = find_section_by_name(file->elf, ".rela.discard.func_stack_frame_non_standard"); in add_ignores()
963 func = find_symbol_by_name(file->elf, *name); in add_uaccess_safe()
983 sec = find_section_by_name(file->elf, ".rela.discard.ignore_alts"); in add_ignore_alternatives()
1021 insn->reloc = find_reloc_by_dest_range(file->elf, insn->sec, in insn_reloc()
1078 elf_write_reloc(file->elf, reloc); in annotate_call_site()
1081 elf_write_insn(file->elf, insn->sec, in annotate_call_site()
1096 elf_write_reloc(file->elf, reloc); in annotate_call_site()
1099 elf_write_insn(file->elf, insn->sec, in annotate_call_site()
1485 elf_write_reloc(file->elf, reloc); in handle_jump_alt()
1487 elf_write_insn(file->elf, orig_insn->sec, in handle_jump_alt()
1525 ret = special_get_alts(file->elf, &special_alts); in add_special_section_alts()
1799 sec = find_section_by_name(file->elf, ".discard.unwind_hints"); in read_unwind_hints()
1819 reloc = find_reloc_by_dest(file->elf, sec, i * sizeof(*hint)); in read_unwind_hints()
1863 sec = find_section_by_name(file->elf, ".rela.discard.retpoline_safe"); in read_retpoline_hints()
1898 sec = find_section_by_name(file->elf, ".rela.discard.instr_end"); in read_instr_hints()
1917 sec = find_section_by_name(file->elf, ".rela.discard.instr_begin"); in read_instr_hints()
1945 sec = find_section_by_name(file->elf, ".rela.discard.intra_function_calls"); in read_intra_function_calls()
3411 sec = find_section_by_name(file->elf, ".noinstr.text"); in validate_vmlinux_functions()
3417 sec = find_section_by_name(file->elf, ".entry.text"); in validate_vmlinux_functions()
3468 if (!cfi_hash_alloc(1UL << (file->elf->symbol_bits - 3))) in check()