diff options
author | peter <peter@FreeBSD.org> | 1999-08-25 23:50:03 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-08-25 23:50:03 +0000 |
commit | b9c4386c6dd646e1168d559d191533658946f6bc (patch) | |
tree | 2bfd18bfb74294cc3021f83b634328a9b3a438c4 /sys | |
parent | 8858fe3aec80a2fea01d4467b88d26252e9265e9 (diff) | |
download | FreeBSD-src-b9c4386c6dd646e1168d559d191533658946f6bc.zip FreeBSD-src-b9c4386c6dd646e1168d559d191533658946f6bc.tar.gz |
Use .p2align to ensure consistant a.out/elf alignment. I'd have used
SUPERALIGN_TEXT, but this is inline assembler and after cpp has run.
Inspired by bde's comments on linux_locore.s.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/prof_machdep.c | 12 | ||||
-rw-r--r-- | sys/i386/isa/prof_machdep.c | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/sys/amd64/amd64/prof_machdep.c b/sys/amd64/amd64/prof_machdep.c index 808dd86..3447905 100644 --- a/sys/amd64/amd64/prof_machdep.c +++ b/sys/amd64/amd64/prof_machdep.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: prof_machdep.c,v 1.11 1998/12/14 18:21:34 bde Exp $ + * $Id: prof_machdep.c,v 1.12 1999/05/06 09:44:55 bde Exp $ */ #ifdef GUPROF @@ -74,7 +74,7 @@ GM_STATE = 0 \n\ GMON_PROF_OFF = 3 \n\ \n\ .text \n\ - .align 4,0x90 \n\ + .p2align 4,0x90 \n\ .globl __mcount \n\ .type __mcount,@function \n\ __mcount: \n\ @@ -91,7 +91,7 @@ __mcount: \n\ movl 4(%esp),%edx \n\ jmp .got_frompc \n\ \n\ - .align 4,0x90 \n\ + .p2align 4,0x90 \n\ .globl " __XSTRING(HIDENAME(mcount)) " \n\ " __XSTRING(HIDENAME(mcount)) ": \n\ cmpl $GMON_PROF_OFF," __XSTRING(CNAME(_gmonparam)) "+GM_STATE \n\ @@ -136,7 +136,7 @@ __asm(" \n\ # \n\ # Dummy label to be seen when gprof -u hides [.]mexitcount. \n\ # \n\ - .align 4,0x90 \n\ + .p2align 4,0x90 \n\ .globl __mexitcount \n\ .type __mexitcount,@function \n\ __mexitcount: \n\ @@ -144,7 +144,7 @@ __mexitcount: \n\ \n\ GMON_PROF_HIRES = 4 \n\ \n\ - .align 4,0x90 \n\ + .p2align 4,0x90 \n\ .globl " __XSTRING(HIDENAME(mexitcount)) " \n\ " __XSTRING(HIDENAME(mexitcount)) ": \n\ cmpl $GMON_PROF_HIRES," __XSTRING(CNAME(_gmonparam)) "+GM_STATE \n\ @@ -344,7 +344,7 @@ stopguprof(gp) #ifdef __GNUC__ __asm(" \n\ .text \n\ - .align 4,0x90 \n\ + .p2align 4,0x90 \n\ .globl " __XSTRING(HIDENAME(mexitcount)) " \n\ " __XSTRING(HIDENAME(mexitcount)) ": \n\ ret \n\ diff --git a/sys/i386/isa/prof_machdep.c b/sys/i386/isa/prof_machdep.c index 808dd86..3447905 100644 --- a/sys/i386/isa/prof_machdep.c +++ b/sys/i386/isa/prof_machdep.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: prof_machdep.c,v 1.11 1998/12/14 18:21:34 bde Exp $ + * $Id: prof_machdep.c,v 1.12 1999/05/06 09:44:55 bde Exp $ */ #ifdef GUPROF @@ -74,7 +74,7 @@ GM_STATE = 0 \n\ GMON_PROF_OFF = 3 \n\ \n\ .text \n\ - .align 4,0x90 \n\ + .p2align 4,0x90 \n\ .globl __mcount \n\ .type __mcount,@function \n\ __mcount: \n\ @@ -91,7 +91,7 @@ __mcount: \n\ movl 4(%esp),%edx \n\ jmp .got_frompc \n\ \n\ - .align 4,0x90 \n\ + .p2align 4,0x90 \n\ .globl " __XSTRING(HIDENAME(mcount)) " \n\ " __XSTRING(HIDENAME(mcount)) ": \n\ cmpl $GMON_PROF_OFF," __XSTRING(CNAME(_gmonparam)) "+GM_STATE \n\ @@ -136,7 +136,7 @@ __asm(" \n\ # \n\ # Dummy label to be seen when gprof -u hides [.]mexitcount. \n\ # \n\ - .align 4,0x90 \n\ + .p2align 4,0x90 \n\ .globl __mexitcount \n\ .type __mexitcount,@function \n\ __mexitcount: \n\ @@ -144,7 +144,7 @@ __mexitcount: \n\ \n\ GMON_PROF_HIRES = 4 \n\ \n\ - .align 4,0x90 \n\ + .p2align 4,0x90 \n\ .globl " __XSTRING(HIDENAME(mexitcount)) " \n\ " __XSTRING(HIDENAME(mexitcount)) ": \n\ cmpl $GMON_PROF_HIRES," __XSTRING(CNAME(_gmonparam)) "+GM_STATE \n\ @@ -344,7 +344,7 @@ stopguprof(gp) #ifdef __GNUC__ __asm(" \n\ .text \n\ - .align 4,0x90 \n\ + .p2align 4,0x90 \n\ .globl " __XSTRING(HIDENAME(mexitcount)) " \n\ " __XSTRING(HIDENAME(mexitcount)) ": \n\ ret \n\ |