From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fhigh6-smtp.messagingengine.com (fhigh6-smtp.messagingengine.com [103.168.172.157]) by sourceware.org (Postfix) with ESMTPS id 14CBC385840D for ; Wed, 24 Apr 2024 13:56:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 14CBC385840D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=owlfolio.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=owlfolio.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 14CBC385840D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=103.168.172.157 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713966994; cv=none; b=v9H/lHZU3BWSkXWBtoftFKeLFVQTCN6zM1wyz1HqtbU12BwPikb6t4iajSA2XY9O3BGg7PwDLSHzniOiFlaPe+MWE8A1yvBbAW92b5i7lqGngXchbMK9IXpTGfEcTz6VHm5o2c5qQKDkE4HujtD5i5U7M0D2PMgk74p9ndXRD/8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713966994; c=relaxed/simple; bh=3ZokJmZ/PaBDCGUhAJ2zo17eaKFwdQWSHTSDwKp+tkE=; h=DKIM-Signature:DKIM-Signature:Mime-Version:Date:Message-Id: Subject:From:To; b=jAbEoYcANEUWKARwJ3G6ZP/p01bEGl/6p7hhGHTJovzU01resl/EA7w/P++Mt2M0OjkHPowlewmP/1I/1Oit9WN9h0IJmFC5444/tzJ0aoRASolVNdoV2714D6sRfZlq8prrkuoYbV1GmyR3v9Ytx3X3XC1SQepnQRI2pCCTE3A= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.nyi.internal (Postfix) with ESMTP id C038B1140123; Wed, 24 Apr 2024 09:56:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 24 Apr 2024 09:56:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1713966992; x=1714053392; bh=3ZokJmZ/PaBDCGUhAJ2zo17eaKFwdQWSHTSDwKp+tkE=; b= pJnNUVB2nuvethgfYXAAsGd/C5GGp4j0mDN0bbx7DsaeyoEdQ+/V3U+fFXi4+s9J imA+GnZ/g4FwG3I3qt6kykCtg+QngjBrYgOdu7Rt04ay+p6R7WdPsCfX0jOSD9Fd 2TeKgizwdxc+JY4KCF7EGK48rodichL7t5xOnF2JVdQhpwz2m/LYo7O3ZTl+bORB lZgO2sh0De4be9knfAE06AdcKIaRzwRv2Xcr5X2yjtBkySEXt7h3/jm7XqGzUvSA KZldDo/F06UXfvlATHJ03slrejMrfEF0AS24BBUUMqaA7WLxTCbMWH8JxHPtuZIG 8p+Y4wxCpp6kloe5CEpTFg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1713966992; x= 1714053392; bh=3ZokJmZ/PaBDCGUhAJ2zo17eaKFwdQWSHTSDwKp+tkE=; b=N giin0THPnYeOysv3TGrAHzDHZFIdaxQ80v0HUO+f1ZWInYoUJ1LL5QZmdmCxCdJ8 Yw8JLK8JxP0Zw6wVBMFETIpr6QCuyrBLdW2K30e7SwYyFixgBqwazTkL1rdNpQzk Zk/mgEFLGobfxEEaH+lDNQRJbw54xCrbu+ZMprOv1vdbxeXcXAnLrQGO+HxgRUE7 BZipDMq651FiXsSDzdHR/WIxpGTwmxNqmEtvrPKLtsxGPr6/+/DV6FiocBx+oX27 tcAJXRblE9rVDyzZrrVj5Q/SR4VAXSYz4CUUNylFKPsZvDfKlQF5wFUzfgvVC8xv e5jmvevWqQjlm0pgiV6cA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudelhedguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegggfgtfffkvefuhffvofhfjgesth hqredtredtjeenucfhrhhomhepfdgkrggtkhcuhggvihhnsggvrhhgfdcuoeiirggtkhes ohiflhhfohhlihhordhorhhgqeenucggtffrrghtthgvrhhnpeeiveehjeeuveefgfdvte fhtdelleekfffgfeffjeegteduieejheduffevjeeludenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeiirggtkhesohiflhhfohhlihhordhorh hg X-ME-Proxy: Feedback-ID: i876146a2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 24 Apr 2024 09:56:32 -0400 (EDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 24 Apr 2024 09:56:32 -0400 Message-Id: Cc: Subject: Re: Maybe we should get rid of ifuncs From: "Zack Weinberg" To: "enh" X-Mailer: aerc 0.16.0 References: In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue Apr 23, 2024 at 2:39 PM EDT, enh wrote: > one thing i think is interesting (having been looking at ifuncs while > adding riscv64 support to Android) is that afaict bionic [Android's > libc] is basically the only current user. every library i'm aware of > (and certainly every library that's part of the OS) does _not_ use > ifuncs, if only because iOS/macOS has no equivalent (and Windows > too?), and if you've got to have the manual function pointer > manipulation implementation for them... I assume you meant "every library that's *not* part of the OS"? > that said, for llvm at least there's work on function multi-versioning > where the compiler basically writes the ifunc resolver. but (a) that's > not quite finished yet (?) and (b) i haven't seen anyone _use_ it yet > and (c) is at least by definition of being machine-generated pretty > regular. Do you know where to find the llvm work in progress? zw