OpenGrok
Cross Reference: crtbegin.S
xref
: /
src
/
lib
/
csu
/
arch
/
x86_64
/
crtbegin.S
Home
|
History
|
Annotate
|
Download
|
only in
x86_64
History log of
/src/lib/csu/arch/x86_64/crtbegin.S
Revision
Date
Author
Comments
1.2
30-Nov-2010
joerg
Fix stack alignment for non-constructor/destructor calls.
AMD64 stack is 16 Byte aligned at the start of the function,
so always push rbx.
1.1
07-Aug-2010
joerg
Switch i386 and x86_64 to the new CRT layout. The crt0.c body is shared
between all platforms and a small assembler stub in crt0.S is used for
setting up the proper stack and whatever else MD needs.
Extract crti.S and crtn. from the old dot_init.h files. Prepare other
platforms that use the 6-argument form of __(_)start for this.
Rewrite the crtbegin and crtend modules in assembler to make them
compiler independent. Document the interface in README.
Indexes created Sat Oct 25 16:10:12 GMT 2025