From: H. P. A. <hp...@zy...> - 2005-03-16 06:24:13
|
anonymous coward wrote: >>1: *Strage Linking Problem* > > > I'm not a Linux/GCC expert. But in the first case > your code becomes start(), whereas in the second _start() actually; ELF doesn't use an extra underscore. > case it becomes main(). So have you looked at what > start() does in the second case? (Try objdump.) _start is the first thing that gets called, and is usually the entrypoint to the C library, which then calls main. When you link with gcc you link in the C library initialization code. -hpa |