Adjust stack alignment so that when the 'call xxx' functions are

gathered into the middle of the _init and _fini sections, they get
executed with their expected stack alignment.
This commit is contained in:
Peter Wemm 2004-03-21 01:39:01 +00:00
parent 95c6291685
commit c50be14baa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127252
2 changed files with 4 additions and 0 deletions

View file

@ -28,12 +28,14 @@
.globl _init
.type _init,@function
_init:
subq $8,%rsp
.section .fini,"ax",@progbits
.align 4
.globl _fini
.type _fini,@function
_fini:
subq $8,%rsp
.section .rodata
.ascii "$FreeBSD$\0"

View file

@ -24,9 +24,11 @@
*/
.section .init,"ax",@progbits
addq $8,%rsp
ret
.section .fini,"ax",@progbits
addq $8,%rsp
ret
.section .rodata