From 170d6492d3cd4791f69ac30370d17467ea5c5cbc Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 19 Aug 2017 18:23:01 +0000 Subject: Put _map table into .rodata instead of .text --- lib/libc/arch/amd64/gen/flt_rounds.S | 5 ++--- lib/libc/arch/i386/gen/flt_rounds.S | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/libc/arch') 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 */ -- cgit v1.2.3