summaryrefslogtreecommitdiffstats
path: root/lib/csu/i386-elf
Commit message (Collapse)AuthorAgeFilesLines
* Add "-fkeep-inline-functions" to CFLAGS so that higher optimizationjdp1999-03-151-3/+2
| | | | | | | | levels (-O3 and above) won't remove essential code. Many thanks to Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> for pointing out that it was the optimizer's removal of this code that caused make world with -O3 to break. With this change, make buildworld now completes.
* Reverse the order of processing object files within an executable orjdp1999-03-131-3/+3
| | | | | | | | | | | | | shared library when invoking global constructors and destructors. For constructors, the object files used to be processed from first to last; now they're done from last to first. (Destructors are done in the opposite order, as required by the C++ standard.) This makes us consistent with standard gcc and egcs compilers. It also eliminates ordering differences between dynamic and static executables. Bump the value of __FreeBSD_version to 400002 to reflect this change.
* Move the code for the ".init" and ".fini" sections outside of ajdp1999-03-123-15/+15
| | | | | | | | | C function so the compiler won't try to emit line numbers for it with "-g", breaking the build. This has the nice side-effect of making crtbegin.o and crtbeginS.o a little bit smaller. Remove "-Wno-unused" from the Makefile. Replace it with "__unused" on particular function and variable declarations.
* Switch to using ".So" as the extension for PIC object files ratherjdp1999-01-091-3/+3
| | | | | | | | than ".so". The old extension conflicted with well-established naming conventions for dynamically loadable modules. The "clean" targets continue to remove ".so" files too, to deal with old systems.
* Strip the leading path from __progname as is done in the a.out case. Alsosteve1998-12-241-3/+9
| | | | | | | bring in stddef.h so we can use NULL instead of 0 for pointer comparisons. Hinted at by: Bruce Evans Reviewed by: John Polstra
* Make profiling work for ELF. gprof now autodetects the format ofjdp1998-09-072-2/+25
| | | | | | | | | | | the executable file, so it will work for both a.out and ELF format files. I have split the object format specific code into separate source files. It's cleaner than it was before, but it's still pretty crufty. Don't cheat on your make world for this update. A lot of things have to be rebuilt for it to work, including the compiler and all of the profiled libraries.
* Import C startup files for ELF support.jdp1998-03-076-0/+263
Submitted by: John Polstra <jdp@polstra.com>
OpenPOWER on IntegriCloud