summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/i386/crt0.S
Commit message (Collapse)AuthorAgeFilesLines
* Fix compile when profiling is disabledEric Andersen2003-03-041-1/+1
|
* Initial effort at adding profiling support.Eric Andersen2003-03-031-1/+6
|
* Update architecture specific support to consistantlyEric Andersen2003-01-231-2/+2
| | | | | | generate a crt0 and crt1 file. Most arches still need to be updated to call __uClibc_start_main() rather than __uClibc_main().
* simpler method for getting a 'main' reference. Make _init and _finiEric Andersen2003-01-231-6/+12
| | | | be weak so people won't need to fix their compilers
* Based on discussions with Stefan Allius, change it so that we alwaysEric Andersen2002-12-121-1/+1
| | | | | | | build a crt0.o and a crt1.o. crt1.o will support ctors and dtors if such support is enabled. One more gratuitous toolchain support issue is thereby removed... -Erik
* I forgot to include features.hEric Andersen2002-11-291-0/+2
|
* Make support for global constructors and global destructors beEric Andersen2002-11-271-0/+9
| | | | | | configurable, so people who do not need or want ctor/dtor support can disable it and make their binaries a little bit smaller. -Erik
* This commit contains a patch from Stefan Allius <allius@atecom.com> to changeEric Andersen2002-10-011-15/+12
| | | | | | | how uClibc handles _init and _fini, allowing shared lib constructors and destructors to initialize things in the correct sequence. Stefan ported the SH architecture. I then ported x86, arm, and mips. x86 and arm are working fine, but I don't think I quite got things correct for mips.
* Just in case, crash if somehow `exit' returns anywaysEric Andersen2002-08-061-0/+2
| | | | -Erik
* Manuel and I were looking into a problem with applications failing to linkEric Andersen2002-04-141-0/+6
| | | | | | | | | | (undefined reference to `main') when the .o file containing main was contained in an static library(a '.a' ar archive). It turns out that due to its single pass nature, GNU ld was failing to pull it into the build. This sticks a dummy reference to main() into crt0.o, so that when an application is linked with the main() function in a static library, we can be sure that main() actually gets linked in. -Erik
* Remove the C++ support stubs, since these now live elsewhere andEric Andersen2002-03-161-13/+0
| | | | | these stubs were preventing the real stuff from working properly. -Erik
* Turn off the useless personality crapEric Andersen2002-01-021-0/+2
|
* Use the asm version by default on x86. Tag _start as a function.Eric Andersen2001-12-191-2/+5
|
* This will hopefully make global constructors and destructors workEric Andersen2001-08-281-0/+14
|
* Create __uClibc_main to handle what can be done in C instead of each arch'sManuel Novoa III2001-02-191-31/+2
| | | | | | | respective crt0.S. crt0.S should now only be responsible for setting things up to call __uClibc_main(argc, argv, envp), which will do any other necessary setup (setting global __environ, stdio init, etc), call main, and exit. This should ease both maintainance and porting.
* Revert stdio to initializing itself. Not quite a pretty but that ensures thatEric Andersen2001-02-091-21/+1
| | | | | | | we don't blow up by using too much stack space, and simplifies the job of supporting new architectures, since they don't have to mess with calling foo init functions in crt0 and cleaning up the resulting damage. -Erik
* "I will always compile before I commit."Eric Andersen2001-01-161-0/+1
| | | | | | "I will always compile before I commit." "I will always compile before I commit." -Erik
* Update the comments a wee bit.Eric Andersen2001-01-161-4/+9
|
* Added common handling of errno.Eric Andersen2001-01-161-7/+0
|
* Use the name crt0.o, and cp it to $(TOPDIR)/libcrt0.oEric Andersen2001-01-151-0/+123