Searched refs:elf (Results 1 - 25 of 324) sorted by relevance

1234567891011>>

/linux-master/tools/build/feature/
H A Dtest-libelf.c6 Elf *elf = elf_begin(0, ELF_C_READ, 0); local
8 return (long)elf;
/linux-master/arch/mips/tools/
H A DMakefile2 hostprogs := elf-entry
3 PHONY += elf-entry
4 elf-entry: $(obj)/elf-entry
/linux-master/tools/objtool/include/objtool/
H A Dendianness.h7 #include <objtool/elf.h>
15 static inline bool need_bswap(struct elf *elf) argument
18 (elf->ehdr.e_ident[EI_DATA] == ELFDATA2LSB);
21 #define bswap_if_needed(elf, val) \
24 bool __need_bswap = need_bswap(elf); \
H A Dorc.h8 void orc_print_dump(struct elf *dummy_elf, struct orc_entry *orc, int i);
9 int write_orc_entry(struct elf *elf, struct section *orc_sec,
H A Delf.h15 #include <arch/elf.h>
82 struct elf { struct
83 Elf *elf; member in struct:elf
108 struct elf *elf_open_read(const char *name, int flags);
110 struct section *elf_create_section(struct elf *elf, const char *name,
112 struct section *elf_create_section_pair(struct elf *elf, const char *name,
116 struct symbol *elf_create_prefix_symbol(struct elf *elf, struc
152 has_multiple_files(struct elf *elf) argument
157 elf_addr_size(struct elf *elf) argument
162 elf_rela_size(struct elf *elf) argument
167 elf_data_rela_type(struct elf *elf) argument
172 elf_text_rela_type(struct elf *elf) argument
187 mark_sec_changed(struct elf *elf, struct section *sec, bool changed) argument
242 set_reloc_offset(struct elf *elf, struct reloc *reloc, u64 offset) argument
253 set_reloc_addend(struct elf *elf, struct reloc *reloc, s64 addend) argument
278 set_reloc_sym(struct elf *elf, struct reloc *reloc, unsigned int sym) argument
288 set_reloc_type(struct elf *elf, struct reloc *reloc, unsigned int type) argument
[all...]
H A Dspecial.h11 #include <objtool/elf.h>
33 int special_get_alts(struct elf *elf, struct list_head *alts);
H A Dobjtool.h13 #include <objtool/elf.h>
23 struct elf *elf; member in struct:objtool_file
/linux-master/scripts/mod/
H A Dsymsearch.c50 static unsigned int symbol_count(struct elf_info *elf) argument
54 for (Elf_Sym *sym = elf->symtab_start; sym < elf->symtab_stop; sym++) {
55 if (is_valid_name(elf, sym))
68 static void symsearch_populate(struct elf_info *elf, argument
72 bool is_arm = (elf->hdr->e_machine == EM_ARM);
74 for (Elf_Sym *sym = elf->symtab_start; sym < elf->symtab_stop; sym++) {
75 if (is_valid_name(elf, sym)) {
78 table->symbol_index = sym - elf
124 symsearch_init(struct elf_info *elf) argument
139 symsearch_finish(struct elf_info *elf) argument
153 symsearch_find_nearest(struct elf_info *elf, Elf_Addr addr, unsigned int secndx, bool allow_negative, Elf_Addr min_distance) argument
[all...]
/linux-master/arch/x86/um/
H A Dmem_64.c3 #include <asm/elf.h>
/linux-master/arch/parisc/include/asm/
H A Dsections.h6 #include <asm/elf.h>
/linux-master/tools/objtool/
H A Delf.c3 * elf.c - ELF access library
22 #include <objtool/elf.h>
30 #define __elf_table(name) (elf->name##_hash)
31 #define __elf_bits(name) (elf->name##_bits)
130 struct section *find_section_by_name(const struct elf *elf, const char *name) argument
142 static struct section *find_section_by_index(struct elf *elf, argument
155 static struct symbol *find_symbol_by_index(struct elf *elf, unsigne argument
254 find_symbol_by_name(const struct elf *elf, const char *name) argument
266 find_reloc_by_dest_range(const struct elf *elf, struct section *sec, unsigned long offset, unsigned int len) argument
296 find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset) argument
306 read_sections(struct elf *elf) argument
392 elf_add_symbol(struct elf *elf, struct symbol *sym) argument
433 read_symbols(struct elf *elf) argument
577 elf_update_sym_relocs(struct elf *elf, struct symbol *sym) argument
595 elf_update_symbol(struct elf *elf, struct section *symtab, struct section *symtab_shndx, struct symbol *sym) argument
726 __elf_create_symbol(struct elf *elf, struct symbol *sym) argument
792 elf_create_section_symbol(struct elf *elf, struct section *sec) argument
820 elf_create_prefix_symbol(struct elf *elf, struct symbol *orig, long size) argument
848 elf_init_reloc(struct elf *elf, struct section *rsec, unsigned int reloc_idx, unsigned long offset, struct symbol *sym, s64 addend, unsigned int type) argument
884 elf_init_reloc_text_sym(struct elf *elf, struct section *sec, unsigned long offset, unsigned int reloc_idx, struct section *insn_sec, unsigned long insn_off) argument
917 elf_init_reloc_data_sym(struct elf *elf, struct section *sec, unsigned long offset, unsigned int reloc_idx, struct symbol *sym, s64 addend) argument
933 read_relocs(struct elf *elf) argument
996 struct elf *elf; local
1051 elf_add_string(struct elf *elf, struct section *strtab, char *str) argument
1088 elf_create_section(struct elf *elf, const char *name, size_t entsize, unsigned int nr) argument
1168 elf_create_rela_section(struct elf *elf, struct section *sec, unsigned int reloc_nr) argument
1207 elf_create_section_pair(struct elf *elf, const char *name, size_t entsize, unsigned int nr, unsigned int reloc_nr) argument
1223 elf_write_insn(struct elf *elf, struct section *sec, unsigned long offset, unsigned int len, const char *insn) argument
1250 elf_truncate_section(struct elf *elf, struct section *sec) argument
1295 elf_write(struct elf *elf) argument
1339 elf_close(struct elf *elf) argument
[all...]
H A Dorc_dump.c21 Elf *elf; local
27 struct elf dummy_elf = {};
40 elf = elf_begin(fd, ELF_C_READ_MMAP, NULL);
41 if (!elf) {
46 if (!elf64_getehdr(elf)) {
50 memcpy(&dummy_elf.ehdr, elf64_getehdr(elf), sizeof(dummy_elf.ehdr));
52 if (elf_getshdrnum(elf, &nr_sections)) {
57 if (elf_getshdrstrndx(elf, &shstrtab_idx)) {
63 scn = elf_getscn(elf, i);
74 name = elf_strptr(elf, shstrtab_id
[all...]
H A Dspecial.c68 static int get_alt_entry(struct elf *elf, const struct special_entry *entry, argument
90 feature = bswap_if_needed(elf,
97 orig_reloc = find_reloc_by_dest(elf, sec, offset + entry->orig);
106 new_reloc = find_reloc_by_dest(elf, sec, offset + entry->new);
123 key_reloc = find_reloc_by_dest(elf, sec, offset + entry->key);
140 int special_get_alts(struct elf *elf, struct list_head *alts) argument
151 sec = find_section_by_name(elf, entry->sec);
171 ret = get_alt_entry(elf, entr
[all...]
/linux-master/arch/loongarch/kernel/
H A Delf.c8 #include <linux/elf.h>
15 int arch_elf_pt_proc(void *_ehdr, void *_phdr, struct file *elf, argument
/linux-master/arch/mips/include/asm/
H A Dcpufeature.h11 #include <asm/elf.h>
/linux-master/arch/microblaze/include/asm/
H A Delf.h10 #include <uapi/asm/elf.h>
/linux-master/arch/loongarch/include/asm/
H A Dcpufeature.h13 #include <asm/elf.h>
/linux-master/arch/arm64/kvm/hyp/nvhe/
H A Dgen-hyprel.c27 #include <elf.h>
137 } elf; variable in typeref:struct:__anon5
164 elf.path, ## __VA_ARGS__); \
172 elf.path, strerror(errno)); \
198 #define elf_ptr(type, off) ((type *)(elf.begin + (off)))
202 for (var = elf.sh_table; var < elf.sh_table + elf16toh(elf.ehdr->e_shnum); ++var)
218 return elf.sh_string + elf32toh(shdr->sh_name);
238 return &elf
[all...]
/linux-master/arch/arc/include/asm/
H A Delf.h10 #include <linux/elf-em.h>
11 #include <uapi/asm/elf.h>
/linux-master/arch/x86/um/shared/sysdep/
H A Dkernel-offsets.h4 #include <linux/elf.h>
/linux-master/arch/arm/include/asm/
H A Dprocinfo.h43 #include <asm/elf.h>
44 #warning "Please include asm/elf.h instead"
/linux-master/tools/lib/bpf/
H A Delf.c29 Elf *elf; local
32 pr_warn("elf: failed to init libelf for %s\n", binary_path);
38 pr_warn("elf: failed to open %s: %s\n", binary_path,
42 elf = elf_begin(fd, ELF_C_READ_MMAP, NULL);
43 if (!elf) {
44 pr_warn("elf: could not read elf from %s: %s\n", binary_path, elf_errmsg(-1));
49 elf_fd->elf = elf;
57 elf_end(elf_fd->elf);
62 elf_find_next_scn_by_type(Elf *elf, int sh_type, Elf_Scn *scn) argument
84 Elf *elf; member in struct:elf_sym_iter
96 elf_sym_iter_new(struct elf_sym_iter *iter, Elf *elf, const char *binary_path, int sh_type, int st_type) argument
276 elf_find_func_offset(Elf *elf, const char *binary_path, const char *name) argument
[all...]
/linux-master/tools/perf/util/
H A Dsymbol-elf.c68 static int elf_getphdrnum(Elf *elf, size_t *dst) argument
73 ehdr = gelf_getehdr(elf, &gehdr);
84 static int elf_getshdrstrndx(Elf *elf __maybe_unused, size_t *dst __maybe_unused)
181 static size_t elf_addr_to_index(Elf *elf, GElf_Addr addr) argument
187 while ((sec = elf_nextscn(elf, sec)) != NULL) {
200 Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep, argument
207 if (!elf_rawdata(elf_getscn(elf, ep->e_shstrndx), NULL))
210 while ((sec = elf_nextscn(elf, sec)) != NULL) {
214 str = elf_strptr(elf, ep->e_shstrndx, shp->sh_name);
229 Elf *elf; local
254 elf_read_program_header(Elf *elf, u64 vaddr, GElf_Phdr *phdr) argument
403 get_ifunc_name(Elf *elf, struct dso *dso, GElf_Ehdr *ehdr, struct rel_info *ri, char *buf, size_t buf_sz) argument
539 get_rela_dyn_info(Elf *elf, GElf_Ehdr *ehdr, struct rela_dyn_info *di, Elf_Scn *scn) argument
633 dso__synthesize_plt_got_symbols(struct dso *dso, Elf *elf, GElf_Ehdr *ehdr, char *buf, size_t buf_sz) argument
684 Elf *elf; local
857 elf_read_build_id(Elf *elf, void *bf, size_t size) argument
971 Elf *elf; local
1124 Elf *elf; local
1233 Elf *elf; local
1344 max_text_section(Elf *elf, GElf_Ehdr *ehdr) argument
1564 Elf *elf; local
1862 elf_read_maps(Elf *elf, bool exe, mapfn_t mapfn, void *data) argument
1898 Elf *elf; local
1918 Elf *elf; local
1990 Elf *elf; member in struct:kcore
2330 kcore_copy__read_maps(struct kcore_copy_info *kci, Elf *elf) argument
2396 kcore_copy__calc_maps(struct kcore_copy_info *kci, const char *dir, Elf *elf) argument
2727 populate_sdt_note(Elf **elf, const char *data, size_t len, struct list_head *sdt_notes) argument
2859 construct_sdt_notes_list(Elf *elf, struct list_head *sdt_notes) argument
2926 Elf *elf; local
[all...]
H A Dsymsrc.h13 #include <elf.h>
21 Elf *elf; member in struct:symsrc
/linux-master/arch/loongarch/boot/
H A DMakefile14 targets := vmlinux.elf
15 $(obj)/vmlinux.elf: vmlinux FORCE

Completed in 303 milliseconds

1234567891011>>