search for: interp_offset

Displaying 1 result from an estimated 1 matches for "interp_offset".

Did you mean: inner_offset
2005 Mar 06
1
testers sought for script to interpret ELF/klibc executables
...eturn; } if ($ehdr->{phentsize} != $phdrSize) { print "$path: bad phentsize\n"; return; } # mind your overflows, dont multiply phnum*entsize if ($ehdr->{phnum} < 1 || $ehdr->{phnum} > (65336/$phdrSize)) { print "$path: bad phnum\n"; return; } my $interp_offset; my $interp_size; for my $i (0 .. $ehdr->{phnum} - 1) { my $phdr = readStruct ($fh, $ehdr->{phoff} + ($i * $phdrSize), $phdrSize, $phdrPat, $phdrFields); if ($phdr->{type} == PT_INTERP) { $interp_offset = $phdr->{offset}; $interp_size = $phdr->{filesz}; last;...