From patchwork Tue Apr 3 00:30:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 26564 Received: (qmail 42343 invoked by alias); 3 Apr 2018 00:30:45 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 42317 invoked by uid 89); 3 Apr 2018 00:30:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy= X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd, commited] hurd: whitelist ld.so PLTs supposed to be avoided by rtld_hidden Date: Tue, 3 Apr 2018 02:30:39 +0200 Message-Id: <20180403003039.10635-2-samuel.thibault@ens-lyon.org> In-Reply-To: <20180403003039.10635-1-samuel.thibault@ens-lyon.org> References: <20180403003039.10635-1-samuel.thibault@ens-lyon.org> * sysdeps/mach/hurd/localplt.data (ld.so): Add _dl_allocate_tls, _dl_allocate_tls_init, _dl_exception_create, _dl_exception_create_format, _dl_exception_free, _dl_find_dso_for_object, _dl_init_first, _dl_mcount, ___tls_get_addr, __tunable_get_val. --- sysdeps/mach/hurd/localplt.data | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sysdeps/mach/hurd/localplt.data b/sysdeps/mach/hurd/localplt.data index 2417b715d4..ca43cce323 100644 --- a/sysdeps/mach/hurd/localplt.data +++ b/sysdeps/mach/hurd/localplt.data @@ -39,3 +39,15 @@ ld.so: __getpid ld.so: abort ld.so: _hurd_intr_rpc_mach_msg ld.so: __errno_location +# rtld_hidden is currently disabled to avoid having to special-case the +# functions above which do need a PLT. These are thus currently expected. +ld.so: _dl_allocate_tls +ld.so: _dl_allocate_tls_init +ld.so: _dl_exception_create +ld.so: _dl_exception_create_format +ld.so: _dl_exception_free +ld.so: _dl_find_dso_for_object +ld.so: _dl_init_first +ld.so: _dl_mcount +ld.so: ___tls_get_addr +ld.so: __tunable_get_val