HomeSort by: relevance | last modified time | path
    Searched refs:elf (Results 1 - 25 of 75) sorted by relevancy

1 2 3

  /src/sys/arch/mipsco/include/
elf.h 1 /* $NetBSD: elf.h,v 1.1 2000/08/12 22:58:15 wdk Exp $ */
3 #include <mips/elf.h>
  /src/share/man/man8/man8.macppc/
Makefile 4 MLINKS+= ofwboot.8 ofwboot.elf.8 ofwboot.8 ofwboot.xcf.8
  /src/sys/arch/evbarm/stand/bootimx23/
bootimx23.bd 19 # elf(3) binary.
  /src/sys/lib/libsa/
lookup_elf32.c 49 Elf_Ehdr *elf; local in function:ELFNAMEEND
55 elf = sstab;
56 if (elf->e_shoff == 0)
59 switch (elf->e_machine) {
68 shp = (Elf_Shdr *)((char *)sstab + elf->e_shoff);
69 for (i = 0; i < elf->e_shnum; i++) {
loadfile_elf32.c 334 * Load a dynamic ELF binary into memory. Layout of the memory:
336 * | ELF HEADER | SECT HEADERS | KERN SECTS | REL/RELA/SYM/STR SECTS |
338 * The ELF HEADER start address is marks[MARK_END]. We then map the rest
342 * address of the ELF HEADER. We just give the kernel a pointer to the ELF
347 ELFNAMEEND(loadfile_dynamic)(int fd, Elf_Ehdr *elf, u_long *marks, int flags)
359 internalize_ehdr(elf->e_ident[EI_DATA], elf);
361 if (elf->e_type != ET_REL) {
367 shdrsz = elf->e_shnum * sizeof(Elf_Shdr)
    [all...]
  /src/sys/arch/sgimips/stand/boot/
Makefile 5 # and it's already stripped since it's a copy of the stripped ELF one.
20 # XXX Temporary hack to install the ELF version, too.
22 CLEANFILES+= ip2xboot ip2xboot.elf ip3xboot ip3xboot.elf
31 -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
32 @${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
38 -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
39 @${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
  /src/sys/arch/dreamcast/dev/microcode/
Makefile 17 aica_armcode.h: aica_armcode.elf
18 ${OBJCOPY} -O binary aica_armcode.elf aica_armcode.bin
26 aica_armcode.elf: aica_arm_locore.o aica_arm.o
28 -o aica_armcode.elf aica_arm_locore.o aica_arm.o
34 rm -f *.o aica_armcode.elf aica_armcode.bin aica_armcode.h.tmp
  /src/sys/arch/pmax/stand/smallnet/setnetimage/
Makefile 25 smallnet.elf: ${SNDIR}/smallnet
28 kernel: smallnet.elf
30 ${MIPS_ELF2ECOFF} smallnet.elf smallnet
  /src/sys/arch/mvmeppc/stand/boot/
Makefile 4 PROG= boot.elf
10 ${OBJCOPY} -O binary ${.OBJDIR}/boot.elf $@
  /src/sys/arch/hpcmips/stand/pbsdboot/
elf.c 1 /* $NetBSD: elf.c,v 1.9 2007/03/05 21:05:01 dogcow Exp $ */
131 Elf_Ehdr elfx, *elf = &elfx; local in function:scanfile
146 if (read(fd, (void*)elf, sizeof(Elf_Ehdr)) != sizeof(Elf_Ehdr)) {
152 if ((phtbl = (Elf_Phdr *)alloc(sizeof(*phtbl) * elf->e_phnum)) == NULL ||
153 (shtbl = (Elf_Shdr *)alloc(sizeof(*shtbl) * elf->e_shnum)) == NULL) {
159 if (lseek(fd, elf->e_phoff, SEEK_SET) == -1) {
164 if (read(fd, (void *)phtbl, sizeof(Elf_Phdr) * elf->e_phnum)
165 != (int)(sizeof(Elf_Phdr) * elf->e_phnum)) {
171 if (lseek(fd, elf->e_shoff, SEEK_SET) == -1) {
176 if (read(fd, (void *)shtbl, sizeof(Elf_Shdr) * elf->e_shnum
    [all...]
  /src/usr.bin/ldd/elf32_compat/
Makefile 23 .include "../Makefile.elf"
  /src/sys/arch/zaurus/stand/zbsdmod/
zbsdmod.c 107 #define elf ((Elf32_Ehdr *)bsdimage) macro
108 #define phdr ((Elf32_Phdr *)((char *)elf + elf->e_phoff))
110 if (memcmp(elf->e_ident, ELFMAG, SELFMAG) != 0 ||
111 elf->e_ident[EI_CLASS] != ELFCLASS32)
122 for (i = 0; i < elf->e_phnum; i++) {
169 * Set up pointers to copied ELF and section headers.
175 sz = elf->e_shnum * sizeof(Elf_Shdr);
176 shp = (Elf_Shdr *)((vaddr_t)elf + elf->e_shoff)
    [all...]
  /src/sys/arch/newsmips/stand/boot/
Makefile 16 CLEANFILES+= ${PROG}.elf ${PROG}.tmp
39 ${LD} ${LINKFLAGS} -o ${PROG}.elf ${OBJS} ${LIBS}
40 -${SIZE} ${PROG}.elf
41 ${OBJCOPY} -O binary ${PROG}.elf ${PROG}
  /src/sys/arch/sgimips/stand/bootiris/
Makefile 34 # XXX Temporary hack to install the ELF version, too.
36 CLEANFILES+= ip12boot ip12boot.elf
48 -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
51 -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
53 @${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
  /src/usr.bin/ldd/elf32/
Makefile 30 .include "../Makefile.elf"
  /src/sys/arch/next68k/stand/boot/
Makefile 51 CLEANFILES+= srt0.o boot.elf boot.raw limits.h
73 ${LD} -N -Ttext ${RELOC} -e start srt0.o ${OBJS} ${LIBS} -o $@.elf
74 ${SIZE} $@.elf
75 ${OBJCOPY} -O binary $@.elf $@.raw
76 (${SIZE} $@.elf | tail +2 | ${TOOL_AWK} ${AWKPROG} | \
  /src/lib/libexecinfo/
symtab.c 94 Elf *elf; local in function:symtab_create
100 warnx("Elf Library is out of date.");
104 elf = elf_begin(fd, ELF_C_READ, NULL);
105 if (elf == NULL) {
106 warnx("Error opening elf file: %s", elf_errmsg(elf_errno()));
112 elf_end(elf);
115 if (gelf_getehdr(elf, &ehdr) == NULL) {
116 warnx("Error getting ELF Ehdr");
117 elf_end(elf);
    [all...]
  /src/sys/arch/vax/boot/xxboot/
bootxx.c 100 Elf32_Ehdr elf; member in union:Xmain::__anon4825d691010a
146 } else if (memcmp(hdr.elf.e_ident, ELFMAG, SELFMAG) == 0) {
148 size_t off = sizeof(hdr.elf);
150 read(io, (char *)&hdr.elf + sizeof(hdr.aout),
151 sizeof(hdr.elf) - sizeof(hdr.aout));
152 if (hdr.elf.e_machine != EM_VAX || hdr.elf.e_type != ET_EXEC
153 || hdr.elf.e_phnum != 1)
156 entry = hdr.elf.e_entry;
157 if (hdr.elf.e_phoff != sizeof(hdr.elf)
    [all...]
  /src/sys/ddb/
db_elf.c 69 "ELF",
109 Elf_Ehdr *elf; local in function:db_elf_sym_init
127 * Elf exec header
139 * Validate the Elf header.
141 elf = (Elf_Ehdr *)symtab;
142 if (memcmp(elf->e_ident, ELFMAG, SELFMAG) != 0 ||
143 elf->e_ident[EI_CLASS] != ELFCLASS)
146 switch (elf->e_machine) {
158 if (elf->e_shoff == 0)
160 shp = (Elf_Shdr *)((char *)symtab + elf->e_shoff)
215 Elf_Ehdr *elf = STAB_TO_EHDR(stab); local in function:db_elf_find_strtab
    [all...]
  /src/sys/arch/evbarm/stand/boot2440/
Makefile 12 CLEANFILES+= ${PROG}.elf
56 ${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${.TARGET}.elf \
58 ${OBJCOPY} -S -O binary ${.TARGET}.elf ${.TARGET}
  /src/usr.bin/ldd/elf64/
Makefile 49 .include "../Makefile.elf"
  /src/sys/arch/arc/stand/boot/
Makefile 62 -e start -o ${PROG}.elf ${OBJS} ${LIBS}
63 @${SIZE} ${PROG}.elf
66 ${PROG}.elf ${.TARGET}
68 CLEANFILES+= ${PROG}.elf ${PROG}.map
  /src/sys/arch/atari/stand/tostools/libtos/
Makefile 5 OBJS = biosrw.o ahdi.o aout.o bsdlabel.o bsdstart.o cread.o diskio.o elf.o \
  /src/sys/arch/macppc/stand/ofwboot/
Makefile 10 FILES= ${PROG}.elf ${PROG}.xcf
61 CLEANFILES+= ${PROG}.elf ${PROG}.el1 ${PROG}.mrg ${PROG}.xcf
94 all realall: ${PROG} ${PROG}.xcf ${PROG}.elf
105 ${PROG}.elf: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
107 ${LD} -s -o ${PROG}.elf ${LINKFLAGS} \
  /src/sys/arch/ews4800mips/stand/boot/
Makefile 77 CLEANFILES += ${PROG} ${PROG}.elf ${PROG}.coff ${PROG}.tmp ${PROG}.dis
79 CLEANFILES += ${BOOT_KERNEL} ${BOOT_KERNEL}.elf ${BOOT_KERNEL}.tmp
117 ${LD} ${LINKFLAGS} -S -o ${PROG}.elf ${OBJS} ${LIBS} \
119 ${OBJDUMP} -h ${PROG}.elf
120 # ${OBJDUMP} -m mips:4000 -d ${PROG}.elf > ${PROG}.dis
121 mv ${PROG}.elf ${PROG}
134 ${LD} ${LINKFLAGS} -o ${BOOT_KERNEL}.elf ${OBJS} ${LIBS} \
136 mv ${BOOT_KERNEL}.elf ${BOOT_KERNEL}

Completed in 39 milliseconds

1 2 3