search for: phentsize

Displaying 7 results from an estimated 7 matches for "phentsize".

2013 Dec 01
0
[PATCH v2 4/4] efi: PE file size differ from in-memory size
...161,17 +161,16 @@ static void usage(char *progname) int main(int argc, char **argv) { - struct stat st; Elf32_Ehdr e32_hdr; Elf64_Ehdr e64_hdr; __uint32_t entry; __uint8_t class; - __uint64_t shoff; - __uint16_t shnum, shentsize, shstrndx; + __uint64_t phoff = 0; + __uint16_t phnum = 0, phentsize = 0; unsigned char *id; FILE *f_in, *f_out; void *buf; - size_t datasz, rv; + size_t datasz, memsz, rv; if (argc < 3) { usage(argv[0]); @@ -184,11 +183,6 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } - if (stat(argv[1], &st) != 0) { - perror("stat");...
2013 Nov 27
0
[PATCH 4/4] efi: PE file size differ from in-memory size
...157,17 +157,16 @@ static void usage(char *progname) int main(int argc, char **argv) { - struct stat st; Elf32_Ehdr e32_hdr; Elf64_Ehdr e64_hdr; __uint32_t entry; __uint8_t class; - __uint64_t shoff; - __uint16_t shnum, shentsize, shstrndx; + __uint64_t phoff = 0; + __uint16_t phnum = 0, phentsize = 0; unsigned char *id; FILE *f_in, *f_out; void *buf; - size_t datasz, rv; + size_t datasz, memsz, rv; if (argc < 3) { usage(argv[0]); @@ -180,11 +179,6 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } - if (stat(argv[1], &st) != 0) { - perror("stat");...
2001 Jul 25
2
using compiled fortran in R
...ne> R to start R 3. > dyn.load("hello.o") at which point I am getting the error msg: Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library "/home/hawkins/Rfortran/hello.o": /home/hawkins/Rfortran/hello.o: ELF file's phentsize not the expected size Can anyone (please) correct my procedure, offer a suggestion? thanks, Natalie Hawkins -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "...
2013 Nov 27
20
[PATCH 0/4] efi: PE header generation fix
The PE headers of the generated efi file were quite buggy. And since OVMF perform a few consistency checks, syslinux was unable to run on it. I don't pretend to have a thorough understanding of the PE+ headers, some bugs may remain. :) Celelibi (4): efi: Fix PE header field rva_and_sizes_nr efi: Location, size and alignment of .text section efi: Useless relocations in PE file efi: PE
2005 Mar 06
1
testers sought for script to interpret ELF/klibc executables
...ort header\n"; return; } if ($magic !~ /^\x7fELF(.)/) { print "$path: bad magic\n"; return; } my $class = ord($1); my ($ehdrPat, $ehdrSize, $phdrPat, $phdrSize, $phdrFields); my $ehdrFields = [qw{ ident type machine version entry phoff shoff flags ehsize phentsize phnum shentsize shnum shstrndx }]; if ($class == ELFCLASS32) { $ehdrSize = SZ_ELF32HDR; $ehdrPat = "a[16] SS LL LL L SSSSSS"; $phdrSize = SZ_ELF32PHDR; $phdrPat = "LL LL LL LL"; $phdrFields = [qw{ type offset vaddr paddr filesz memsz flags align }]; }...
1999 Oct 08
1
error using dyn.load
...mpting 6.12.1 of Phil Spector's book. When I try to load the object file I get an error I don't understand: > dyn.load("runa.o") Error in dyn.load(x) : unable to load shared library "/usr/home/tdlong/run_avg/runa.o": /usr/home/tdlong/run_avg/runa.o: ELF file's phentsize not the expected size I am running version 0.64.2 or R under Linux Red Hat 5.2 here is the C code I made an object for, I compiled with gcc -m486 -c runa.c #include <stdio.h> #include <stdlib.h> #include <time.h> void runavg(double *x, long n, long k, double *r); void runa(d...
1999 Jul 19
1
Using Scompile with R on Linux
...a program called Scompile that translates S (or R) code into C code. Although Scompile has an option for dyn.load.shared, it evidently isn't exactly equivalent to dyn.load in R, because when compiled using Scompile, the resulting object causes the complaint by dyn.load that "ELF file's phentsize not the expected size". Compiling the C code produced by Scompile with R's SHLIB creates a shared library that dyn.load's OK, but it seems that the associated library libscompile.a is not being loaded correctly, as there are now complaints about undefined symbols. Scompile's syntax...