Make sure __ASM_GLOBAL_FUNC generates code in the text segment.

This commit is contained in:
Alexandre Julliard 2004-05-28 19:30:25 +00:00
parent b4c2968049
commit a8877ba6dc
1 changed files with 4 additions and 2 deletions

View File

@ -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) { \