]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
authorJakub Jelinek <jakub@redhat.com>
Wed, 21 May 2008 08:48:21 +0000 (08:48 +0000)
committerJakub Jelinek <jakub@redhat.com>
Wed, 21 May 2008 08:48:21 +0000 (08:48 +0000)
(CALL_ERRNO_LOCATION): Define.
(__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
(CALL_ERRNO_LOCATION): Define.
(__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
* sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2008-05-21  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
(CALL_ERRNO_LOCATION): Define.
(__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
(CALL_ERRNO_LOCATION): Define.
(__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
* sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
HIDDEN_JUMPTARGET for __errno_location call in libc.so.

ChangeLog
sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
sysdeps/unix/sysv/linux/sparc/sparc64/brk.S
sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h

index bb9b90b6da76b066e43e4b907a76199a0e068c8e..abf2caa8bf167ba4368de1e3df8b441fd44d7057 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2008-05-21  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
+       (CALL_ERRNO_LOCATION): Define.
+       (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
+       * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
+       (CALL_ERRNO_LOCATION): Define.
+       (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
+       * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
+       HIDDEN_JUMPTARGET for __errno_location call in libc.so.
+
 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
 
        * include/inline-hashtab.h (higher_prime_number): Fix type of mid
index c808a97fc55bb6402944abf9165ef553cb85c323..1f674c1fbe41c362d01adc12508923db04a8a158 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1997, 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 2002, 2003, 2004, 2006, 2008
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Miguel de Icaza <miguel@gnu.ai.mit.edu>, January 1997.
 
@@ -89,6 +90,13 @@ ENTRY(name);                                 \
 
 #else  /* __ASSEMBLER__ */
 
+#if defined SHARED && defined DO_VERSIONING && defined PIC \
+    && !defined NO_HIDDEN && !defined NOT_IN_libc
+# define CALL_ERRNO_LOCATION "call   __GI___errno_location;"
+#else
+# define CALL_ERRNO_LOCATION "call   __errno_location;"
+#endif
+
 #define __SYSCALL_STRING                                               \
        "ta     0x10;"                                                  \
        "bcs    2f;"                                                    \
@@ -97,7 +105,7 @@ ENTRY(name);                                 \
        ".subsection 2;"                                                \
        "2:"                                                            \
        "save   %%sp, -192, %%sp;"                                      \
-       "call   __errno_location;"                                      \
+       CALL_ERRNO_LOCATION                                             \
        " nop;"                                                         \
        "st     %%i0,[%%o0];"                                           \
        "ba     1b;"                                                    \
@@ -113,7 +121,7 @@ ENTRY(name);                                        \
        ".subsection 2;"                                                \
        "2:"                                                            \
        "save   %%sp, -192, %%sp;"                                      \
-       "call   __errno_location;"                                      \
+       CALL_ERRNO_LOCATION                                             \
        " nop;"                                                         \
        "st     %%i0, [%%o0];"                                          \
        "ba     1b;"                                                    \
index 134ce789f77b6c05822456fd548bbc6e1b3ebafa..ccc5589927f217d666f9231c52d655f0e80b1fed 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Richard Henderson <richard@gnu.ai.mit.edu>, 1997.
 
@@ -85,8 +85,12 @@ ENTRY (__brk)
        ldx     [%l7+%g1], %g1
 #endif
        st      %o0, [%g1]
+#else
+#ifndef NOT_IN_libc
+       call    HIDDEN_JUMPTARGET(__errno_location)
 #else
        call    __errno_location
+#endif
         mov    %o0,%l1
        st      %l1, [%o0]
 #endif
index f156f9241a32ef38412c590bed52d948bb7069fe..6bb061319edaeb0c024fbf50e12063af8202b109 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 2000, 2002, 2003, 2004, 2006
+/* Copyright (C) 1997, 2000, 2002, 2003, 2004, 2006, 2008
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Richard Henderson <richard@gnu.ai.mit.edu>, 1997.
@@ -106,12 +106,19 @@ ENTRY(name);                                      \
 
 #else  /* __ASSEMBLER__ */
 
+#if defined SHARED && defined DO_VERSIONING && defined PIC \
+    && !defined NO_HIDDEN && !defined NOT_IN_libc
+# define CALL_ERRNO_LOCATION "call   __GI___errno_location;"
+#else
+# define CALL_ERRNO_LOCATION "call   __errno_location;"
+#endif
+
 #define __SYSCALL_STRING                                               \
        "ta     0x6d;"                                                  \
        "bcc,pt %%xcc, 1f;"                                             \
        " nop;"                                                         \
        "save   %%sp, -192, %%sp;"                                      \
-       "call   __errno_location;"                                      \
+       CALL_ERRNO_LOCATION                                             \
        " nop;"                                                         \
        "st     %%i0,[%%o0];"                                           \
        "restore %%g0, -1, %%o0;"                                       \
@@ -122,7 +129,7 @@ ENTRY(name);                                        \
        "bcc,pt %%xcc, 1f;"                                             \
        " sub   %%o1, 1, %%o1;"                                         \
        "save   %%sp, -192, %%sp;"                                      \
-       "call   __errno_location;"                                      \
+       CALL_ERRNO_LOCATION                                             \
        " mov   -1, %%i1;"                                              \
        "st     %%i0,[%%o0];"                                           \
        "restore %%g0, -1, %%o0;"                                       \