Displaying 4 results from an estimated 4 matches for "shoff".
Did you mean:
hoff
2013 Dec 01
0
[PATCH v2 4/4] efi: PE file size differ from in-memory size
...e_hdr_pe32p.rva_and_sizes_nr = sizeof(e_hdr_pe32p.data_directory) / sizeof(__uint64_t);
@@ -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 **...
2013 Nov 27
0
[PATCH 4/4] efi: PE file size differ from in-memory size
...e_hdr_pe32p.rva_and_sizes_nr = sizeof(e_hdr_pe32p.data_directory) / sizeof(__uint64_t);
@@ -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 **...
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
...print "$path: short 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 me...