/linux-master/arch/powerpc/include/uapi/asm/ |
H A D | sigcontext.h | 14 #include <asm/elf.h>
|
H A D | ucontext.h | 8 #include <asm/elf.h>
|
/linux-master/arch/openrisc/include/asm/ |
H A D | elf.h | 19 #include <uapi/asm/elf.h>
|
/linux-master/tools/lib/symbol/ |
H A D | kallsyms.h | 5 #include <elf.h>
|
/linux-master/include/uapi/linux/ |
H A D | elf-fdpic.h | 2 /* elf-fdpic.h: FDPIC ELF load map 16 #include <linux/elf.h>
|
/linux-master/arch/xtensa/boot/ |
H A D | Makefile | 25 Image: boot-elf 30 boot-elf boot-redboot: $(addprefix $(obj)/,$(subdir-y)) 41 boot-elf: $(obj)/vmlinux.bin
|
/linux-master/arch/x86/realmode/rm/ |
H A D | Makefile | 44 LDFLAGS_realmode.elf := -m elf_i386 --emit-relocs -T 47 targets += realmode.elf 48 $(obj)/realmode.elf: $(obj)/realmode.lds $(REALMODE_OBJS) FORCE 54 $(obj)/realmode.bin: $(obj)/realmode.elf $(obj)/realmode.relocs FORCE 61 $(obj)/realmode.relocs: $(obj)/realmode.elf FORCE
|
/linux-master/arch/alpha/boot/tools/ |
H A D | objstrip.c | 30 # include <linux/elf.h> 61 struct elfhdr *elf; local 149 elf = (struct elfhdr *) buf; 151 if (memcmp(&elf->e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) { 152 if (elf->e_type != ET_EXEC) { 157 if (!elf_check_arch(elf)) { 159 prog_name, elf->e_machine); 162 if (elf->e_phnum != 1) { 165 prog_name, elf->e_phnum); 168 e_entry = elf [all...] |
/linux-master/scripts/mod/ |
H A D | modpost.h | 13 #include <elf.h> 19 /* On BSD-alike OSes elf.h defines these according to host's word size */ 165 static inline bool is_valid_name(struct elf_info *elf, Elf_Sym *sym) argument 167 const char *name = elf->strtab + sym->st_name; 175 void symsearch_init(struct elf_info *elf); 176 void symsearch_finish(struct elf_info *elf); 177 Elf_Sym *symsearch_find_nearest(struct elf_info *elf, Elf_Addr addr,
|
H A D | modpost.c | 15 #include <elf.h> 697 static const char *sym_name(struct elf_info *elf, Elf_Sym *sym) argument 700 return elf->strtab + sym->st_name; 760 static void check_section(const char *modname, struct elf_info *elf, argument 763 const char *sec = sech_name(elf, sechdr); 997 static Elf_Sym *find_fromsym(struct elf_info *elf, Elf_Addr addr, argument 1000 return symsearch_find_nearest(elf, addr, secndx, false, ~0); 1003 static Elf_Sym *find_tosym(struct elf_info *elf, Elf_Addr addr, Elf_Sym *sym) argument 1008 if (is_valid_name(elf, sym)) 1015 new_sym = symsearch_find_nearest(elf, add 1020 is_executable_section(struct elf_info *elf, unsigned int secndx) argument 1028 default_mismatch_handler(const char *modname, struct elf_info *elf, const struct sectioncheck* const mismatch, Elf_Sym *tsym, unsigned int fsecndx, const char *fromsec, Elf_Addr faddr, const char *tosec, Elf_Addr taddr) argument 1078 check_export_symbol(struct module *mod, struct elf_info *elf, Elf_Addr faddr, const char *secname, Elf_Sym *sym) argument 1148 check_section_mismatch(struct module *mod, struct elf_info *elf, Elf_Sym *sym, unsigned int fsecndx, const char *fromsec, Elf_Addr faddr, Elf_Addr taddr) argument 1347 get_rel_type_and_sym(struct elf_info *elf, uint64_t r_info, unsigned int *r_type, unsigned int *r_sym) argument 1377 section_rela(struct module *mod, struct elf_info *elf, unsigned int fsecndx, const char *fromsec, const Elf_Rela *start, const Elf_Rela *stop) argument 1419 section_rel(struct module *mod, struct elf_info *elf, unsigned int fsecndx, const char *fromsec, const Elf_Rel *start, const Elf_Rel *stop) argument 1468 check_sec_ref(struct module *mod, struct elf_info *elf) argument [all...] |
/linux-master/tools/objtool/arch/x86/ |
H A D | orc.c | 100 int write_orc_entry(struct elf *elf, struct section *orc_sec, argument 110 orc->sp_offset = bswap_if_needed(elf, orc->sp_offset); 111 orc->bp_offset = bswap_if_needed(elf, orc->bp_offset); 114 if (!elf_init_reloc_text_sym(elf, ip_sec, idx * sizeof(int), idx, 177 void orc_print_dump(struct elf *dummy_elf, struct orc_entry *orc, int i)
|
H A D | special.c | 96 text_reloc = find_reloc_by_dest_range(file->elf, insn->sec, 126 rodata_reloc = find_reloc_by_dest(file->elf, table_sec, table_offset);
|
/linux-master/arch/s390/kernel/ |
H A D | cpufeature.c | 8 #include <asm/elf.h>
|
/linux-master/include/linux/ |
H A D | crash_reserve.h | 7 #include <linux/elf.h>
|
H A D | elfnote.h | 62 #include <uapi/linux/elf.h> 74 struct elf##size##_note _nhdr; \
|
/linux-master/tools/objtool/ |
H A D | orc_gen.c | 124 sec = find_section_by_name(file->elf, ".orc_unwind"); 129 orc_sec = elf_create_section(file->elf, ".orc_unwind", 134 sec = elf_create_section_pair(file->elf, ".orc_unwind_ip", sizeof(int), nr, nr); 140 if (write_orc_entry(file->elf, orc_sec, sec, idx++,
|
/linux-master/tools/testing/selftests/sgx/ |
H A D | Makefile | 23 TEST_FILES := $(OUTPUT)/test_encl.elf 25 all: $(TEST_CUSTOM_PROGS) $(OUTPUT)/test_encl.elf 50 $(OUTPUT)/test_encl.elf: test_encl.c test_encl_bootstrap.S 54 $(OUTPUT)/test_encl.elf \
|
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | opal-core.c | 14 #include <linux/elf.h> 308 Elf64_Ehdr *elf; local 357 elf = (Elf64_Ehdr *)bufp; 359 memcpy(elf->e_ident, ELFMAG, SELFMAG); 360 elf->e_ident[EI_CLASS] = ELF_CLASS; 361 elf->e_ident[EI_DATA] = ELFDATA2MSB; 362 elf->e_ident[EI_VERSION] = EV_CURRENT; 363 elf->e_ident[EI_OSABI] = ELF_OSABI; 364 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); 365 elf [all...] |
/linux-master/arch/arm/kernel/ |
H A D | elf.c | 6 #include <linux/elf.h> 7 #include <linux/elf-fdpic.h>
|
/linux-master/arch/xtensa/boot/boot-elf/ |
H A D | Makefile | 23 $(obj)/../Image.elf: $(obj)/Image.o $(obj)/boot.lds 30 all Image: $(obj)/../Image.elf
|
/linux-master/arch/xtensa/boot/boot-redboot/ |
H A D | Makefile | 21 $(obj)/zImage.elf: $(obj)/zImage.o $(LIBS) 27 $(obj)/../zImage.redboot: $(obj)/zImage.elf
|
/linux-master/drivers/firmware/efi/libstub/ |
H A D | Makefile.zboot | 45 -DZBOOT_EFI_PATH="\"$(realpath $(obj)/vmlinuz.efi.elf)\"" \ 55 LDFLAGS_vmlinuz.efi.elf := -T $(srctree)/drivers/firmware/efi/libstub/zboot.lds 56 $(obj)/vmlinuz.efi.elf: $(obj)/vmlinuz.o $(ZBOOT_DEPS) FORCE 60 $(obj)/vmlinuz.efi: $(obj)/vmlinuz.efi.elf FORCE 63 targets += zboot-header.o vmlinux.bin vmlinuz vmlinuz.o vmlinuz.efi.elf vmlinuz.efi
|
/linux-master/tools/bpf/resolve_btfids/ |
H A D | main.c | 121 Elf *elf; member in struct:object::__anon289 290 /* Older libelf.h and glibc elf.h might not yet define the ELF compression types. */ 305 static int compressed_section_fix(Elf *elf, Elf_Scn *scn, GElf_Shdr *sh) argument 307 int expected = gelf_getclass(elf) == ELFCLASS32 ? 4 : 8; 334 Elf *elf; local 346 elf = elf_begin(fd, ELF_C_RDWR_MMAP, NULL); 347 if (!elf) { 355 obj->efile.elf = elf; 357 elf_flagelf(elf, ELF_C_SE [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | trace_helpers.c | 347 Elf *elf = NULL; local 360 elf = elf_begin(fd, ELF_C_READ_MMAP, NULL); 361 if (!elf) 363 if (elf_kind(elf) != ELF_K_ELF) 365 if (!gelf_getehdr(elf, &ehdr)) 372 phdr = gelf_getphdr(elf, i, &mem); 377 data = elf_rawfile(elf, &max); 388 if (elf) 389 elf_end(elf);
|
/linux-master/tools/perf/util/ |
H A D | unwind-libunwind-local.c | 19 #include <elf.h> 174 Elf *elf; local 179 elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); 180 if (elf == NULL) 183 if (gelf_getehdr(elf, &ehdr) == NULL) 186 if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL)) 193 elf_end(elf); 211 Elf *elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); local 216 if (elf == NULL) 218 (void)elf_getphdrnum(elf, 234 Elf *elf; local [all...] |