Displaying 1 result from an estimated 1 matches for "ehsiz".
Did you mean:
ehsize
2005 Mar 06
1
testers sought for script to interpret ELF/klibc executables
...;$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 memsz flags al...