To make sure to put it into .text, and let debugging tools know about it.
---
 sysdeps/mach/hurd/x86_64/tst-sig-redzone.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sysdeps/mach/hurd/x86_64/tst-sig-redzone.c 
b/sysdeps/mach/hurd/x86_64/tst-sig-redzone.c
index 0855bd6900..32c7ab90f4 100644
--- a/sysdeps/mach/hurd/x86_64/tst-sig-redzone.c
+++ b/sysdeps/mach/hurd/x86_64/tst-sig-redzone.c
@@ -81,7 +81,11 @@ static int do_test (void)
 }
 
 asm (
+".text\n"
+".align 16\n"
+".type check_redzone, @function\n"
 "check_redzone:\n"
+"      .cfi_startproc\n"
 
 "      movabs  $0x3333333333333333, %rax\n"
 "      mov     $(128/8), %ecx\n"
@@ -104,6 +108,10 @@ asm (
 "fail:\n"
 "      movq    $1,%rax\n"
 "      ret\n"
+
+"      .cfi_endproc\n"
+"      .size   check_redzone, .-check_redzone\n"
+".previous\n"
 );
 
 #include <support/test-driver.c>
-- 
2.51.0


Reply via email to