lkml.org 
[lkml]   [2003]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Shared Library starter, ld.so
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/

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.023 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site