[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r6703 - in glibc-package/branches/glibc-2.21/debian: . patches patches/hurd-i386



Author: sthibault
Date: 2015-11-25 01:56:42 +0000 (Wed, 25 Nov 2015)
New Revision: 6703

Added:
   glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff
Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
   glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/unsubmitted-NO_HIDDEN.diff
   glibc-package/branches/glibc-2.21/debian/patches/series
Log:
  * patches/hurd-i386/cvs-hidden.diff: New patch, to fix build with hidden
    support.


Modified: glibc-package/branches/glibc-2.21/debian/changelog
===================================================================
--- glibc-package/branches/glibc-2.21/debian/changelog	2015-11-25 00:42:57 UTC (rev 6702)
+++ glibc-package/branches/glibc-2.21/debian/changelog	2015-11-25 01:56:42 UTC (rev 6703)
@@ -17,6 +17,8 @@
     accessing TLS while locking for accessing TLS.
   * patches/hurd-i386/tg-context_functions.diff: Update, to fix sigprocmask
     visibility.
+  * patches/hurd-i386/cvs-hidden.diff: New patch, to fix build with hidden
+    support.
 
  -- Aurelien Jarno <aurel32@debian.org>  Sun, 22 Nov 2015 20:20:54 +0100
 

Added: glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff
===================================================================
--- glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff	                        (rev 0)
+++ glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff	2015-11-25 01:56:42 UTC (rev 6703)
@@ -0,0 +1,157 @@
+diff --git a/sysdeps/i386/setjmp.S b/sysdeps/i386/setjmp.S
+index 5fe4900..cb4f0bd 100644
+--- a/sysdeps/i386/setjmp.S
++++ b/sysdeps/i386/setjmp.S
+@@ -55,3 +55,4 @@ ENTRY (__sigsetjmp)
+ 	jmp __sigjmp_save
+ #endif
+ END (__sigsetjmp)
++hidden_def (__sigsetjmp)
+diff --git a/sysdeps/mach/hurd/accept4.c b/sysdeps/mach/hurd/accept4.c
+index 19114f7..13cd593 100644
+--- a/sysdeps/mach/hurd/accept4.c
++++ b/sysdeps/mach/hurd/accept4.c
+@@ -95,5 +95,4 @@ __libc_accept4 (int fd, __SOCKADDR_ARG addrarg, socklen_t *addr_len, int flags)
+ 
+   return _hurd_intern_fd (new, O_IGNORE_CTTY | flags, 1);
+ }
+-libc_hidden_def (__libc_accept4)
+ weak_alias (__libc_accept4, accept4)
+diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
+index e446f15..7b3c569 100644
+--- a/sysdeps/mach/hurd/dl-sysdep.c
++++ b/sysdeps/mach/hurd/dl-sysdep.c
+@@ -55,7 +55,8 @@ rtld_hidden_data_def (__libc_enable_secure)
+ int __libc_multiple_libcs = 0;	/* Defining this here avoids the inclusion
+ 				   of init-first.  */
+ /* This variable contains the lowest stack address ever used.  */
+-void *__libc_stack_end;
++void *__libc_stack_end attribute_relro = NULL;
++rtld_hidden_data_def(__libc_stack_end)
+ 
+ #if HP_TIMING_AVAIL
+ hp_timing_t _dl_cpuclock_offset;
+diff --git a/sysdeps/mach/hurd/fxstatat64.c b/sysdeps/mach/hurd/fxstatat64.c
+index a15c16d..ee7456d 100644
+--- a/sysdeps/mach/hurd/fxstatat64.c
++++ b/sysdeps/mach/hurd/fxstatat64.c
+@@ -43,3 +43,4 @@ __fxstatat64 (int vers, int fd, const char *filename, struct stat64 *buf,
+ 
+   return __hurd_fail (err);
+ }
++libc_hidden_def (__fxstatat64)
+diff --git a/sysdeps/mach/hurd/if_index.c b/sysdeps/mach/hurd/if_index.c
+index 652149b..03b31f9 100644
+--- a/sysdeps/mach/hurd/if_index.c
++++ b/sysdeps/mach/hurd/if_index.c
+@@ -65,7 +65,9 @@ __if_freenameindex (struct if_nameindex *ifn)
+     }
+   free (ifn);
+ }
++libc_hidden_def (__if_freenameindex)
+ weak_alias (__if_freenameindex, if_freenameindex)
++libc_hidden_weak (if_freenameindex)
+ 
+ /* Return an array of if_nameindex structures, one for each network
+    interface present, plus one indicating the end of the array.  On
+@@ -152,6 +154,7 @@ __if_nameindex (void)
+   return idx;
+ }
+ weak_alias (__if_nameindex, if_nameindex)
++libc_hidden_weak (if_nameindex)
+ 
+ /* Store the name of the interface corresponding to index IFINDEX in
+    IFNAME (which has space for at least IFNAMSIZ characters).  Return
+diff --git a/sysdeps/mach/hurd/open.c b/sysdeps/mach/hurd/open.c
+index c497a7c..6d5c97b 100644
+--- a/sysdeps/mach/hurd/open.c
++++ b/sysdeps/mach/hurd/open.c
+@@ -56,5 +56,5 @@ weak_alias (__libc_open, open)
+ /* open64 is just the same as open for us.  */
+ weak_alias (__libc_open, __libc_open64)
+ weak_alias (__libc_open, __open64)
+-libc_hidden_weak (_open64)
++libc_hidden_weak (__open64)
+ weak_alias (__libc_open, open64)
+diff --git a/sysdeps/mach/hurd/sigwait.c b/sysdeps/mach/hurd/sigwait.c
+index de024a3..8850f2a 100644
+--- a/sysdeps/mach/hurd/sigwait.c
++++ b/sysdeps/mach/hurd/sigwait.c
+@@ -129,4 +129,5 @@ all_done:
+   return 0;
+ }
+ 
++libc_hidden_def (__sigwait)
+ weak_alias (__sigwait, sigwait)
+diff --git a/sysdeps/mach/hurd/xmknodat.c b/sysdeps/mach/hurd/xmknodat.c
+index 6c7d669..82a6eb9 100644
+--- a/sysdeps/mach/hurd/xmknodat.c
++++ b/sysdeps/mach/hurd/xmknodat.c
+@@ -115,3 +115,5 @@ __xmknodat (int vers, int fd, const char *path, mode_t mode, dev_t *dev)
+     return __hurd_fail (err);
+   return 0;
+ }
++
++libc_hidden_def (__xmknodat)
+diff --git a/sysdeps/mach/nanosleep.c b/sysdeps/mach/nanosleep.c
+index 390d8a7..eabd23e 100644
+--- a/sysdeps/mach/nanosleep.c
++++ b/sysdeps/mach/nanosleep.c
+@@ -19,10 +19,11 @@
+ #include <errno.h>
+ #include <mach.h>
+ #include <sys/time.h>
++#include <time.h>
+ #include <unistd.h>
+ 
+ int
+-__nanosleep (const struct timespec *requested_time,
++__libc_nanosleep (const struct timespec *requested_time,
+ 	     struct timespec *remaining)
+ {
+   mach_port_t recv;
+@@ -64,5 +65,6 @@ __nanosleep (const struct timespec *requested_time,
+ 
+   return 0;
+ }
++weak_alias(__libc_nanosleep, __nanosleep)
+ libc_hidden_def (__nanosleep)
+-weak_alias (__nanosleep, nanosleep)
++weak_alias (__libc_nanosleep, nanosleep)
+--- a/libpthread/sysdeps/generic/raise.c.orig	2015-11-25 02:19:19.640063307 +0100
++++ b/libpthread/sysdeps/generic/raise.c	2015-11-25 02:19:32.860007847 +0100
+@@ -19,6 +19,7 @@
+    <http://www.gnu.org/licenses/>.  */
+ 
+ #include <pthread.h>
++#include <signal.h>
+ 
+ #pragma weak pthread_kill
+ #pragma weak pthread_self
+@@ -43,3 +44,5 @@
+   return 0;
+ }
+ 
++libc_hidden_def (raise)
++weak_alias (raise, gsignal)
+--- a/libpthread/sysdeps/generic/pt-key-create.c
++++ b/libpthread/sysdeps/generic/pt-key-create.c
+@@ -21,9 +21,10 @@
+ #include <pt-internal.h>
+ 
+ int
+-pthread_key_create (pthread_key_t *key, void (*destructor) (void *))
++__pthread_key_create (pthread_key_t *key, void (*destructor) (void *))
+ {
+   return ENOSYS;
+ }
+ 
++strong_alias (__pthread_key_create, pthread_key_create)
+ stub_warning (pthread_key_create)
+--- a/libpthread/sysdeps/hurd/pt-key-create.c
++++ b/libpthread/sysdeps/hurd/pt-key-create.c
+@@ -108,4 +108,3 @@ __pthread_key_create (pthread_key_t *key, void (*destructor) (void *))
+   return 0;
+ }
+ strong_alias (__pthread_key_create, pthread_key_create)
+-hidden_def (__pthread_key_create)

Modified: glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/unsubmitted-NO_HIDDEN.diff
===================================================================
--- glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/unsubmitted-NO_HIDDEN.diff	2015-11-25 00:42:57 UTC (rev 6702)
+++ glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/unsubmitted-NO_HIDDEN.diff	2015-11-25 01:56:42 UTC (rev 6703)
@@ -1,3 +1,5 @@
+TODO: drop, now that we have hidden support.
+
 hurd-i386 defines NO_HIDDEN, thus __GI_* versions are not available.
 
 This was introduced by

Modified: glibc-package/branches/glibc-2.21/debian/patches/series
===================================================================
--- glibc-package/branches/glibc-2.21/debian/patches/series	2015-11-25 00:42:57 UTC (rev 6702)
+++ glibc-package/branches/glibc-2.21/debian/patches/series	2015-11-25 01:56:42 UTC (rev 6703)
@@ -163,6 +163,7 @@
 hurd-i386/local-bootstrap.diff
 hurd-i386/cvs-cache-mach_host_self.diff
 hurd-i386/local-mach_print.diff
+hurd-i386/cvs-hidden.diff
 
 i386/local-biarch.diff
 i386/local-cmov.diff


Reply to: