can I tell if a kernel is elf?

Marty Leisner (
Sat, 26 Aug 1995 13:07:12 PDT

Is there a way to tell whether or not a kernel is elf?

The reason is elf has no leading underscores, and a.out does...

I suppose we can say:
if any symbols in /proc/ksyms don't have leading underscores,
its elf

but we still can put symbols in there that are assembler...

The reason for this request is lsof tries to match the /
against /proc/ksyms and there is
namei and _namei...

Member of the League for Programming Freedom (
Any sufficiently advanced technology is indistinguishable from magic
Arthur C. Clarke, The Lost Worlds of 2001