summaryrefslogtreecommitdiff
path: root/lib/libm
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-08-19 18:27:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-08-19 18:27:20 +0000
commited44aef5be9ce1e7070f7a50ecdd2bac93a2353d (patch)
treed337bdf843f49ea905042bd64968e312322e9e25 /lib/libm
parent98a537b602e93fc67be08a8fc09c726f6d3a0729 (diff)
Use 0xcc trapsleds instead of default/nop/0xcc in BTC alignments
don't bother with .text before ENTRY()
Diffstat (limited to 'lib/libm')
-rw-r--r--lib/libm/arch/amd64/s_log1p.S8
-rw-r--r--lib/libm/arch/amd64/s_log1pf.S8
-rw-r--r--lib/libm/arch/i387/s_log1p.S6
3 files changed, 9 insertions, 13 deletions
diff --git a/lib/libm/arch/amd64/s_log1p.S b/lib/libm/arch/amd64/s_log1p.S
index b792531681e..4987ac8ff70 100644
--- a/lib/libm/arch/amd64/s_log1p.S
+++ b/lib/libm/arch/amd64/s_log1p.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_log1p.S,v 1.4 2016/09/12 19:47:01 guenther Exp $ */
+/* $OpenBSD: s_log1p.S,v 1.5 2017/08/19 18:27:19 deraadt Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
@@ -39,8 +39,6 @@
*
*/
-.text
- .align 4
ENTRY(log1p)
XMM_ONE_ARG_DOUBLE_PROLOGUE
fldl ARG_DOUBLE_ONE
@@ -56,7 +54,7 @@ ENTRY(log1p)
jne use_fyl2x
jmp use_fyl2xp1
- .align 4
+ .align 4,0xcc
use_fyl2x:
fldln2
fldl ARG_DOUBLE_ONE
@@ -66,7 +64,7 @@ use_fyl2x:
XMM_DOUBLE_EPILOGUE
ret
- .align 4
+ .align 4,0xcc
use_fyl2xp1:
fldln2
fldl ARG_DOUBLE_ONE
diff --git a/lib/libm/arch/amd64/s_log1pf.S b/lib/libm/arch/amd64/s_log1pf.S
index 9bd2d504ee0..3749449e2d2 100644
--- a/lib/libm/arch/amd64/s_log1pf.S
+++ b/lib/libm/arch/amd64/s_log1pf.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_log1pf.S,v 1.4 2016/09/12 19:47:01 guenther Exp $ */
+/* $OpenBSD: s_log1pf.S,v 1.5 2017/08/19 18:27:19 deraadt Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
@@ -39,8 +39,6 @@
*
*/
-.text
- .align 4
ENTRY(log1pf)
XMM_ONE_ARG_FLOAT_PROLOGUE
flds ARG_FLOAT_ONE
@@ -56,7 +54,7 @@ ENTRY(log1pf)
jne use_fyl2x
jmp use_fyl2xp1
- .align 4
+ .align 4,0xcc
use_fyl2x:
fldln2
flds ARG_FLOAT_ONE
@@ -66,7 +64,7 @@ use_fyl2x:
XMM_FLOAT_EPILOGUE
ret
- .align 4
+ .align 4,0xcc
use_fyl2xp1:
fldln2
flds ARG_FLOAT_ONE
diff --git a/lib/libm/arch/i387/s_log1p.S b/lib/libm/arch/i387/s_log1p.S
index e8467b1127f..4f90f8ce2e8 100644
--- a/lib/libm/arch/i387/s_log1p.S
+++ b/lib/libm/arch/i387/s_log1p.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_log1p.S,v 1.5 2016/09/12 19:47:02 guenther Exp $ */
+/* $OpenBSD: s_log1p.S,v 1.6 2017/08/19 18:27:19 deraadt Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
@@ -51,7 +51,7 @@ ENTRY(log1p)
jne use_fyl2x
jmp use_fyl2xp1
- .align 4
+ .align 4,0xcc
use_fyl2x:
fldln2
fldl 4(%esp)
@@ -60,7 +60,7 @@ use_fyl2x:
fyl2x
ret
- .align 4
+ .align 4,0xcc
use_fyl2xp1:
fldln2
fldl 4(%esp)