Home
last modified time | relevance | path

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

/arch/arm64/kvm/hyp/nvhe/
Dgen-hyprel.c137 } elf; variable
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); in section_name()
238 return &elf.sh_table[idx]; in section_by_idx()
251 elf.path = path; in init_elf()
266 elf.begin = mmap(0, stat.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in init_elf()
267 if (elf.begin == MAP_FAILED) { in init_elf()
[all …]
/arch/mips/tools/
DMakefile2 hostprogs := elf-entry
3 PHONY += elf-entry
4 elf-entry: $(obj)/elf-entry
D.gitignore2 elf-entry
/arch/alpha/boot/tools/
Dobjstrip.c61 struct elfhdr *elf; in main() local
149 elf = (struct elfhdr *) buf; in main()
151 if (memcmp(&elf->e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) { in main()
152 if (elf->e_type != ET_EXEC) { in main()
157 if (!elf_check_arch(elf)) { in main()
159 prog_name, elf->e_machine); in main()
162 if (elf->e_phnum != 1) { in main()
165 prog_name, elf->e_phnum); in main()
168 e_entry = elf->e_entry; in main()
170 lseek(fd, elf->e_phoff, SEEK_SET); in main()
/arch/powerpc/platforms/powernv/
Dopal-core.c308 Elf64_Ehdr *elf; in create_opalcore() local
355 elf = (Elf64_Ehdr *)bufp; in create_opalcore()
357 memcpy(elf->e_ident, ELFMAG, SELFMAG); in create_opalcore()
358 elf->e_ident[EI_CLASS] = ELF_CLASS; in create_opalcore()
359 elf->e_ident[EI_DATA] = ELFDATA2MSB; in create_opalcore()
360 elf->e_ident[EI_VERSION] = EV_CURRENT; in create_opalcore()
361 elf->e_ident[EI_OSABI] = ELF_OSABI; in create_opalcore()
362 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); in create_opalcore()
363 elf->e_type = cpu_to_be16(ET_CORE); in create_opalcore()
364 elf->e_machine = cpu_to_be16(ELF_ARCH); in create_opalcore()
[all …]
/arch/x86/realmode/rm/
DMakefile52 LDFLAGS_realmode.elf := -m elf_i386 --emit-relocs -T
55 targets += realmode.elf
56 $(obj)/realmode.elf: $(obj)/realmode.lds $(REALMODE_OBJS) FORCE
62 $(obj)/realmode.bin: $(obj)/realmode.elf $(obj)/realmode.relocs FORCE
69 $(obj)/realmode.relocs: $(obj)/realmode.elf FORCE
/arch/xtensa/boot/boot-redboot/
DMakefile25 $(obj)/zImage.elf: $(obj)/zImage.o $(LIBS)
26 $(Q)$(LD) $(LD_ARGS) -o $@ $^ -L/xtensa-elf/lib $(LIBGCC)
28 $(obj)/../zImage.redboot: $(obj)/zImage.elf
/arch/powerpc/kernel/
Dfadump.c954 struct elfhdr *elf; in fadump_init_elfcore_header() local
956 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header()
958 memcpy(elf->e_ident, ELFMAG, SELFMAG); in fadump_init_elfcore_header()
959 elf->e_ident[EI_CLASS] = ELF_CLASS; in fadump_init_elfcore_header()
960 elf->e_ident[EI_DATA] = ELF_DATA; in fadump_init_elfcore_header()
961 elf->e_ident[EI_VERSION] = EV_CURRENT; in fadump_init_elfcore_header()
962 elf->e_ident[EI_OSABI] = ELF_OSABI; in fadump_init_elfcore_header()
963 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); in fadump_init_elfcore_header()
964 elf->e_type = ET_CORE; in fadump_init_elfcore_header()
965 elf->e_machine = ELF_ARCH; in fadump_init_elfcore_header()
[all …]
/arch/xtensa/boot/
DMakefile25 Image: boot-elf
30 boot-elf boot-redboot: $(addprefix $(obj)/,$(subdir-y))
41 boot-elf: $(obj)/vmlinux.bin
/arch/xtensa/boot/boot-elf/
DMakefile23 $(obj)/../Image.elf: $(obj)/Image.o $(obj)/boot.lds
30 all Image: $(obj)/../Image.elf
/arch/x86/boot/
DMakefile31 targets := vmlinux.bin setup.bin setup.elf bzImage
106 LDFLAGS_setup.elf := -m elf_i386 -z noexecstack -T
107 $(obj)/setup.elf: $(src)/setup.ld $(SETUP_OBJS) FORCE
111 $(obj)/setup.bin: $(obj)/setup.elf FORCE
D.gitignore10 setup.elf
/arch/s390/include/asm/
Delf.h194 #define arch_elf_pt_proc(ehdr, phdr, elf, interp, state) \ argument
209 #define arch_elf_pt_proc(ehdr, phdr, elf, interp, state) \ argument
/arch/mips/kernel/
Delf.c76 int arch_elf_pt_proc(void *_ehdr, void *_phdr, struct file *elf, in arch_elf_pt_proc() argument
120 ret = kernel_read(elf, &abiflags, sizeof(abiflags), &pos); in arch_elf_pt_proc()
DMakefile8 obj-y += branch.o cmpxchg.o elf.o entry.o genex.o idle.o irq.o \
/arch/powerpc/boot/
Dwrapper515 mv "$ofile" "$ofile".elf
516 ${CROSS}objcopy -O binary "$ofile".elf "$ofile"
/arch/arm/kernel/
DMakefile19 obj-y := elf.o entry-common.o irq.o opcodes.o \
/arch/mips/
DMakefile16 $(Q)$(MAKE) $(build)=arch/mips/tools elf-entry
265 entry-y = $(shell $(objtree)/arch/mips/tools/elf-entry vmlinux)
DKconfig2434 Includes a loader for loading an elf relocatable object
/arch/mips/include/asm/
Delf.h488 extern int arch_elf_pt_proc(void *ehdr, void *phdr, struct file *elf,
/arch/mips/vdso/
DMakefile9 obj-vdso-y := elf.o vgettimeofday.o sigreturn.o
/arch/powerpc/
DMakefile91 KBUILD_LDFLAGS += -m elf$(BITS)$(LDEMULATION)
/arch/
DKconfig214 # CORE_DUMP_USE_REGSET #define'd in linux/elf.h
/arch/arm/boot/dts/
Dam33xx-l4.dtsi54 ti,pm-firmware = "am335x-pm-firmware.elf";
Dam437x-l4.dtsi55 ti,pm-firmware = "am335x-pm-firmware.elf";