| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
argument passing rather than stack based args. The kernel passes the
base of the argument/env vector in %rdi (arg1).
|
| |
|
| |
|
|
|
|
| |
about it.
|
|
|
|
|
|
|
|
| |
FreeBSD, and makes ugly diffs with the other crt1.c's. Leave
behind a comment (words supplied by Thomas Moestl) that explain
the issue.
OK'ed by: tmm
|
|
|
|
|
|
|
|
| |
since it has been MFC'ed. See the log message for the previous commit
for more details. The alignment bug in gcc-3 has not been fixed, but
it is not very serious and the previous commit just moved it (as intended).
Approved by: re (murray)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-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
|
| |
|
| |
|
|
|
|
|
|
| |
for a long time now.
Approved by: bde
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
convention as src/lib/csu/*/crt1.c.
This will make the follow up diffs easier to see and extract.
|
|
|
|
| |
Style nits.
|
|
|
|
|
|
| |
Submitted by: markm
Mark some _start formal parameters __unused.
|
| |
|
| |
|
|
|
|
| |
pessimising the `install'.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
already backed out.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Leave crtbegin* to the compiler vendor.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
code, so that the userland fp emulator will work.
|
| |
|
|
|
|
|
| |
doubtful this will ever be used by anything and rtld uses %g1.
Comment out references to _init and _fini for now too.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
|
| |
ia64 *.S files in our tree (eg: locore.s). Put the rest of the args
in the .section lines.
Reviewed by: dfr
|
|
|
|
|
|
| |
in 2.11.2, so use a relocatable method of calculating gp.
Reviewed by: dfr
|
|
|
|
| |
by the ELF ABI.
|
|
|
|
| |
linking only. They may require some gp relative tweaks for dynamic use.
|
| |
|