Searched refs:elf (Results 1 – 3 of 3) sorted by relevance
/fs/proc/ |
D | kcore.c | 152 struct elfhdr *elf; in elf_kcore_store_hdr() local 158 elf = (struct elfhdr *) bufp; in elf_kcore_store_hdr() 161 memcpy(elf->e_ident, ELFMAG, SELFMAG); in elf_kcore_store_hdr() 162 elf->e_ident[EI_CLASS] = ELF_CLASS; in elf_kcore_store_hdr() 163 elf->e_ident[EI_DATA] = ELF_DATA; in elf_kcore_store_hdr() 164 elf->e_ident[EI_VERSION]= EV_CURRENT; in elf_kcore_store_hdr() 165 elf->e_ident[EI_OSABI] = ELF_OSABI; in elf_kcore_store_hdr() 166 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); in elf_kcore_store_hdr() 167 elf->e_type = ET_CORE; in elf_kcore_store_hdr() 168 elf->e_machine = ELF_ARCH; in elf_kcore_store_hdr() [all …]
|
/fs/ |
D | binfmt_elf_fdpic.c | 1323 static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs) in fill_elf_fdpic_header() argument 1325 memcpy(elf->e_ident, ELFMAG, SELFMAG); in fill_elf_fdpic_header() 1326 elf->e_ident[EI_CLASS] = ELF_CLASS; in fill_elf_fdpic_header() 1327 elf->e_ident[EI_DATA] = ELF_DATA; in fill_elf_fdpic_header() 1328 elf->e_ident[EI_VERSION] = EV_CURRENT; in fill_elf_fdpic_header() 1329 elf->e_ident[EI_OSABI] = ELF_OSABI; in fill_elf_fdpic_header() 1330 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); in fill_elf_fdpic_header() 1332 elf->e_type = ET_CORE; in fill_elf_fdpic_header() 1333 elf->e_machine = ELF_ARCH; in fill_elf_fdpic_header() 1334 elf->e_version = EV_CURRENT; in fill_elf_fdpic_header() [all …]
|
D | binfmt_elf.c | 1305 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header() argument 1308 memset(elf, 0, sizeof(*elf)); in fill_elf_header() 1310 memcpy(elf->e_ident, ELFMAG, SELFMAG); in fill_elf_header() 1311 elf->e_ident[EI_CLASS] = ELF_CLASS; in fill_elf_header() 1312 elf->e_ident[EI_DATA] = ELF_DATA; in fill_elf_header() 1313 elf->e_ident[EI_VERSION] = EV_CURRENT; in fill_elf_header() 1314 elf->e_ident[EI_OSABI] = ELF_OSABI; in fill_elf_header() 1316 elf->e_type = ET_CORE; in fill_elf_header() 1317 elf->e_machine = machine; in fill_elf_header() 1318 elf->e_version = EV_CURRENT; in fill_elf_header() [all …]
|