can I tell if a kernel is elf?

Marty Leisner (leisner@sdsp.mc.xerox.com)
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 /zSystem.map
against /proc/ksyms and there is
namei and _namei...

marty leisner@sdsp.mc.xerox.com
Member of the League for Programming Freedom (http://www.lpf.org)
Any sufficiently advanced technology is indistinguishable from magic
Arthur C. Clarke, The Lost Worlds of 2001