summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-08-19 18:23:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-08-19 18:23:01 +0000
commit170d6492d3cd4791f69ac30370d17467ea5c5cbc (patch)
treee39f004cadb76d64f44ffbeea030bda9cc84f21e /lib/libc
parent50db4a87ba6e6f6d26110a0baeba0ae148ba6fd1 (diff)
Put _map table into .rodata instead of .text
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/amd64/gen/flt_rounds.S5
-rw-r--r--lib/libc/arch/i386/gen/flt_rounds.S4
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/arch/amd64/gen/flt_rounds.S b/lib/libc/arch/amd64/gen/flt_rounds.S
index 556e5850173..7b2c284d459 100644
--- a/lib/libc/arch/amd64/gen/flt_rounds.S
+++ b/lib/libc/arch/amd64/gen/flt_rounds.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: flt_rounds.S,v 1.6 2015/11/14 21:53:03 guenther Exp $ */
+/* $OpenBSD: flt_rounds.S,v 1.7 2017/08/19 18:23:00 deraadt Exp $ */
/* $NetBSD: flt_rounds.S,v 1.2 2002/06/06 23:04:35 fvdl Exp $ */
/*
@@ -8,8 +8,7 @@
#include "DEFS.h"
- .text
- _ALIGN_TEXT
+ .section .rodata
_map:
.byte 1 /* round to nearest */
.byte 3 /* round to negative infinity */
diff --git a/lib/libc/arch/i386/gen/flt_rounds.S b/lib/libc/arch/i386/gen/flt_rounds.S
index e42ad93b214..a46fe912fd5 100644
--- a/lib/libc/arch/i386/gen/flt_rounds.S
+++ b/lib/libc/arch/i386/gen/flt_rounds.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: flt_rounds.S,v 1.5 2015/10/27 05:54:49 guenther Exp $ */
+/* $OpenBSD: flt_rounds.S,v 1.6 2017/08/19 18:23:00 deraadt Exp $ */
/*
* Written by J.T. Conklin, Apr 4, 1995
* Public domain.
@@ -6,7 +6,7 @@
#include "SYS.h"
- .text
+ .section .rodata
.align 2
_map:
.byte 1 /* round to nearest */