Searched refs:ehdr (Results 26 - 50 of 105) sorted by relevance

12345

/linux-master/arch/parisc/kernel/
H A Dkexec_file.c23 struct elfhdr ehdr; local
28 ret = kexec_build_elf_info(kernel_buf, kernel_len, &ehdr, &elf_info);
32 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr);
36 image->start = __pa(elf_info.ehdr->e_entry);
/linux-master/arch/arm/kernel/
H A Dvdso.c100 static void * __init find_section(Elf32_Ehdr *ehdr, const char *name, argument
108 sechdrs = (void *)ehdr + ehdr->e_shoff;
109 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset;
112 for (i = 1; i < ehdr->e_shnum; i++) {
116 return (void *)ehdr + sechdrs[i].sh_offset;
156 static void __init patch_vdso(void *ehdr) argument
161 .hdr = ehdr,
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
H A Drammap.h19 u8 ever, u8 ehdr, u8 ecnt, u8 elen, int idx,
24 u8 ever, u8 ehdr, u8 ecnt, u8 elen, int idx,
/linux-master/arch/mips/vdso/
H A Dgenvdso.c113 const Elf32_Ehdr *ehdr; local
139 ehdr = addr;
141 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) {
148 elf_class = ehdr->e_ident[EI_CLASS];
160 switch (ehdr->e_ident[EI_DATA]) {
163 need_swap = ehdr->e_ident[EI_DATA] != HOST_ORDER;
172 if (swap_uint16(ehdr->e_machine) != EM_MIPS) {
178 } else if (swap_uint16(ehdr->e_type) != ET_DYN) {
/linux-master/arch/mips/kernel/
H A Delf.c82 } *ehdr = _ehdr; local
91 elf32 = ehdr->e32.e_ident[EI_CLASS] == ELFCLASS32;
92 flags = elf32 ? ehdr->e32.e_flags : ehdr->e64.e_flags;
141 } *ehdr = _ehdr; local
151 elf32 = ehdr->e32.e_ident[EI_CLASS] == ELFCLASS32;
152 flags = elf32 ? ehdr->e32.e_flags : ehdr->e64.e_flags;
/linux-master/tools/testing/selftests/sgx/
H A Dload.c142 Elf64_Ehdr *ehdr; local
146 ehdr = encl->bin;
147 sections = encl->bin + ehdr->e_shoff;
149 for (i = 0; i < ehdr->e_shnum; i++) {
157 for (i = 0; i < ehdr->e_shnum; i++) {
183 Elf64_Ehdr *ehdr; local
229 ehdr = encl->bin;
230 phdr_tbl = encl->bin + ehdr->e_phoff;
234 for (i = 0; i < ehdr->e_phnum; i++) {
246 for (i = 0, j = 0; i < ehdr
[all...]
/linux-master/kernel/
H A Dkexec_file.c838 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff;
842 for (i = 0; i < pi->ehdr->e_shnum; i++) {
903 sechdrs_size = array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum);
907 memcpy(sechdrs, (void *)pi->ehdr + pi->ehdr->e_shoff, sechdrs_size);
912 kbuf->image->start = pi->ehdr->e_entry;
914 for (i = 0; i < pi->ehdr->e_shnum; i++) {
942 pi->ehdr->e_entry >= sechdrs[i].sh_addr &&
943 pi->ehdr
1076 const Elf_Ehdr *ehdr; local
[all...]
/linux-master/scripts/
H A Drecordmcount.c514 Elf32_Ehdr *ehdr; local
517 ehdr = mmap_file(fname);
518 if (!ehdr)
524 switch (ehdr->e_ident[EI_DATA]) {
528 ehdr->e_ident[EI_DATA], fname);
557 if (memcmp(ELFMAG, ehdr->e_ident, SELFMAG) != 0 ||
558 w2(ehdr->e_type) != ET_REL ||
559 ehdr->e_ident[EI_VERSION] != EV_CURRENT) {
565 switch (w2(ehdr->e_machine)) {
568 w2(ehdr
[all...]
/linux-master/net/core/
H A Dselftests.c61 struct ethhdr *ehdr; local
81 ehdr = skb_push(skb, ETH_HLEN);
93 eth_zero_addr(ehdr->h_dest);
96 ether_addr_copy(ehdr->h_source, attr->src);
98 ether_addr_copy(ehdr->h_dest, attr->dst);
100 ehdr->h_proto = htons(ETH_P_IP);
113 (sizeof(*ihdr) + sizeof(*ehdr)));
131 iplen = attr->max_size - sizeof(*ehdr);
179 struct ethhdr *ehdr; local
193 ehdr
[all...]
/linux-master/tools/perf/util/
H A Dsymsrc.h22 GElf_Ehdr ehdr; member in struct:symsrc
H A Dgenelf.c255 Elf_Ehdr *ehdr; local
277 ehdr = elf_newehdr(e);
278 if (!ehdr) {
279 warnx("cannot get ehdr");
283 ehdr->e_ident[EI_DATA] = GEN_ELF_ENDIAN;
284 ehdr->e_ident[EI_CLASS] = GEN_ELF_CLASS;
285 ehdr->e_machine = GEN_ELF_ARCH;
286 ehdr->e_type = ET_DYN;
287 ehdr->e_entry = GEN_ELF_TEXT_OFFSET;
288 ehdr
[all...]
/linux-master/arch/s390/kernel/
H A Dcrash_dump.c454 static void *ehdr_init(Elf64_Ehdr *ehdr, int mem_chunk_cnt) argument
456 memset(ehdr, 0, sizeof(*ehdr));
457 memcpy(ehdr->e_ident, ELFMAG, SELFMAG);
458 ehdr->e_ident[EI_CLASS] = ELFCLASS64;
459 ehdr->e_ident[EI_DATA] = ELFDATA2MSB;
460 ehdr->e_ident[EI_VERSION] = EV_CURRENT;
461 memset(ehdr->e_ident + EI_PAD, 0, EI_NIDENT - EI_PAD);
462 ehdr->e_type = ET_CORE;
463 ehdr
[all...]
H A Dmachine_kexec_file.c321 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff;
322 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset;
323 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset;
325 relas = (void *)pi->ehdr + relsec->sh_offset;
333 sym = (void *)pi->ehdr + symtab->sh_offset;
351 if (sym->st_shndx >= pi->ehdr->e_shnum &&
/linux-master/samples/bpf/
H A Dtest_lwt_bpf.c164 struct ethhdr ehdr; local
171 ehdr.h_proto = bpf_htons(ETH_P_IP);
172 memcpy(&ehdr.h_source, &smac, 6);
173 memcpy(&ehdr.h_dest, &dmac, 6);
175 ret = bpf_skb_store_bytes(skb, 0, &ehdr, sizeof(ehdr), 0);
/linux-master/net/ethtool/
H A Dtunnels.c247 void *ehdr; local
251 ehdr = ethnl_dump_put(skb, cb,
253 if (!ehdr) {
261 genlmsg_cancel(skb, ehdr);
269 genlmsg_cancel(skb, ehdr);
274 genlmsg_end(skb, ehdr);
H A Dcabletest.c23 void *ehdr; local
29 ehdr = ethnl_bcastmsg_put(skb, cmd);
30 if (!ehdr) {
45 genlmsg_end(skb, ehdr);
114 phydev->ehdr = ethnl_bcastmsg_put(phydev->skb, cmd);
115 if (!phydev->ehdr) {
157 genlmsg_end(phydev->skb, phydev->ehdr);
/linux-master/fs/proc/
H A Dvmcore.c1211 Elf64_Ehdr ehdr; local
1217 rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf64_Ehdr), &addr);
1222 if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0 ||
1223 (ehdr.e_type != ET_CORE) ||
1224 !vmcore_elf64_check_arch(&ehdr) ||
1225 ehdr.e_ident[EI_CLASS] != ELFCLASS64 ||
1226 ehdr.e_ident[EI_VERSION] != EV_CURRENT ||
1227 ehdr.e_version != EV_CURRENT ||
1228 ehdr.e_ehsize != sizeof(Elf64_Ehdr) ||
1229 ehdr
1267 Elf32_Ehdr ehdr; local
1398 Elf64_Ehdr *ehdr = (Elf64_Ehdr *)elfptr; local
1418 Elf32_Ehdr *ehdr = (Elf32_Ehdr *)elfptr; local
[all...]
/linux-master/net/tipc/
H A Dcrypto.c274 static inline int tipc_ehdr_size(struct tipc_ehdr *ehdr);
742 struct tipc_ehdr *ehdr; local
791 ehdr = (struct tipc_ehdr *)skb->data;
794 salt ^= __be32_to_cpu(ehdr->addr);
798 memcpy(iv + 4, (u8 *)&ehdr->seqno, 8);
801 ehsz = tipc_ehdr_size(ehdr);
885 struct tipc_ehdr *ehdr; local
916 ehdr = (struct tipc_ehdr *)skb->data;
919 salt ^= __be32_to_cpu(ehdr->addr);
920 else if (ehdr
989 tipc_ehdr_size(struct tipc_ehdr *ehdr) argument
1002 struct tipc_ehdr *ehdr; local
1035 struct tipc_ehdr *ehdr; local
1383 struct tipc_ehdr *ehdr = (struct tipc_ehdr *)skb_network_header(skb); local
1895 struct tipc_ehdr *ehdr; local
[all...]
/linux-master/arch/powerpc/kexec/
H A Delf_64.c37 struct elfhdr ehdr; local
46 ret = kexec_build_elf_info(kernel_buf, kernel_len, &ehdr, &elf_info);
58 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr);
/linux-master/arch/x86/kernel/
H A Dmachine_kexec_64.c397 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff;
398 strtab = (char *)pi->ehdr + sechdrs[symtabsec->sh_link].sh_offset;
399 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset;
401 rel = (void *)pi->ehdr + relsec->sh_offset;
431 sym = (void *)pi->ehdr + symtabsec->sh_offset;
455 else if (sym->st_shndx >= pi->ehdr->e_shnum) {
/linux-master/tools/objtool/
H A Dorc_dump.c50 memcpy(&dummy_elf.ehdr, elf64_getehdr(elf), sizeof(dummy_elf.ehdr));
/linux-master/drivers/media/platform/st/sti/c8sectpfe/
H A Dc8sectpfe-core.c929 struct elf32_hdr *ehdr; local
942 ehdr = (struct elf32_hdr *)fw->data;
945 class = ehdr->e_ident[EI_CLASS];
951 if (ehdr->e_ident[EI_DATA] != ELFDATA2LSB) {
956 if (fw->size < ehdr->e_shoff + sizeof(struct elf32_shdr)) {
961 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG)) {
967 ehdr = (Elf32_Ehdr *)fw->data;
968 if (ehdr->e_ident[EI_MAG0] != ELFMAG0 ||
969 ehdr->e_ident[EI_MAG1] != ELFMAG1 ||
970 ehdr
1047 Elf32_Ehdr *ehdr; local
[all...]
/linux-master/arch/riscv/kernel/
H A Dmodule-sections.c90 int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, argument
100 for (i = 0; i < ehdr->e_shnum; i++) {
123 for (i = 0; i < ehdr->e_shnum; i++) {
124 Elf_Rela *relas = (void *)ehdr + sechdrs[i].sh_offset;
/linux-master/arch/loongarch/kernel/
H A Dmodule-sections.c104 int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, argument
113 for (i = 0; i < ehdr->e_shnum; i++) {
138 for (i = 0; i < ehdr->e_shnum; i++) {
140 Elf_Rela *relas = (void *)ehdr + sechdrs[i].sh_offset;
/linux-master/include/linux/
H A Dkexec.h113 const Elf_Ehdr *ehdr; member in struct:purgatory_info
279 const struct elfhdr *ehdr; member in struct:kexec_elf_info
283 int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr,
286 int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,

Completed in 219 milliseconds

12345