Another "Exception at ...", elf loader?

Janos Farkas (
Thu, 21 Nov 1996 11:27:28 +0100 (MET)

Now, that we have this, and everyone seems to calm down, I have a small
problem. It seems that the elf loader currently doesn't handle really
well the case, where an elf binary doesn't have bss or data segments, only

I didn't like the way the GNU utils have a shell script for true/false,
and have rewritten it to be in assembly. Now, it was small, and
statically linked. However, I was not really satisfied, since it had some
superfluous sections (.note, .comment). Ok, I fired up strip, and get rid
of them. And I tried to be very smart, and remove the empty data and bss
sections too. :) All seemed to be well, up until the new exception
handling mechanism. Now, (although it seems to work), it produces an
"Exception at" message. Could someone take a look at it? :) Is it really
a problem, or is it against the standards to have an elf binary which
do only have a .text section?


[shadow] ~/New 502> ls -al =true
-rwxr-xr-x 1 root root 284 Nov 02 19:38 /bin/true
[shadow] ~/New 503> objdump --disassemble-all /bin/true

/bin/true: file format elf32-i386

No symbols in "/bin/true".
Disassembly of section .text:
08048074 movl $0x1,%eax
08048079 movl $0x0,%ebx
0804807e int $0x80

[shadow] ~/New 504> uuencode true <=true
begin 644 true