From a8877ba6dc0f430188109f3becbf6f104d235959 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 28 May 2004 19:30:25 +0000 Subject: [PATCH] Make sure __ASM_GLOBAL_FUNC generates code in the text segment. --- include/wine/port.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/wine/port.h b/include/wine/port.h index 00b77f09c0e..c524cdbf8f3 100644 --- a/include/wine/port.h +++ b/include/wine/port.h @@ -197,11 +197,13 @@ extern char **environ; #ifdef __GNUC__ # define __ASM_GLOBAL_FUNC(name,code) \ - __asm__( ".align 4\n\t" \ + __asm__( ".text\n\t" \ + ".align 4\n\t" \ ".globl " __ASM_NAME(#name) "\n\t" \ __ASM_FUNC(#name) "\n" \ __ASM_NAME(#name) ":\n\t" \ - code ); + code \ + "\n\t.previous" ); #else /* __GNUC__ */ # define __ASM_GLOBAL_FUNC(name,code) \ void __asm_dummy_##name(void) { \ -- 2.11.4.GIT