Lines Matching defs:elf
1 /* This is the Linux kernel elf-loading code, ported into user space */
131 /* should probably go in elf.h */
191 * See linux kernel: arch/x86/include/asm/elf.h
298 * See linux kernel: arch/x86/include/asm/elf.h
667 #include "elf.h"
1082 #include "elf.h"
1299 /* See linux kernel: arch/powerpc/include/asm/elf.h. */
1354 /* See linux kernel: arch/loongarch/include/asm/elf.h */
1490 /* See linux kernel: arch/mips/include/asm/elf.h. */
1648 /* See linux kernel arch/openrisc/include/asm/elf.h. */
1681 /* See linux kernel: arch/sh/include/asm/elf.h. */
1764 /* See linux kernel: arch/m68k/include/asm/elf.h. */
1820 #include "elf.h"
2043 /* See linux kernel: arch/xtensa/include/asm/elf.h. */
2142 #include "elf.h"
2144 /* We must delay the following stanzas until after "elf.h". */
3880 * We need a copy of the elf header for passing to create_elf_tables.
3994 point as a function descriptor. Do this after creating elf tables
4149 * target library etc. If there is no elf header, we dump it.
4191 static void fill_elf_header(struct elfhdr *elf, int segs, uint16_t machine,
4194 memcpy(elf->e_ident, ELFMAG, SELFMAG);
4196 elf->e_ident[EI_CLASS] = ELF_CLASS;
4197 elf->e_ident[EI_DATA] = ELF_DATA;
4198 elf->e_ident[EI_VERSION] = EV_CURRENT;
4199 elf->e_ident[EI_OSABI] = ELF_OSABI;
4201 elf->e_type = ET_CORE;
4202 elf->e_machine = machine;
4203 elf->e_version = EV_CURRENT;
4204 elf->e_phoff = sizeof(struct elfhdr);
4205 elf->e_flags = flags;
4206 elf->e_ehsize = sizeof(struct elfhdr);
4207 elf->e_phentsize = sizeof(struct elf_phdr);
4208 elf->e_phnum = segs;
4210 bswap_ehdr(elf);
4522 /* Create elf file header. */
4527 /* Create elf program headers. */