summaryrefslogtreecommitdiffstats
path: root/lib/csu
Commit message (Collapse)AuthorAgeFilesLines
* Align the stack suitably for the version of gcc in FreeBSD-4 (providedbde2002-09-292-0/+66
| | | | | | | | | | | | | | | | | | | -fomit-frame-pointer is not used). This is mostly moot for -current because gcc-3 does the alignment (slightly incorrectly) in main(). This patch is intended for easy MFC'ing and should be backed out in -current soon since it causes compiler warnings and better fixes are possible in -current. The best fix is to do nothing here and wait for gcc to do stack alignment right. gcc-3 aligns the stack in main(), but does it too late for main()'s local variables and too late for anything called before main(). A misaligned stack is now more than an efficiency problem, since some SSE instructions in some or all (hardware) implementations trap on misaligned operands even if alignment checking is not enabled. PR: 41528: Submitted by: NIIMI Satoshi <sa2c@sa2c.net> (original version) MFC after: 3 days
* Remove a prototype for a function that is no longer called.markm2002-09-201-1/+0
|
* Don't need to install the signal trampoline here anymore.jake2002-09-031-1/+0
|
* Drop support for COPY, -c has been the default mode of install(1)ru2002-07-297-7/+7
| | | | | | for a long time now. Approved by: bde
* The main reason for this is to reduce diffs between all the crt1.c's.markm2002-07-166-91/+140
| | | | | | | | | | | | | | | | | | | Assembler macros are tidied up and made as similar as sanely possible. The macros are translated into C (__inline static) functions for lint. Declaration orders are made the same. Declarations are all ISOfied and tidied up. Comment contents have gratuitous diffs removed. The net result is a bunch of crt1.c's that are 90% the same. It may be possible to now encapsulate the differences in one MD header, and have only one MI crt1.c file (although the macros to do this may be ugly). Helpful comments by: obrien, bde Alpha tested by: des i386-elf tested by: markm
* Whitespace diffs only; this brings this file into the same whitespacemarkm2002-07-032-52/+54
| | | | | | convention as src/lib/csu/*/crt1.c. This will make the follow up diffs easier to see and extract.
* WARNS=6'ify.obrien2002-06-251-7/+5
| | | | Style nits.
* Prototype _start.obrien2002-06-251-2/+4
| | | | | | Submitted by: markm Mark some _start formal parameters __unused.
* Use .rodata section for $FreeBSD$.obrien2002-05-156-12/+20
|
* Fixed CLEANFILES after bsd.lib.mk sweep.ru2002-05-136-0/+12
|
* SOBJS are not used here for a long time, and were justru2002-05-136-24/+12
| | | | pessimising the `install'.
* Major cleanup of bsd.lib.mk.ru2002-05-136-27/+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-126-6/+25
| | | | already backed out.
* Use the simpler NOMAN rather than NOMAN, NOPIC, NOPROFILE, INTERNALLIB.obrien2002-05-116-25/+6
|
* Use the compiler's crt{begin,end}.obrien2002-05-101-2/+1
|
* Fix the copyright dates.obrien2002-05-071-1/+1
|
* Install the libc signal trampoline on startup.jake2002-04-291-0/+2
|
* Removed "-fkeep-inline-functions" from CFLAGS, since it now has no effectbde2002-04-292-2/+2
| | | | | | | | | | | | | 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
* Style nit and modernize SCM ID.obrien2002-04-131-8/+2
|
* For now we are using our old crt{begin,end}.obrien2002-04-081-3/+3
|
* Do not use __progname directly (except in [gs]etprogname(3)).markm2002-03-2914-24/+39
| | | | | | 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.
* Style nit.obrien2002-03-231-3/+3
|
* Remove prototype, no other crt1.c has or needs it.obrien2002-03-231-9/+6
|
* Remove __P() usage.obrien2002-03-221-2/+2
|
* Remove __P() usage.obrien2002-03-211-2/+2
|
* Revert part of rev 1.3 -- we need the calls to _init and _fini.obrien2002-03-161-4/+0
|
* Sync with csu/alpha/Makefile: build crt{i,n}.o.obrien2002-03-101-3/+2
| | | | Leave crtbegin* to the compiler vendor.
* Minor style(9) nit + utilize ELF features for the FreeBSD ID.obrien2002-02-281-6/+2
|
* Minor style(9) nit + utilize ELF features for the FreeBSD ID.obrien2002-02-273-16/+10
|
* We do not support the sparc platform.obrien2002-02-272-129/+0
|
* Minor WS change to improve readability.obrien2002-02-272-6/+6
|
* Initialize the libc user trap handlers before passing control non-startuptmm2002-02-231-0/+2
| | | | code, so that the userland fp emulator will work.
* GC code that moved to crtbrand.c.obrien2002-01-281-4/+0
|
* Comment out the retrieval of a termination function from %g1. It isjake2002-01-131-0/+8
| | | | | doubtful this will ever be used by anything and rtld uses %g1. Comment out references to _init and _fini for now too.
* Fix typo (unclosed comment).jake2001-12-281-0/+1
|
* Embelish CFLAGS.obrien2001-12-151-1/+2
|
* The instructions on doing something with src/lib/csu/sparc64.obrien2001-12-151-0/+25
|
* Sparc64 ELF version of the C runtime support.obrien2001-12-151-0/+128
| | | | | | | It tries to comply with the SCD 2.4.1 (and thus Sparc 64-bit psABI). This is an amalgamation of the FreeBSD Alpha crt1.c and the BSD/OS Sparc crt0.c (which the copyright reflects).
* Put in an attempt at stack trace/unwind records.peter2001-11-031-0/+8
|
* Mostly cosmetic. Use indentation that is reasonably close to otherpeter2001-10-292-20/+20
| | | | | | | ia64 *.S files in our tree (eg: locore.s). Put the rest of the args in the .section lines. Reviewed by: dfr
* Update for the new toolchain. ld doesn't provide _GLOBAL_OFFSET_TABLE_peter2001-10-291-1/+8
| | | | | | in 2.11.2, so use a relocatable method of calculating gp. Reviewed by: dfr
* sparc64 verions of the crt initialization and finalization files requiredobrien2001-10-282-0/+100
| | | | by the ELF ABI.
* Add missing crti.S and crtn.S files. I have tested these with -staticpeter2001-10-272-0/+92
| | | | linking only. They may require some gp relative tweaks for dynamic use.
* Sync with other platforms.obrien2001-10-271-2/+3
|
* minor style updatingobrien2001-10-273-13/+9
|
* Update for reality and syncing with other FreeBSD platforms.obrien2001-10-271-6/+5
|
* Feh, it helps to include a file other than yourself... wonder howobrien2001-10-271-1/+1
| | | | | | GCC cpp liked that. Properly include the branding info.
* Fix nit in copyright.obrien2001-10-261-2/+2
|
* Use the new machine-independent versions of crtbegin and crtendobrien2001-10-262-108/+0
| | | | from the "common" directory.
* Change to track the new calling convention for execve. This version onlydfr2001-10-111-17/+3
| | | | needs one line of assembler to initialise gp.
OpenPOWER on IntegriCloud