]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix build without NO_HIDDEN
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 11 Sep 2017 23:34:19 +0000 (01:34 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 11 Sep 2017 23:34:19 +0000 (01:34 +0200)
* posix/sched_primax.c (__sched_get_priority_max): Add
libc_hidden_def.
* posix/sched_primin.c (__sched_get_priority_min): Likewise.
* sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
* sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
* sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
* sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
* sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
__GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
__GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
Add aliases.

ChangeLog
posix/sched_primax.c
posix/sched_primin.c
sysdeps/mach/hurd/dl-sysdep.c
sysdeps/mach/hurd/mmap.c
sysdeps/mach/hurd/mmap64.c
sysdeps/mach/mprotect.c
sysdeps/mach/munmap.c

index a9b646009070dbb4ecfcf62ad805ec44e51d8839..7f8432cb370324a54393b4e24c1b413d3e276e3c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * posix/sched_primax.c (__sched_get_priority_max): Add
+       libc_hidden_def.
+       * posix/sched_primin.c (__sched_get_priority_min): Likewise.
+       * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
+       * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
+       * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
+       * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
+       * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
+       __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
+       __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
+       Add aliases.
+
 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/generic/libm-alias-float.h: New file.
index 6f40b83f6c801c7dd9b5adffc7e33d963f1d9cd2..ed711c7317169ddcbf70f6b95a0c9071f1659801 100644 (file)
@@ -26,6 +26,7 @@ __sched_get_priority_max (int algorithm)
   __set_errno (ENOSYS);
   return -1;
 }
+libc_hidden_def (__sched_get_priority_max)
 stub_warning (sched_get_priority_max)
 
 weak_alias (__sched_get_priority_max, sched_get_priority_max)
index 7e38a7cc6b53300d4c363f3c3d7212bd314b72a3..149b9944066612b52110db466d0262370d78b4dd 100644 (file)
@@ -26,6 +26,7 @@ __sched_get_priority_min (int algorithm)
   __set_errno (ENOSYS);
   return -1;
 }
+libc_hidden_def (__sched_get_priority_min)
 stub_warning (sched_get_priority_min)
 
 weak_alias (__sched_get_priority_min, sched_get_priority_min)
index 517e4d62cc676d7ca87400683f3c669783d4d935..8a8ac76efa75dd6b0070e1d358463d9c78b3001d 100644 (file)
@@ -577,6 +577,10 @@ __getpid (void)
   return pid;
 }
 
+/* We need this alias to satisfy references from libc_pic.a objects
+   that were affected by the libc_hidden_proto declaration for __getpid.  */
+strong_alias (__getpid, __GI___getpid)
+
 /* This is called only in some strange cases trying to guess a value
    for $ORIGIN for the executable.  The dynamic linker copes with
    getcwd failing (dl-object.c), and it's too much hassle to include
@@ -611,6 +615,11 @@ __strtoul_internal (const char *nptr, char **endptr, int base, int group)
   return _dl_strtoul (nptr, endptr);
 }
 
+/* We need this alias to satisfy references from libc_pic.a objects
+   that were affected by the libc_hidden_proto declaration for __strtoul_internal.  */
+strong_alias (__strtoul_internal, __GI___strtoul_internal)
+strong_alias (__strtoul_internal, __GI_____strtoul_internal)
+
 void weak_function attribute_hidden
 _exit (int status)
 {
@@ -649,6 +658,10 @@ abort (void)
 /* We need this alias to satisfy references from libc_pic.a objects
    that were affected by the libc_hidden_proto declaration for abort.  */
 strong_alias (abort, __GI_abort)
+strong_alias (abort, __GI___chk_fail)
+strong_alias (abort, __GI___fortify_fail)
+strong_alias (abort, __GI___assert_fail)
+strong_alias (abort, __GI___assert_perror_fail)
 \f
 /* This function is called by interruptible RPC stubs.  For initial
    dynamic linking, just use the normal mach_msg.  Since this defn is
index 72706c3332c285fc3476e2127d2b8266e675ce9d..a6b4e8bf9e40059bf6aba9b8ef5c82dec98c7e6a 100644 (file)
@@ -185,4 +185,5 @@ __mmap (void *addr, size_t len, int prot, int flags, int fd, off_t offset)
   return (void *) mapaddr;
 }
 
+libc_hidden_def (__mmap)
 weak_alias (__mmap, mmap)
index 282b7525c8f61fc6061b2a99cc7b0de3a45e89ed..1547e856b7f07846c692817516f89e8b93dc97ec 100644 (file)
@@ -44,4 +44,5 @@ __mmap64 (void *addr, size_t len, int prot, int flags, int fd,
   return __mmap (addr, len, prot, flags, fd, small_offset);
 }
 
+libc_hidden_def (__mmap64)
 weak_alias (__mmap64, mmap64)
index 84a72850ac3bbacbfa61f85c4d985bda08676cdf..680905703d22695ed2ce6fd03ae715b799937db0 100644 (file)
@@ -47,4 +47,5 @@ __mprotect (void *addr, size_t len, int prot)
     }
   return 0;
 }
+libc_hidden_def (__mprotect)
 weak_alias (__mprotect, mprotect)
index 4a98613baf0760d6ab13bb231e678e77be88404a..5ba414ba0590aa791d62b7d82e52a3e1a6cc204d 100644 (file)
@@ -43,4 +43,5 @@ __munmap (void *addr, size_t len)
   return 0;
 }
 
+libc_hidden_def (__munmap)
 weak_alias (__munmap, munmap)