The HyperNews Linux KHG Discussion Pages

Question: ELF matters

Forum: The Linux Kernel Hackers' Guide
Date: Tue, 15 Apr 1997 09:09:51 GMT
From: Carlos Munoz <>

Hi again!!

Something bizarre is happening in my Linux 1.2.13:

I have created a silly program that executes just after a fork() for the init is done in the function start_kernel():

if (!fork())

void init() { ..... THIS IS MY CHANGE:

        if (!fork())
                execve("silly", NULL, NULL);

If the format of the executable silly is ELF then everything works okay, but if I use the old a.out (compiled with gcc silly.c -o silly -b i486-linuxaout) the program doesn't execute at all and I cannot find it anywhere (top and ps -x fail to do it).

Am I going nuts or are Linux developers trying to move us to ELF?

Secondly, I would like to disable demand loading in ELF for some real-time tasks which I don't want them to produce page faults while they're actually running. Is it possible?

Thirdly, can you tell me where can I find information about ELF internals? I get sick when I try to understand the function load_elf_binary!

Thanks a lot in advance!!



1. Feedback: Information about ELF Internals by Pat Ekman