summaryrefslogtreecommitdiffstats
path: root/lib/csu/i386-elf
Commit message (Collapse)AuthorAgeFilesLines
* Use .rodata section for $FreeBSD$.obrien2002-05-152-4/+6
|
* Fixed CLEANFILES after bsd.lib.mk sweep.ru2002-05-131-0/+2
|
* SOBJS are not used here for a long time, and were justru2002-05-131-4/+2
| | | | pessimising the `install'.
* Major cleanup of bsd.lib.mk.ru2002-05-131-5/+0
| | | | | | | Get rid of the INTERNALSTATICLIB knob and just use plain INTERNALLIB. INTERNALLIB now means to build static library only and don't install anything. Added a NOINSTALLLIB knob for libpam/modules. To not build any library at all, just do not set LIB.
* Revert the last change. The corresponding bsd.lib.mk changes wereru2002-05-121-1/+4
| | | | already backed out.
* Use the simpler NOMAN rather than NOMAN, NOPIC, NOPROFILE, INTERNALLIB.obrien2002-05-111-4/+1
|
* Removed "-fkeep-inline-functions" from CFLAGS, since it now has no effectbde2002-04-291-1/+1
| | | | | | | | | | | | | except to generate spurious warnings about a system header <sys/param.h> having some inline functions (the bswap family). This backs out the main part of rev.1.5 (which was the only part left). The problem fixed by rev.1.5 of the Makefile went away in rev.1.5 of ../common/crtbegin.c when the references to do_ctors() and do_dtors() in the latter were moved from inline asm to C code. This leaves the problem that implementation details cause warnings. Discussed with: jdp
* Do not use __progname directly (except in [gs]etprogname(3)).markm2002-03-292-3/+5
| | | | | | Also, make an internal _getprogname() that is used only inside libc. For libc, getprogname(3) is a weak symbol in case a function of the same name is defined in userland.
* Minor style(9) nit + utilize ELF features for the FreeBSD ID.obrien2002-02-271-4/+4
|
* minor style updatingobrien2001-10-271-4/+3
|
* * Bring back the guts of crt{i,n}.S. This allows C++ exceptions to workobrien2000-10-284-11/+20
| | | | | | | | | | | | | | | | | | | when using the egcs and gcc-devel ports, along with GCC built from stock public FSF sources. With out this change, FreeBSD will be removed from the list of systems GCC 3.0 must be evaluated on before release. With the effort some of us put into getting FreeBSD on this list, we should not turn this effort into a waste, else we might not be worth fighting for in the future. (note that Alpha and IA-64 versions of crt{i,n}.S are needed) * Switch from our own crt{begin,in} to those created from GCC's crtstuff.c. This will allow us to switch to DWARF2 exceptions in the future, along with staying in sync with any future GCC requirements. * Break out our ELF branding bits into a seperate file. Currently this is now included by our crt1.c files (since this functionality was part of our native crtbegin.c). Later crtbrand.o will be merged in the creation of crti.o.
* Take crtbegin.c and crtend.c from the new machine-independentjdp2000-05-203-135/+2
| | | | "common" sister directory.
* This is step 1 in an effort to unify the start-up files for thejdp2000-05-193-39/+60
| | | | | | | | | | | | | | | | | various architectures. Now all the work is done in crtbegin.c. It doesn't contain any assembly language code, so it should work fine on all architectures. (I have tested it on the i386 and the alpha.) The old assembly language files crt[in].S are now empty shells that generate no code or data. They should not be removed any time soon, because the various versions of gcc in src and ports expect them to exist. Next I will move crtbegin.c into a new common machine-independent directory, and adjust the i386-elf Makefile to use that version. After that I will adjust the alpha Makefile to use the common version too. Requested by: obrien
* Change our ELF binary branding to something more acceptable to the Binutilsobrien2000-04-181-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | maintainers. After we established our branding method of writing upto 8 characters of the OS name into the ELF header in the padding; the Binutils maintainers and/or SCO (as USL) decided that instead the ELF header should grow two new fields -- EI_OSABI and EI_ABIVERSION. Each of these are an 8-bit unsigned integer. SCO has assigned official values for the EI_OSABI field. In addition to this, the Binutils maintainers and NetBSD decided that a better ELF branding method was to include ABI information in a ".note" ELF section. With this set of changes, we will now create ELF binaries branded using both "official" methods. Due to the complexity of adding a section to a binary, binaries branded with ``brandelf'' will only brand using the EI_OSABI method. Also due to the complexity of pulling a section out of an ELF file vs. poking around in the ELF header, our image activator only looks at the EI_OSABI header field. Note that a new kernel can still properly load old binaries except for Linux static binaries branded in our old method. * * For a short period of time, ``ld'' will also brand ELF binaries * using our old method. This is so people can still use kernel.old * with a new world. This support will be removed before 5.0-RELEASE, * and may not last anywhere upto the actual release. My expiration * time for this is about 6mo. *
* $Id$ -> $FreeBSD$peter1999-08-286-6/+6
|
* 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