Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 2004 21:10:40 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 49343 for review
Message-ID:  <200403200510.i2K5Ae7I095573@repoman.freebsd.org>

index | next in thread | raw e-mail

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

Change 49343 by peter@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,@function
 _init:
+	subq	$8,%rsp
 
 	.section .fini,"ax",@progbits
 	.align	4
 	.globl	_fini
 	.type	_fini,@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",@progbits
+	addq	$8,%rsp
 	ret
 
 	.section .fini,"ax",@progbits
+	addq	$8,%rsp
 	ret
 
 	.section .rodata


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403200510.i2K5Ae7I095573>