Home
last modified time | relevance | path

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

/fs/
Dbinfmt_elf_fdpic.c1233 static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs) in fill_elf_fdpic_header() argument
1235 memcpy(elf->e_ident, ELFMAG, SELFMAG); in fill_elf_fdpic_header()
1236 elf->e_ident[EI_CLASS] = ELF_CLASS; in fill_elf_fdpic_header()
1237 elf->e_ident[EI_DATA] = ELF_DATA; in fill_elf_fdpic_header()
1238 elf->e_ident[EI_VERSION] = EV_CURRENT; in fill_elf_fdpic_header()
1239 elf->e_ident[EI_OSABI] = ELF_OSABI; in fill_elf_fdpic_header()
1240 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); in fill_elf_fdpic_header()
1242 elf->e_type = ET_CORE; in fill_elf_fdpic_header()
1243 elf->e_machine = ELF_ARCH; in fill_elf_fdpic_header()
1244 elf->e_version = EV_CURRENT; in fill_elf_fdpic_header()
[all …]
Dbinfmt_elf.c536 struct file *elf, bool is_interp, in arch_elf_pt_proc() argument
1487 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header() argument
1490 memset(elf, 0, sizeof(*elf)); in fill_elf_header()
1492 memcpy(elf->e_ident, ELFMAG, SELFMAG); in fill_elf_header()
1493 elf->e_ident[EI_CLASS] = ELF_CLASS; in fill_elf_header()
1494 elf->e_ident[EI_DATA] = ELF_DATA; in fill_elf_header()
1495 elf->e_ident[EI_VERSION] = EV_CURRENT; in fill_elf_header()
1496 elf->e_ident[EI_OSABI] = ELF_OSABI; in fill_elf_header()
1498 elf->e_type = ET_CORE; in fill_elf_header()
1499 elf->e_machine = machine; in fill_elf_header()
[all …]