PERFORCE change 49343 for review

Peter Wemm peter at FreeBSD.org
Fri Mar 19 21:10:41 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=49343

Change 49343 by peter at peter_overcee on 2004/03/19 21:10:34

	DOH!!!!!!
	Fix stack alignment bugs for -static case.  This might fix
	libpthread too.

Affected files ...

.. //depot/projects/hammer/lib/csu/amd64/crti.S#5 edit
.. //depot/projects/hammer/lib/csu/amd64/crtn.S#5 edit

Differences ...

==== //depot/projects/hammer/lib/csu/amd64/crti.S#5 (text+ko) ====

@@ -28,12 +28,14 @@
 	.globl	_init
 	.type	_init, at function
 _init:
+	subq	$8,%rsp
 
 	.section .fini,"ax", at progbits
 	.align	4
 	.globl	_fini
 	.type	_fini, at function
 _fini:
+	subq	$8,%rsp
 
 	.section .rodata
 .ascii "$FreeBSD: src/lib/csu/amd64/crti.S,v 1.6 2002/05/15 04:19:49 obrien Exp $\0"

==== //depot/projects/hammer/lib/csu/amd64/crtn.S#5 (text+ko) ====

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


More information about the p4-projects mailing list