From owner-freebsd-questions@freebsd.org Sat Mar 30 04:09:39 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 093E11561E17 for ; Sat, 30 Mar 2019 04:09:39 +0000 (UTC) (envelope-from mayuresh@kathe.in) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7ADEF6C814 for ; Sat, 30 Mar 2019 04:09:37 +0000 (UTC) (envelope-from mayuresh@kathe.in) Received: from webmail.gandi.net (webmail19.sd4.0x35.net [10.200.201.19]) (Authenticated sender: mayuresh@kathe.in) by relay5-d.mail.gandi.net (Postfix) with ESMTPA id 38AF91C0004; Sat, 30 Mar 2019 04:09:35 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 30 Mar 2019 09:39:35 +0530 From: Mayuresh Kathe To: Polytropon Cc: freebsd-questions@freebsd.org Subject: Re: Why very little documentation on "ifunc"? Reply-To: mayuresh@kathe.in Mail-Reply-To: mayuresh@kathe.in In-Reply-To: <20190330042940.ed91d5f6.freebsd@edvax.de> References: <20190330042940.ed91d5f6.freebsd@edvax.de> Message-ID: <4ab839e063955c1d3fa3cfca312ef29d@kathe.in> X-Sender: mayuresh@kathe.in User-Agent: Roundcube Webmail/1.3.8 X-Rspamd-Queue-Id: 7ADEF6C814 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of mayuresh@kathe.in designates 217.70.183.197 as permitted sender) smtp.mailfrom=mayuresh@kathe.in X-Spamd-Result: default: False [-3.09 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; HAS_REPLYTO(0.00)[mayuresh@kathe.in]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.70.176.0/21]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[kathe.in]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: spool.mail.gandi.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.62)[-0.617,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[197.183.70.217.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:29169, ipnet:217.70.176.0/20, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-1.06)[ip: (-2.52), ipnet: 217.70.176.0/20(-1.53), asn: 29169(-1.24), country: FR(-0.01)]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Mar 2019 04:09:39 -0000 On 2019-03-30 08:59 AM, Polytropon wrote: > On Sat, 30 Mar 2019 07:28:23 +0530, Mayuresh Kathe wrote: >> Ever since I stumbled upon "ifunc" I have been unable to find good >> enough documentation regarding it under FreeBSD, that was till "Ed >> Maste" pointed out; >> https://jasoncc.github.io/gnu_gcc_glibc/gnu-ifunc.html >> >> "ifunc" seems to be a really good tool, wonder why it isn't as well >> documented as rest of the stuff under FreeBSD. > > From what I see, ifunc is part of GCC, and FreeBSD does no longer > use GCC as the system compiler (after switching to Clang/LLVM). > The case for ifunc documentation therefore has to be discussed > primarily in the context of GNU development tools. > > https://sourceware.org/glibc/wiki/GNU_IFUNC > > Of course, Clang/LLVM also has (limited) support for it: > > https://clang.llvm.org/docs/AttributeReference.html#ifunc > > So this is nothing FreeBSD-specific which should be covered by > OS documentation in the first place. But it could maybe find a > place in the FreeBSD Porter's Handbook. Not really, as "Ed Maste" had pointed out to me, "ifunc" was only _designed_ by GNU, the "ifunc" implementation under FreeBSD is completely native to FreeBSD. I was first directed to "ifunc" by someone called "kostik" on the freebsd-tech mailing list. I could find nothing about it under the FreeBSD documentation or even via Google, but that was because I was being FreeBSD specific. I asked "Ed Maste" about it and he shared that URL I had put out in my first email. It's sad that an advanced technology such as "ifunc" is not even documented in the Developer's Handbook. ~Mayuresh