Searched refs:elf (Results 26 - 50 of 324) sorted by relevance

1234567891011>>

/linux-master/arch/powerpc/include/uapi/asm/
H A Dsigcontext.h14 #include <asm/elf.h>
H A Ducontext.h8 #include <asm/elf.h>
/linux-master/arch/openrisc/include/asm/
H A Delf.h19 #include <uapi/asm/elf.h>
/linux-master/tools/lib/symbol/
H A Dkallsyms.h5 #include <elf.h>
/linux-master/include/uapi/linux/
H A Delf-fdpic.h2 /* elf-fdpic.h: FDPIC ELF load map
16 #include <linux/elf.h>
/linux-master/arch/xtensa/boot/
H A DMakefile25 Image: boot-elf
30 boot-elf boot-redboot: $(addprefix $(obj)/,$(subdir-y))
41 boot-elf: $(obj)/vmlinux.bin
/linux-master/arch/x86/realmode/rm/
H A DMakefile53 LDFLAGS_realmode.elf := -m elf_i386 --emit-relocs -T
56 targets += realmode.elf
57 $(obj)/realmode.elf: $(obj)/realmode.lds $(REALMODE_OBJS) FORCE
63 $(obj)/realmode.bin: $(obj)/realmode.elf $(obj)/realmode.relocs FORCE
70 $(obj)/realmode.relocs: $(obj)/realmode.elf FORCE
/linux-master/arch/alpha/boot/tools/
H A Dobjstrip.c30 # include <linux/elf.h>
61 struct elfhdr *elf; local
149 elf = (struct elfhdr *) buf;
151 if (memcmp(&elf->e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) {
152 if (elf->e_type != ET_EXEC) {
157 if (!elf_check_arch(elf)) {
159 prog_name, elf->e_machine);
162 if (elf->e_phnum != 1) {
165 prog_name, elf->e_phnum);
168 e_entry = elf
[all...]
/linux-master/scripts/mod/
H A Dmodpost.h13 #include <elf.h>
19 /* On BSD-alike OSes elf.h defines these according to host's word size */
165 static inline bool is_valid_name(struct elf_info *elf, Elf_Sym *sym) argument
167 const char *name = elf->strtab + sym->st_name;
175 void symsearch_init(struct elf_info *elf);
176 void symsearch_finish(struct elf_info *elf);
177 Elf_Sym *symsearch_find_nearest(struct elf_info *elf, Elf_Addr addr,
H A Dmodpost.c15 #include <elf.h>
702 static const char *sym_name(struct elf_info *elf, Elf_Sym *sym) argument
705 return elf->strtab + sym->st_name;
765 static void check_section(const char *modname, struct elf_info *elf, argument
768 const char *sec = sech_name(elf, sechdr);
1002 static Elf_Sym *find_fromsym(struct elf_info *elf, Elf_Addr addr, argument
1005 return symsearch_find_nearest(elf, addr, secndx, false, ~0);
1008 static Elf_Sym *find_tosym(struct elf_info *elf, Elf_Addr addr, Elf_Sym *sym) argument
1013 if (is_valid_name(elf, sym))
1020 new_sym = symsearch_find_nearest(elf, add
1025 is_executable_section(struct elf_info *elf, unsigned int secndx) argument
1033 default_mismatch_handler(const char *modname, struct elf_info *elf, const struct sectioncheck* const mismatch, Elf_Sym *tsym, unsigned int fsecndx, const char *fromsec, Elf_Addr faddr, const char *tosec, Elf_Addr taddr) argument
1083 check_export_symbol(struct module *mod, struct elf_info *elf, Elf_Addr faddr, const char *secname, Elf_Sym *sym) argument
1153 check_section_mismatch(struct module *mod, struct elf_info *elf, Elf_Sym *sym, unsigned int fsecndx, const char *fromsec, Elf_Addr faddr, Elf_Addr taddr) argument
1352 get_rel_type_and_sym(struct elf_info *elf, uint64_t r_info, unsigned int *r_type, unsigned int *r_sym) argument
1382 section_rela(struct module *mod, struct elf_info *elf, unsigned int fsecndx, const char *fromsec, const Elf_Rela *start, const Elf_Rela *stop) argument
1424 section_rel(struct module *mod, struct elf_info *elf, unsigned int fsecndx, const char *fromsec, const Elf_Rel *start, const Elf_Rel *stop) argument
1473 check_sec_ref(struct module *mod, struct elf_info *elf) argument
[all...]
/linux-master/tools/objtool/arch/x86/
H A Dorc.c100 int write_orc_entry(struct elf *elf, struct section *orc_sec, argument
110 orc->sp_offset = bswap_if_needed(elf, orc->sp_offset);
111 orc->bp_offset = bswap_if_needed(elf, orc->bp_offset);
114 if (!elf_init_reloc_text_sym(elf, ip_sec, idx * sizeof(int), idx,
177 void orc_print_dump(struct elf *dummy_elf, struct orc_entry *orc, int i)
H A Dspecial.c96 text_reloc = find_reloc_by_dest_range(file->elf, insn->sec,
126 rodata_reloc = find_reloc_by_dest(file->elf, table_sec, table_offset);
/linux-master/arch/s390/kernel/
H A Dcpufeature.c8 #include <asm/elf.h>
/linux-master/tools/testing/selftests/sgx/
H A DMakefile23 TEST_FILES := $(OUTPUT)/test_encl.elf
25 all: $(TEST_CUSTOM_PROGS) $(OUTPUT)/test_encl.elf
50 $(OUTPUT)/test_encl.elf: test_encl.c test_encl_bootstrap.S
54 $(OUTPUT)/test_encl.elf \
/linux-master/include/linux/
H A Dcrash_reserve.h7 #include <linux/elf.h>
H A Delfnote.h62 #include <uapi/linux/elf.h>
74 struct elf##size##_note _nhdr; \
/linux-master/tools/objtool/
H A Dorc_gen.c124 sec = find_section_by_name(file->elf, ".orc_unwind");
129 orc_sec = elf_create_section(file->elf, ".orc_unwind",
134 sec = elf_create_section_pair(file->elf, ".orc_unwind_ip", sizeof(int), nr, nr);
140 if (write_orc_entry(file->elf, orc_sec, sec, idx++,
/linux-master/arch/powerpc/platforms/powernv/
H A Dopal-core.c14 #include <linux/elf.h>
308 Elf64_Ehdr *elf; local
357 elf = (Elf64_Ehdr *)bufp;
359 memcpy(elf->e_ident, ELFMAG, SELFMAG);
360 elf->e_ident[EI_CLASS] = ELF_CLASS;
361 elf->e_ident[EI_DATA] = ELFDATA2MSB;
362 elf->e_ident[EI_VERSION] = EV_CURRENT;
363 elf->e_ident[EI_OSABI] = ELF_OSABI;
364 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD);
365 elf
[all...]
/linux-master/arch/arm/kernel/
H A Delf.c6 #include <linux/elf.h>
7 #include <linux/elf-fdpic.h>
/linux-master/arch/xtensa/boot/boot-elf/
H A DMakefile23 $(obj)/../Image.elf: $(obj)/Image.o $(obj)/boot.lds
30 all Image: $(obj)/../Image.elf
/linux-master/arch/xtensa/boot/boot-redboot/
H A DMakefile21 $(obj)/zImage.elf: $(obj)/zImage.o $(LIBS)
27 $(obj)/../zImage.redboot: $(obj)/zImage.elf
/linux-master/drivers/firmware/efi/libstub/
H A DMakefile.zboot45 -DZBOOT_EFI_PATH="\"$(realpath $(obj)/vmlinuz.efi.elf)\"" \
55 LDFLAGS_vmlinuz.efi.elf := -T $(srctree)/drivers/firmware/efi/libstub/zboot.lds
56 $(obj)/vmlinuz.efi.elf: $(obj)/vmlinuz.o $(ZBOOT_DEPS) FORCE
60 $(obj)/vmlinuz.efi: $(obj)/vmlinuz.efi.elf FORCE
63 targets += zboot-header.o vmlinux.bin vmlinuz vmlinuz.o vmlinuz.efi.elf vmlinuz.efi
/linux-master/tools/bpf/resolve_btfids/
H A Dmain.c121 Elf *elf; member in struct:object::__anon3116
290 /* Older libelf.h and glibc elf.h might not yet define the ELF compression types. */
305 static int compressed_section_fix(Elf *elf, Elf_Scn *scn, GElf_Shdr *sh) argument
307 int expected = gelf_getclass(elf) == ELFCLASS32 ? 4 : 8;
334 Elf *elf; local
346 elf = elf_begin(fd, ELF_C_RDWR_MMAP, NULL);
347 if (!elf) {
355 obj->efile.elf = elf;
357 elf_flagelf(elf, ELF_C_SE
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dtrace_helpers.c338 Elf *elf = NULL; local
351 elf = elf_begin(fd, ELF_C_READ_MMAP, NULL);
352 if (!elf)
354 if (elf_kind(elf) != ELF_K_ELF)
356 if (!gelf_getehdr(elf, &ehdr))
363 phdr = gelf_getphdr(elf, i, &mem);
368 data = elf_rawfile(elf, &max);
379 if (elf)
380 elf_end(elf);
/linux-master/tools/perf/util/
H A Dunwind-libunwind-local.c19 #include <elf.h>
174 Elf *elf; local
179 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL);
180 if (elf == NULL)
183 if (gelf_getehdr(elf, &ehdr) == NULL)
186 if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL))
193 elf_end(elf);
211 Elf *elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); local
216 if (elf == NULL)
218 (void)elf_getphdrnum(elf,
234 Elf *elf; local
[all...]

Completed in 428 milliseconds

1234567891011>>