[klibc] testers sought for script to interpret ELF/klibc executables

H. Peter Anvin hpa at zytor.com
Sun Mar 6 10:57:24 PST 2005


Erik van Konijnenburg wrote:
> Here's a small test program to find out where a klibc executable
> expects its shared library (or interpreter to be precise) to be.
> It should work regardless of 32/64 bit, little- or big-endian,
> but only on native executables.

It shouldn't be too hard to make it generic.  In fact, if done properly, 
it should even work on non-klibc libraries.

> The tricky part is that perl unpacking of 64-bit integers has
> limitations: only available on 64-bit machines, only if configured in.
> If it turns out this causes problems in practise, I'll have to rework
> this to unpack 64-bit ints as two longs; something I'd rather avoid.

Sounds like a good reason to write it in C instead.

	-hpa



More information about the klibc mailing list