From 49163d5e6ac724f74b0290e465fd1ed33fcbb362 Mon Sep 17 00:00:00 2001
From: Marcus Meissner <meissner@suse.de>
Date: Tue, 20 Aug 2002 00:26:40 +0000
Subject: [PATCH] Do not emit .string into the instruction stream, but into the
 .data section (to avoid alignment assertions).

---
 configure    | 2 +-
 configure.ac | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 8cd653f05e0..17b86a327ee 100755
--- a/configure
+++ b/configure
@@ -10237,7 +10237,7 @@ else
   cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
 #include "confdefs.h"
-void ac_asm(void) { asm(".string \"test\""); }
+void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
 
 #ifdef F77_DUMMY_MAIN
 #  ifdef __cplusplus
diff --git a/configure.ac b/configure.ac
index 315ddc79126..cf686c836c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -743,7 +743,8 @@ fi
 dnl **** Check for .string in assembler ****
 
 AC_CACHE_CHECK([whether assembler accepts .string], ac_cv_c_asm_string,
-    WINE_TRY_ASM_LINK([".string \"test\""],,,ac_cv_c_asm_string="yes",ac_cv_c_asm_string="no"))
+    WINE_TRY_ASM_LINK([".data\n\t.string \"test\"\n\t.text"],,,
+                      ac_cv_c_asm_string="yes",ac_cv_c_asm_string="no"))
 if test "$ac_cv_c_asm_string" = "yes"
 then
   AC_DEFINE(HAVE_ASM_STRING, 1, [Define to use .string instead of .ascii])
-- 
GitLab