[uClibc]new `dummy' main reference
Miles Bader
miles at lsi.nec.co.jp
Mon Apr 15 01:37:22 UTC 2002
I see in crt0.s the new code:
/* Stick in a dummy reference to main(), so that if an application
* is linking when the main() function is in a static library (.a)
* we can be sure that main() actually gets linked in */
L_dummy_main_reference:
.long main
Can you explain in more detail when this is required?
Since crt0 calls __uClibc_main, and __uClibc_main calls main, isn't
main always pulled in anyway?
Thanks,
-Miles
--
I have seen the enemy, and he is us. -- Pogo
More information about the uClibc
mailing list