about summary refs log tree commit diff
path: root/linuxthreads/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-02 19:58:48 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-02 19:58:48 +0000
commitd6d43292b8aa35cfeb54a75c1d707289dea7cce7 (patch)
treeecd4c3f3cc320f644a9c9f67010cc181ac05dbcf /linuxthreads/sysdeps
parentabf1cf2167de11857c256bd85582332e9face797 (diff)
downloadglibc-d6d43292b8aa35cfeb54a75c1d707289dea7cce7.tar.gz
glibc-d6d43292b8aa35cfeb54a75c1d707289dea7cce7.tar.xz
glibc-d6d43292b8aa35cfeb54a75c1d707289dea7cce7.zip
(DL_SYSINFO_IMPLEMENTATION): Add CFI and make sure the code ends up in .text.
Diffstat (limited to 'linuxthreads/sysdeps')
-rw-r--r--linuxthreads/sysdeps/unix/sysv/linux/i386/dl-sysdep.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/linuxthreads/sysdeps/unix/sysv/linux/i386/dl-sysdep.h b/linuxthreads/sysdeps/unix/sysv/linux/i386/dl-sysdep.h
index ac19ac78a4..5355310ccd 100644
--- a/linuxthreads/sysdeps/unix/sysv/linux/i386/dl-sysdep.h
+++ b/linuxthreads/sysdeps/unix/sysv/linux/i386/dl-sysdep.h
@@ -1,5 +1,5 @@
 /* System-specific settings for dynamic linker code.  IA-32 version.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -49,12 +49,16 @@
 extern void _dl_sysinfo_int80 (void) attribute_hidden;
 # define DL_SYSINFO_DEFAULT (uintptr_t) _dl_sysinfo_int80
 # define DL_SYSINFO_IMPLEMENTATION \
-  asm (".type _dl_sysinfo_int80,@function\n\t"				      \
+  asm (".text\n\t"							      \
+       ".type _dl_sysinfo_int80,@function\n\t"				      \
        ".hidden _dl_sysinfo_int80\n"					      \
+       CFI_STARTPROC "\n"						      \
        "_dl_sysinfo_int80:\n\t"						      \
        "int $0x80;\n\t"							      \
        "ret;\n\t"							      \
-       ".size _dl_sysinfo_int80,.-_dl_sysinfo_int80");
+       CFI_ENDPROC "\n"							      \
+       ".size _dl_sysinfo_int80,.-_dl_sysinfo_int80\n\t"		      \
+       ".previous");
 #endif
 
 #endif	/* dl-sysdep.h */