about summary refs log tree commit diff
path: root/sysdeps/i386/dl-machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/dl-machine.h')
-rw-r--r--sysdeps/i386/dl-machine.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/i386/dl-machine.h b/sysdeps/i386/dl-machine.h
index f9913cf00c..041643ef5a 100644
--- a/sysdeps/i386/dl-machine.h
+++ b/sysdeps/i386/dl-machine.h
@@ -121,6 +121,7 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
    and then redirect to the address it returns.  */
 #ifndef PROF
 # define ELF_MACHINE_RUNTIME_TRAMPOLINE asm ("\
+	.text
 	.globl _dl_runtime_resolve
 	.type _dl_runtime_resolve, @function
 	.align 16
@@ -153,9 +154,11 @@ _dl_runtime_profile:
 	xchgl %eax, (%esp)	# Get %eax contents end store function address.
 	ret $8			# Jump to function address.
 	.size _dl_runtime_profile, .-_dl_runtime_profile
+	.previous
 ");
 #else
 # define ELF_MACHINE_RUNTIME_TRAMPOLINE asm ("\
+	.text
 	.globl _dl_runtime_resolve
 	.globl _dl_runtime_profile
 	.type _dl_runtime_resolve, @function
@@ -179,6 +182,7 @@ _dl_runtime_profile:
 	ret $8			# Jump to function address.
 	.size _dl_runtime_resolve, .-_dl_runtime_resolve
 	.size _dl_runtime_profile, .-_dl_runtime_profile
+	.previous
 ");
 #endif
 /* The PLT uses Elf32_Rel relocs.  */