Message ID | 20221029120030.1448-1-gfleury@disroot.org |
---|---|
Headers |
Return-Path: <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C203038582B5 for <patchwork@sourceware.org>; Sat, 29 Oct 2022 16:16:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C203038582B5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667060197; bh=bt1BvEmXEDmHxvCSIw8Zo1NvYKOwu/rxYPRfcCXGBTs=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=rlz/8DvjrmzSsz+qzIXMDd0xQqksYxEgzELBr9yXuGC45ZMwtK1SfncTga8GXkQEb 02qXZa7GERgVh6NMQmRbuo+zKAqmE6e5QHO2aHHEesp1p9X3I/S+Xn4wm/yVlzIPAK M1FrroFfSytI4ftoZC7ZUMQv9lijkgY80EzM46Kw= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by sourceware.org (Postfix) with ESMTPS id AA9623858C83 for <libc-alpha@sourceware.org>; Sat, 29 Oct 2022 16:16:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AA9623858C83 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id BE7B3408F7; Sat, 29 Oct 2022 18:16:07 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4U1Ndz9207g9; Sat, 29 Oct 2022 18:16:06 +0200 (CEST) To: libc-alpha@sourceware.org Subject: [PATCH 0/4] move some htl symbol into libc Date: Sat, 29 Oct 2022 13:00:26 +0100 Message-Id: <20221029120030.1448-1-gfleury@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DATE_IN_PAST_03_06, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP, URIBL_BLACK autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Guy-Fleury Iteriteka via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Guy-Fleury Iteriteka <gfleury@disroot.org> Cc: Guy-Fleury Iteriteka <gfleury@disroot.org> Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
move some htl symbol into libc
|
|
Message
Guy-Fleury Iteriteka
Oct. 29, 2022, noon UTC
Hello, can you help me moving the pthread_self into libc as an example so that i can go ahead and move others that are not difficult for me. pthread_equal is removed from libpthread.so but with the patch for pthread_self is in both libc.so and libpthread.so. this is libpthread.so ------- U ___pthread_self@GLIBC_PRIVATE 00006630 t __pthread_self 00006630 t pthread_self ------- and this libc.so ------- 00000028 b __GI____pthread_self 00000028 B ___pthread_self 001cf570 T __pthread_self 001cf570 W pthread_self ------- i was thinking that it is with this makefile rule ------ extra-B-pthread.so = -B$(common-objpfx)htl/ ------ in htl/Makefile that will force the pthread_self inclusion. that would explain why pthread_equal is remove because it is in sysdeps/htl/. thanks. Guy-Fleury Iteriteka (4): htl: move __pthread-total into libc. htl: move ___pthread_self to libc htl: move pthread_equal into libc htl: move pthread_self into libc htl/Makefile | 5 ++--- htl/Versions | 11 ++++++----- htl/forward.c | 8 -------- htl/pt-create.c | 6 ------ htl/pt-initialize.c | 2 -- htl/pt-internal.h | 1 + htl/pt-total.c | 23 +++++++++++++++++++++++ sysdeps/htl/pthread-functions.h | 4 ---- sysdeps/mach/hurd/htl/pt-dep-self.c | 22 ++++++++++++++++++++++ sysdeps/mach/hurd/htl/pt-sysdep.c | 2 +- sysdeps/mach/hurd/htl/pt-sysdep.h | 3 +++ sysdeps/mach/hurd/i386/libc.abilist | 2 ++ sysdeps/mach/hurd/i386/libpthread.abilist | 2 -- 13 files changed, 60 insertions(+), 31 deletions(-) create mode 100644 htl/pt-total.c create mode 100644 sysdeps/mach/hurd/htl/pt-dep-self.c
Comments
Guy-Fleury Iteriteka via Libc-alpha, le sam. 29 oct. 2022 13:00:26 +0100, a ecrit: > pthread_equal is removed from libpthread.so but > with the patch for pthread_self is in both libc.so and libpthread.so. > > this is libpthread.so > ------- > U ___pthread_self@GLIBC_PRIVATE > 00006630 t __pthread_self > 00006630 t pthread_self I don't know why that would happen, but you can grep files in htl/ to see where that is coming from exactly. > i was thinking that it is with this makefile rule > ------ > extra-B-pthread.so = -B$(common-objpfx)htl/ I don't actually why that is there. It was probably cargo-culted and probably it's worth trying to remove it. Samuel
Samuel Thibault, le mar. 01 nov. 2022 23:28:54 +0100, a ecrit: > Guy-Fleury Iteriteka via Libc-alpha, le sam. 29 oct. 2022 13:00:26 +0100, a ecrit: > > pthread_equal is removed from libpthread.so but > > with the patch for pthread_self is in both libc.so and libpthread.so. > > > > this is libpthread.so > > ------- > > U ___pthread_self@GLIBC_PRIVATE > > 00006630 t __pthread_self > > 00006630 t pthread_self > > I don't know why that would happen, but you can grep files in htl/ to > see where that is coming from exactly. (I meant in the htl/ build tree, to make sure what .o file ends up defining them) Samuel
On November 2, 2022 6:29:22 PM GMT+02:00, Samuel Thibault <samuel.thibault@aquilenet.fr> wrote: >Samuel Thibault, le mar. 01 nov. 2022 23:28:54 +0100, a ecrit: >> Guy-Fleury Iteriteka via Libc-alpha, le sam. 29 oct. 2022 13:00:26 +0100, a ecrit: >> > pthread_equal is removed from libpthread.so but >> > with the patch for pthread_self is in both libc.so and libpthread.so. >> > >> > this is libpthread.so >> > ------- >> > U ___pthread_self@GLIBC_PRIVATE >> > 00006630 t __pthread_self >> > 00006630 t pthread_self >> >> I don't know why that would happen, but you can grep files in htl/ to >> see where that is coming from exactly. > >(I meant in the htl/ build tree, to make sure what .o file ends up >defining them) > will check that. Thanks >Samuel
Hello, On November 2, 2022 12:28:54 AM GMT+02:00, Samuel Thibault <samuel.thibault@aquilenet.fr> wrote: >Guy-Fleury Iteriteka via Libc-alpha, le sam. 29 oct. 2022 13:00:26 +0100, a ecrit: >> pthread_equal is removed from libpthread.so but >> with the patch for pthread_self is in both libc.so and libpthread.so. >> >> this is libpthread.so >> ------- >> U ___pthread_self@GLIBC_PRIVATE >> 00006630 t __pthread_self >> 00006630 t pthread_self > >I don't know why that would happen, but you can grep files in htl/ to >see where that is coming from exactly. > Sorry with a full rebuild it doesn't define in libpthread anymore. I will correct issue raised by Florian and send an update patch >> i was thinking that it is with this makefile rule >> ------ >> extra-B-pthread.so = -B$(common-objpfx)htl/ > >I don't actually why that is there. It was probably cargo-culted and >probably it's worth trying to remove it. > >Samuel