Searched refs:elf (Results 1 - 25 of 46) sorted by relevance

12

/osnet-11/usr/src/grub/grub2/grub-core/kern/
H A Delf.c0 /* elf.c - load ELF files */
21 #include <grub/elf.h>
32 grub_elf_check_header (grub_elf_t elf) argument
34 Elf32_Ehdr *e = &elf->ehdr.ehdr32;
48 grub_elf_close (grub_elf_t elf) argument
50 grub_file_t file = elf->file;
52 grub_free (elf->phdrs);
53 grub_free (elf);
64 grub_elf_t elf; local
66 elf
98 grub_elf_t elf; local
115 grub_elf_is_elf32(grub_elf_t elf) argument
121 grub_elf32_load_phdrs(grub_elf_t elf) argument
146 grub_elf32_phdr_iterate(grub_elf_t elf, int NESTED_FUNC_ATTR (*hook) (grub_elf_t, Elf32_Phdr *, void *), void *hook_arg) argument
177 grub_elf32_size(grub_elf_t elf, Elf32_Addr *base, grub_uint32_t *max_align) argument
239 grub_elf32_load_segment(grub_elf_t elf, Elf32_Phdr *phdr, void *hook) argument
304 grub_elf_is_elf64(grub_elf_t elf) argument
310 grub_elf64_load_phdrs(grub_elf_t elf) argument
335 grub_elf64_phdr_iterate(grub_elf_t elf, int NESTED_FUNC_ATTR (*hook) (grub_elf_t, Elf64_Phdr *, void *), void *hook_arg) argument
366 grub_elf64_size(grub_elf_t elf, Elf64_Addr *base, grub_uint64_t *max_align) argument
429 grub_elf64_load_segment(grub_elf_t elf, Elf64_Phdr *phdr, void *hook) argument
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/loader/i386/coreboot/
H A Dchainloader.c88 grub_elf_t elf; local
106 elf = grub_elf_file (file);
107 if (!elf)
114 if (!grub_elf_is_elf32 (elf))
118 grub_elf_close (elf);
121 entry = elf->ehdr.ehdr32.e_entry & 0xFFFFFF;
123 err = grub_elf32_load (elf, grub_chain_elf32_hook, 0, 0);
125 grub_elf_close (elf);
/osnet-11/usr/src/grub/grub2/grub-core/loader/powerpc/ieee1275/
H A Dlinux.c20 #include <grub/elf.h>
152 grub_linux_load32 (grub_elf_t elf) argument
160 linux_size = grub_elf32_size (elf, &base_addr, &align);
167 entry = elf->ehdr.ehdr32.e_entry & ~ELF32_LOADMASK;
196 return grub_elf32_load (elf, offset_phdr, 0, 0);
200 grub_linux_load64 (grub_elf_t elf) argument
208 linux_size = grub_elf64_size (elf, &base_addr, &align);
215 entry = elf->ehdr.ehdr64.e_entry & ~ELF64_LOADMASK;
242 return grub_elf64_load (elf, offset_phdr, 0, 0);
249 grub_elf_t elf local
[all...]
/osnet-11/usr/src/grub/grub2/include/grub/
H A Delfload.h23 #include <grub/elf.h>
58 grub_elf32_phdr_iterate (grub_elf_t elf,
62 grub_elf64_phdr_iterate (grub_elf_t elf,
H A Dmachoload.h23 #include <grub/elf.h>
H A Ddl.h27 #include <grub/elf.h>
/osnet-11/usr/src/grub/grub2/grub-core/loader/mips/
H A Dlinux.c20 #include <grub/elf.h>
135 grub_linux_load32 (grub_elf_t elf, void **extra_mem, grub_size_t extra_size) argument
142 entry_addr = elf->ehdr.ehdr32.e_entry;
144 linux_size = grub_elf32_size (elf, &base, 0);
186 return grub_elf32_load (elf, offset_phdr, 0, 0);
190 grub_linux_load64 (grub_elf_t elf, void **extra_mem, grub_size_t extra_size) argument
197 entry_addr = elf->ehdr.ehdr64.e_entry;
199 linux_size = grub_elf64_size (elf, &base, 0);
240 return grub_elf64_load (elf, offset_phdr, 0, 0);
247 grub_elf_t elf local
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/loader/sparc64/ieee1275/
H A Dlinux.c20 #include <grub/elf.h>
245 grub_linux_load64 (grub_elf_t elf) argument
250 linux_entry = elf->ehdr.ehdr64.e_entry;
253 linux_size = grub_elf64_size (elf, 0, 0);
292 return grub_elf64_load (elf, offset_phdr, 0, 0);
300 grub_elf_t elf = 0; local
315 elf = grub_elf_file (file);
316 if (! elf)
319 if (elf->ehdr.ehdr32.e_type != ET_EXEC)
329 if (grub_elf_is_elf64 (elf))
[all...]
/osnet-11/usr/src/lib/libdtrace/common/
H A Ddrti.c92 Elf64_Ehdr *elf; local
94 Elf32_Ehdr *elf; local
131 elf = (void *)lmp->l_addr;
134 dh.dofhp_addr = elf->e_type == ET_DYN ? lmp->l_addr : 0;
H A Ddt_link.c28 #include <elf.h>
981 dt_link_error(dtrace_hdl_t *dtp, Elf *elf, int fd, dt_link_pair_t *bufs, argument
991 if (elf != NULL)
992 (void) elf_end(elf);
1015 Elf *elf = NULL; local
1033 return (dt_link_error(dtp, elf, fd, bufs,
1037 if ((elf = elf_begin(fd, ELF_C_RDWR, NULL)) == NULL) {
1038 return (dt_link_error(dtp, elf, fd, bufs,
1042 switch (elf_kind(elf)) {
1046 return (dt_link_error(dtp, elf, f
[all...]
/osnet-11/usr/src/lib/libproc/common/
H A DPidle.c114 Elf *elf = NULL; local
149 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) {
199 if (gelf_getehdr(elf, &ehdr) == NULL) {
204 if (elf_getphdrnum(elf, &phnum) == -1) {
217 if ((php = gelf_getphdr(elf, i, &phdr)) == NULL) {
232 (void) elf_end(elf);
280 if (elf != NULL)
281 (void) elf_end(elf);
H A DPsymtab.c1170 * The text segment for each load object contains the elf header and
1182 * We're looking through the elf file for several items: the symbol tables
1192 * reasaon, we fake up a elf file to use in its stead. If we can't read
1193 * the elf data in the process's address space, we fall back to using
1196 * The elf file that we fake up has to consist of sections for the
1205 file_differs(struct ps_prochandle *P, Elf *elf, file_info_t *fptr) argument
1223 * First, we find the checksum value in the elf file.
1226 while ((scn = elf_nextscn(elf, scn)) != NULL) {
1260 dprintf("elf cksum value is %llx\n", (u_longlong_t)cksum);
1350 Elf *elf; local
1596 Elf *elf; local
1628 Elf *elf; local
[all...]
H A DPsymtab_machelf32.c88 * Here are some useful pieces of elf trivia that will help
235 * put together a complete set of elf sections. They are
247 Elf *elf; local
341 /* elf header */
344 /* program headers from in-core elf fragment */
479 * The first elf section is always skipped.
629 /* read the elf hash bucket index */
707 if ((elf = elf_memory(elfdata, size)) == NULL) {
714 return (elf);
/osnet-11/usr/src/grub/grub-0.97/stage2/
H A Dboot.c26 #include "i386-elf.h"
53 Elf32_Ehdr *elf; member in union:__anon290
100 || pu.elf->e_ident[EI_OSABI] == ELFOSABI_FREEBSD
101 || grub_strcmp (pu.elf->e_ident + EI_BRAND, "FreeBSD") == 0
107 entry_addr = (entry_func) pu.elf->e_entry;
109 entry_addr = (entry_func) (pu.elf->e_entry & 0xFFFFFF);
116 if (pu.elf->e_phoff == 0 || pu.elf->e_phnum == 0
117 || ((pu.elf->e_phoff + (pu.elf
[all...]
/osnet-11/usr/src/lib/fm/topo/libtopo/common/
H A Dmod.c120 Elf *elf = NULL; local
135 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) {
139 if ((gelf_getehdr(elf, &ehdr)) == NULL) {
143 scn = elf_getscn(elf, 0); /* "seek" to start of sections */
144 while ((scn = elf_nextscn(elf, scn)) != NULL) {
153 sh_name = elf_strptr(elf,
163 (void) elf_end(elf);
168 if (elf != NULL)
169 (void) elf_end(elf);
/osnet-11/usr/src/grub/grub2/grub-core/kern/ia64/
H A Ddl_helper.c21 #include <grub/elf.h>
/osnet-11/usr/src/grub/grub2/grub-core/efiemu/i386/
H A Dloadcore32.c25 #include <grub/elf.h>
H A Dloadcore64.c25 #include <grub/elf.h>
/osnet-11/usr/src/grub/grub2/grub-core/kern/i386/
H A Ddl.c21 #include <grub/elf.h>
/osnet-11/usr/src/grub/grub2/grub-core/loader/i386/
H A Dbsd.c1234 grub_bsd_elf32_size_hook (grub_elf_t elf __attribute__ ((unused)),
1276 grub_bsd_elf64_size_hook (grub_elf_t elf __attribute__ ((unused)),
1317 grub_bsd_load_elf (grub_elf_t elf) argument
1324 if (grub_elf_is_elf32 (elf))
1328 entry = elf->ehdr.ehdr32.e_entry & 0xFFFFFF;
1329 err = grub_elf32_phdr_iterate (elf, grub_bsd_elf32_size_hook, NULL);
1339 err = grub_elf32_load (elf, grub_bsd_elf32_hook, 0, 0);
1344 return grub_openbsd_find_ramdisk32 (elf->file, kern_start,
1347 else if (grub_elf_is_elf64 (elf))
1357 entry = elf
1398 grub_elf_t elf; local
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/kern/sparc64/
H A Ddl.c21 #include <grub/elf.h>
/osnet-11/usr/src/grub/grub2/grub-core/kern/x86_64/
H A Ddl.c21 #include <grub/elf.h>
/osnet-11/usr/src/grub/grub2/grub-core/kern/powerpc/
H A Ddl.c21 #include <grub/elf.h>
/osnet-11/usr/src/grub/grub2/build-aux/
H A Dconfig.sub480 os=-elf
493 os=-elf
915 os=-elf
1209 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1375 os=-elf
1378 os=-elf
1418 os=-elf
1421 os=-elf
/osnet-11/usr/src/grub/grub2/grub-core/kern/mips/
H A Ddl.c21 #include <grub/elf.h>

Completed in 141 milliseconds

12