{"id":812663,"url":"http://patchwork.ozlabs.org/api/patches/812663/?format=json","web_url":"http://patchwork.ozlabs.org/project/glibc/patch/20170911233614.26389-1-samuel.thibault@ens-lyon.org/","project":{"id":41,"url":"http://patchwork.ozlabs.org/api/projects/41/?format=json","name":"GNU C Library","link_name":"glibc","list_id":"libc-alpha.sourceware.org","list_email":"libc-alpha@sourceware.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170911233614.26389-1-samuel.thibault@ens-lyon.org>","list_archive_url":null,"date":"2017-09-11T23:36:14","name":"[hurd,commited] hurd: Fix build without NO_HIDDEN","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"2810f699e162b3d25bb00c07644135a59f5adb84","submitter":{"id":418,"url":"http://patchwork.ozlabs.org/api/people/418/?format=json","name":"Samuel Thibault","email":"samuel.thibault@ens-lyon.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/glibc/patch/20170911233614.26389-1-samuel.thibault@ens-lyon.org/mbox/","series":[{"id":2597,"url":"http://patchwork.ozlabs.org/api/series/2597/?format=json","web_url":"http://patchwork.ozlabs.org/project/glibc/list/?series=2597","date":"2017-09-11T23:36:14","name":"[hurd,commited] hurd: Fix build without NO_HIDDEN","version":1,"mbox":"http://patchwork.ozlabs.org/series/2597/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/812663/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/812663/checks/","tags":{},"related":[],"headers":{"Return-Path":"<libc-alpha-return-84475-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84475-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"MlMl9kXX\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrkpZ20kyz9s7F\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 09:36:38 +1000 (AEST)","(qmail 126165 invoked by alias); 11 Sep 2017 23:36:30 -0000","(qmail 126148 invoked by uid 89); 11 Sep 2017 23:36:29 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:cc:subject:date:message-id; q=dns; s=\n\tdefault; b=iV+iBfiv2PX8sJUxTifjZVGdwMjaBvrSokQcYMKrbZLYwW+1Yfgbl\n\tqSIVXJ5Lg/Ed+tyg96sV3MdqvLGom5vQE0H1GWZmR0hJe1j3+Uuq8f2TJaDrzlug\n\tIty0Ac9/PInO4karb0/5L6jO9kQZjczFEcjChpWUVIHNOAkJequ3bw=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:cc:subject:date:message-id; s=default;\n\tbh=lQFcAKr40XT7MjRsDuKBRKZn5/Y=; b=MlMl9kXX+R0LfeIL3/KDIaqZy9q3\n\tt37yGy4OjFDf1kMRG1XX79s2sYphxHDJ9vM0F1bOR0taqGQQ9l+zoN8wZm+lgE+G\n\ti9RMWl+wcIriGYbJBLVEcGpb3B7cLSiwfXN3Q/Has1dF/rzfv0Ti/wfO54sTK8F4\n\tkaiFf62Bw9zR80k=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n\tGIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS,\n\tSPF_NEUTRAL,\n\tURIBL_RED autolearn=ham version=3.3.2 spammy=hassle","X-HELO":"hera.aquilenet.fr","From":"Samuel Thibault <samuel.thibault@ens-lyon.org>","To":"libc-alpha@sourceware.org","Cc":"Samuel Thibault <samuel.thibault@ens-lyon.org>","Subject":"[hurd,commited] hurd: Fix build without NO_HIDDEN","Date":"Tue, 12 Sep 2017 01:36:14 +0200","Message-Id":"<20170911233614.26389-1-samuel.thibault@ens-lyon.org>"},"content":"* posix/sched_primax.c (__sched_get_priority_max): Add\n\tlibc_hidden_def.\n\t* posix/sched_primin.c (__sched_get_priority_min): Likewise.\n\t* sysdeps/mach/hurd/mmap.c (__mmap): Likewise.\n\t* sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.\n\t* sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.\n\t* sysdeps/mach/hurd/munmap.c (__munmap): Likewise.\n\t* sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,\n\t__GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,\n\t__GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):\n\tAdd aliases.\n---\n ChangeLog                     | 14 ++++++++++++++\n posix/sched_primax.c          |  1 +\n posix/sched_primin.c          |  1 +\n sysdeps/mach/hurd/dl-sysdep.c | 13 +++++++++++++\n sysdeps/mach/hurd/mmap.c      |  1 +\n sysdeps/mach/hurd/mmap64.c    |  1 +\n sysdeps/mach/mprotect.c       |  1 +\n sysdeps/mach/munmap.c         |  1 +\n 8 files changed, 33 insertions(+)","diff":"diff --git a/ChangeLog b/ChangeLog\nindex a9b6460090..7f8432cb37 100644\n--- a/ChangeLog\n+++ b/ChangeLog\n@@ -1,3 +1,17 @@\n+2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>\n+\n+\t* posix/sched_primax.c (__sched_get_priority_max): Add\n+\tlibc_hidden_def.\n+\t* posix/sched_primin.c (__sched_get_priority_min): Likewise.\n+\t* sysdeps/mach/hurd/mmap.c (__mmap): Likewise.\n+\t* sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.\n+\t* sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.\n+\t* sysdeps/mach/hurd/munmap.c (__munmap): Likewise.\n+\t* sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,\n+\t__GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,\n+\t__GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):\n+\tAdd aliases.\n+\n 2017-09-11  Joseph Myers  <joseph@codesourcery.com>\n \n \t* sysdeps/generic/libm-alias-float.h: New file.\ndiff --git a/posix/sched_primax.c b/posix/sched_primax.c\nindex 6f40b83f6c..ed711c7317 100644\n--- a/posix/sched_primax.c\n+++ b/posix/sched_primax.c\n@@ -26,6 +26,7 @@ __sched_get_priority_max (int algorithm)\n   __set_errno (ENOSYS);\n   return -1;\n }\n+libc_hidden_def (__sched_get_priority_max)\n stub_warning (sched_get_priority_max)\n \n weak_alias (__sched_get_priority_max, sched_get_priority_max)\ndiff --git a/posix/sched_primin.c b/posix/sched_primin.c\nindex 7e38a7cc6b..149b994406 100644\n--- a/posix/sched_primin.c\n+++ b/posix/sched_primin.c\n@@ -26,6 +26,7 @@ __sched_get_priority_min (int algorithm)\n   __set_errno (ENOSYS);\n   return -1;\n }\n+libc_hidden_def (__sched_get_priority_min)\n stub_warning (sched_get_priority_min)\n \n weak_alias (__sched_get_priority_min, sched_get_priority_min)\ndiff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c\nindex 517e4d62cc..8a8ac76efa 100644\n--- a/sysdeps/mach/hurd/dl-sysdep.c\n+++ b/sysdeps/mach/hurd/dl-sysdep.c\n@@ -577,6 +577,10 @@ __getpid (void)\n   return pid;\n }\n \n+/* We need this alias to satisfy references from libc_pic.a objects\n+   that were affected by the libc_hidden_proto declaration for __getpid.  */\n+strong_alias (__getpid, __GI___getpid)\n+\n /* This is called only in some strange cases trying to guess a value\n    for $ORIGIN for the executable.  The dynamic linker copes with\n    getcwd failing (dl-object.c), and it's too much hassle to include\n@@ -611,6 +615,11 @@ __strtoul_internal (const char *nptr, char **endptr, int base, int group)\n   return _dl_strtoul (nptr, endptr);\n }\n \n+/* We need this alias to satisfy references from libc_pic.a objects\n+   that were affected by the libc_hidden_proto declaration for __strtoul_internal.  */\n+strong_alias (__strtoul_internal, __GI___strtoul_internal)\n+strong_alias (__strtoul_internal, __GI_____strtoul_internal)\n+\n void weak_function attribute_hidden\n _exit (int status)\n {\n@@ -649,6 +658,10 @@ abort (void)\n /* We need this alias to satisfy references from libc_pic.a objects\n    that were affected by the libc_hidden_proto declaration for abort.  */\n strong_alias (abort, __GI_abort)\n+strong_alias (abort, __GI___chk_fail)\n+strong_alias (abort, __GI___fortify_fail)\n+strong_alias (abort, __GI___assert_fail)\n+strong_alias (abort, __GI___assert_perror_fail)\n \f\n /* This function is called by interruptible RPC stubs.  For initial\n    dynamic linking, just use the normal mach_msg.  Since this defn is\ndiff --git a/sysdeps/mach/hurd/mmap.c b/sysdeps/mach/hurd/mmap.c\nindex 72706c3332..a6b4e8bf9e 100644\n--- a/sysdeps/mach/hurd/mmap.c\n+++ b/sysdeps/mach/hurd/mmap.c\n@@ -185,4 +185,5 @@ __mmap (void *addr, size_t len, int prot, int flags, int fd, off_t offset)\n   return (void *) mapaddr;\n }\n \n+libc_hidden_def (__mmap)\n weak_alias (__mmap, mmap)\ndiff --git a/sysdeps/mach/hurd/mmap64.c b/sysdeps/mach/hurd/mmap64.c\nindex 282b7525c8..1547e856b7 100644\n--- a/sysdeps/mach/hurd/mmap64.c\n+++ b/sysdeps/mach/hurd/mmap64.c\n@@ -44,4 +44,5 @@ __mmap64 (void *addr, size_t len, int prot, int flags, int fd,\n   return __mmap (addr, len, prot, flags, fd, small_offset);\n }\n \n+libc_hidden_def (__mmap64)\n weak_alias (__mmap64, mmap64)\ndiff --git a/sysdeps/mach/mprotect.c b/sysdeps/mach/mprotect.c\nindex 84a72850ac..680905703d 100644\n--- a/sysdeps/mach/mprotect.c\n+++ b/sysdeps/mach/mprotect.c\n@@ -47,4 +47,5 @@ __mprotect (void *addr, size_t len, int prot)\n     }\n   return 0;\n }\n+libc_hidden_def (__mprotect)\n weak_alias (__mprotect, mprotect)\ndiff --git a/sysdeps/mach/munmap.c b/sysdeps/mach/munmap.c\nindex 4a98613baf..5ba414ba05 100644\n--- a/sysdeps/mach/munmap.c\n+++ b/sysdeps/mach/munmap.c\n@@ -43,4 +43,5 @@ __munmap (void *addr, size_t len)\n   return 0;\n }\n \n+libc_hidden_def (__munmap)\n weak_alias (__munmap, munmap)\n","prefixes":["hurd","commited"]}