Re: Shared Library starter, ld.so

From: Richard Henderson (rth@twiddle.net)
Date: Fri Jun 06 2003 - 16:10:42 EST


On Fri, Jun 06, 2003 at 07:34:50AM -0400, Richard B. Johnson wrote:
> .section .text
> .global _start
> .type _start,@function
> _start: call *%edx
> pushl $0
> call exit
> .end
...
> On the Red Hat 9 system, it will segfault.

[vsop:~] gcc -nostartfiles zz.s
[vsop:~] ./a.out
[vsop:~] echo $?
0
[vsop:~] cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)

Works For Me.

r~
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 07 2003 - 22:00:31 EST