From owner-freebsd-questions@freebsd.org Sat Mar 30 05:13:03 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 55EE2156435E for ; Sat, 30 Mar 2019 05:13:03 +0000 (UTC) (envelope-from pathiaki2@yahoo.com) Received: from sonic306-20.consmr.mail.ne1.yahoo.com (sonic306-20.consmr.mail.ne1.yahoo.com [66.163.189.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9A3226F1EC for ; Sat, 30 Mar 2019 05:13:01 +0000 (UTC) (envelope-from pathiaki2@yahoo.com) X-YMail-OSG: mwXTIkQVM1m8Lnh7azX9PABDVeEZU8dyQJHYAm2x37umcnteFHColPXCM.PVJie 9GIrEmwzYK6PeAlq53Am3qo5Xr78oeyWaMLX5tssjFs1AUxNfQUczpg7hqociCMrvtHjn69hw7cC FaXPbE7GBnZ634VhyH7WiBkGzqENjna4faIx.Bli_RGwa0UYMGzUB1c3OFnhtijjqWfdIljN5MV7 o_3gudUPKYnw7m.k2Ikgcy9s3zo2A0UtQz0W8A9tnCg_gymU0nYZTHQQXwJDs5PCAiqLPgx7Ep_U xt2GxnabmVUmw_NgJmgGTdZUWwo2TPuSNRjbN.O0JAOWDJY7Tstu06J7y..aH.YWBtG92MCADgM1 T5B9GeAPsJgg8z7rP1Kzjk5KGYU3wp4JsgV0gDGUsFR_a4n3oiVaL7SRx6Kf3mANOYsUtFxnX8nl t_58aqx34jGsQGueQwerMVagOI_18H2rxtSYiwDCW0tkTxJiIqTwm91P8eyvqSCANtuuQEFL3XHU KZAmgl66eHxBwQ0wmDgEPtIb7dB4uTLXHqpgduahXHxZNxI.PFtb0rZhZ0rtkOebihK7aWctV1ku YTAVP1O_d4Y.r8vTfw98w6MoAcFUM1mrIlAVxenDwBdimTVzb_5_dR9R8E2bjpFq5cYaY9Pyacdx qzTgVaTv1VNJpESiS.vv2NrkV.Fa0YpLQ4VFmYcFK5_zv4zs8Q_GySMcObOi3SMTMIvgKZ8pQRV0 9lT3SqZoHRuVtEcbbvYnrtVMqul4pMZxYYH8wwJlmfq1uQ8oHUS7tiZ6tpu5jCWpIyMYkGgEKLP1 yEVsSLmTYDCMbqvZaLef_sjxq39XyhhW9j5ZqzPnEvNzWQpb16Cs81hSCvCu6fdd8PY46fzrQ3Xn kyCx99qOuaMk5_O0SIZRWP1nERPgxnFLqER03msLTpP4TbpA3i2HgRH20sif7o6q39p74IamP37w S.YzH2bAflw38jNsHvqgS2y3X9e70uID6COGTLaScJIh4soiFlfmDtfKt.1RG5K.TVQz9HxL9YGJ Mz9Iv7tzBsloNKCpRMtXGncjliRzZJGDsORq5Y8yKvibFAHvIGXokOsbEN.ps8l1npZJ1.Hkg7NQ p5YSTC4VHAoBn7WMhbVaJq9qgalv5sw0- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Sat, 30 Mar 2019 05:12:54 +0000 Date: Sat, 30 Mar 2019 05:11:07 +0000 (UTC) From: Paul Pathiakis To: freebsd-questions@freebsd.org, Mayuresh Kathe Message-ID: <1393052012.13903125.1553922667456@mail.yahoo.com> In-Reply-To: References: Subject: Re: Why very little documentation on "ifunc"? MIME-Version: 1.0 X-Mailer: WebService/1.1.13212 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0 X-Rspamd-Queue-Id: 9A3226F1EC X-Spamd-Bar: +++ X-Spamd-Result: default: False [3.75 / 15.00]; ARC_NA(0.00)[]; NEURAL_SPAM_LONG(0.96)[0.959,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_SPAM_MEDIUM(0.51)[0.507,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.89)[0.895,0]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCVD_IN_DNSWL_NONE(0.00)[82.189.163.66.list.dnswl.org : 127.0.5.0]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(1.39)[ip: (4.91), ipnet: 66.163.184.0/21(1.18), asn: 36646(0.95), country: US(-0.07)]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MIME_TRACE(0.00)[0:+,1:+]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 05:13:03 -0000 Hi, Simply put, it's part of the GNU tool chain.=C2=A0 Most (if not all) of Fre= eBSD's user space is POSIX compliant and a lot of things that are no longer= 'optimal' have been rewritten to be more efficient.=C2=A0 As time went on,= it seemed to me that most everything GNU was getting well, slower and larg= er.... and 'extended' beyond POSIX.=C2=A0 Added functionality is nice at ti= mes, but when you expect something to work in a certain way and someone has= added features or written something in BASH and made use of those extensio= ns, well, it will only run under BASH.=C2=A0 However, anything written to c= omply with a 'standard' such as 'sh' scripting, will run on anything with s= h as well as bash. Extending functionality makes things non-compliant with the standard.=C2=A0= Examples of this in the past was Microsoft adding their extensions to JAVA= which made it incompatible with all other standards compliant versions of = Java. Another example would be the Oracle Database SQL and/or MS SQL versus the P= OSIX compliant DB known as PostGreSQL.=C2=A0 Anything that runs on PostGreS= QL will run under the others (well, pretty much) but the reverse is not tru= e especially if the are proprietary extensions. More examples would be gawk vs awk, gsed vs sed, etc.=C2=A0 The ability to = move in both directions is no longer true.=20 With the advent of putting in LLVM CLANG compiler, most of the GNU toolcha= in has been put in the GCC port.=C2=A0 Now, since it is a port, a lot of 'p= orts' and their pkg counterparts are just templated to fit into the the /us= r/local/ hierarchy along with modifying some simple files for start/stop ma= nipulation.=C2=A0 This includes all of the man pages that are not written b= y FreeBSD but by the people who created the software.... for example a lot = of the GNU utilities have man pages that just aren't as well-written as the= constantly reviewed man pages on FreeBSD. Although people can be enthusiastic about writing something that they want = the world to see, the FreeBSD project seems to be excited about churning ou= t a good product that in all aspects exceeds most peoples expectations.=C2= =A0 No one is scared to run a x.0 release from FreeBSD.=C2=A0 It's due to a= n ongoing QA and Release process and the simple ability to not push out cra= p code to meet some artificial deadline.=C2=A0 However, other OS or even ju= st kernels from other projects scare the heck out of people on release.=C2= =A0 The amount of bugs, exploits, etc.... are an order of magnitude or more= .... and no, it's not because no one uses it.... If you look at who is basi= ng their products on FreeBSD, it's pretty obvious that they are 'The Unknow= n Giant' of operating systems. P. On Friday, March 29, 2019, 11:00:55 PM EDT, Mayuresh Kathe wrote: =20 =20 Ever since I stumbled upon "ifunc" I have been unable to find good=20 enough documentation regarding it under FreeBSD, that was till "Ed=20 Maste" pointed out;=20 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=20 documented as rest of the stuff under FreeBSD. ~Mayuresh _______________________________________________ freebsd-questions@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org= " =20 From owner-freebsd-questions@freebsd.org Sat Mar 30 03:29:44 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 D3FEC155FF0A for ; Sat, 30 Mar 2019 03:29:43 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 941FC6AC68 for ; Sat, 30 Mar 2019 03:29:42 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.193.229.77]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPA (Nemesis) id 1N6bPS-1gsoRu0NAs-017zg0; Sat, 30 Mar 2019 04:29:40 +0100 Date: Sat, 30 Mar 2019 04:29:40 +0100 From: Polytropon To: mayuresh@kathe.in Cc: freebsd-questions@freebsd.org Subject: Re: Why very little documentation on "ifunc"? Message-Id: <20190330042940.ed91d5f6.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:mJiTaQMBq262PCj9z7kJ0Ph7ehxeq90mitAZyWK9XkAIXzi+Ewj 6vQhynnIBg+2Oyc+qgdhlMHkRpqKPrjMZt8rlNZNsoJvvdKsI1i2JHuuVNvzaPP8H6WT3yU 6nmw4dkRmQr3rxTIDYv8Wfk5HlT74G8ldhnyu6Dj74/kmtVvW/I1T/vFg38TmcQd4KQ7lZK VoTa/+sJeyDDnwSDmi+7g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:O3J7RupfxLM=:/8E4oMqgExlG7sEvQHFSE8 aMgZpMInhn8S8tjBEruEjlTN6uHzyF07nj7/hcShLqZzRbiUI5etElGz42LlTSlPcNz9eccel N7moOHY91AHzNrExQ0epV7g84yES1+ZXS2BHIlBeghpO1hVWeEzNAytYkJouMA8x3Py/Fe2jU C5z0AQl6+vWnLLeaezUry4orhPQ+6JVpKfqfiHuxm3tKwt5KaxJu+ogY2TS8SjnJSxFyAGZYB 47+HELgQlksC1PR85+OpDkH1TlAyWhCDZb/U3ESkbwvZ3BwZYogNdjhEHnWTZhO6Gk70J0s+7 okTS7dQ6yPBfQX3y691PjMMvtJK+ybZscZ/+6rfRk4bkPPhLoQxw4yUVdtbAL8JJhHual5r8M TAyxkFd1bs79k6XDobDbXJN8J+qWizyQJx7jgYSr39tDqWrta8rvelOAZnOjvu/09h5aLbZz/ wFVl5+SQeVrBULmQsJPPXFtp6yBy0TJ++lXq/Fo+VZDrj3VOwxRDebzK8g+HzUD6yVbn7Dt9h ORI+uB26fFKYVxEibmJQuIj2dLaJir2J/ag7rRfnLT7HGrKfJaMeAG1H6duqSjeFHwKt7iA7h HuKoiowrdKHv/6Oc+MNocbj3eJvQAQYcRbUXPQLqUFO/ZH0kb5OgkPvZnxZ1OWe1oFoW+afu8 BUt7EWqeIz4km58qZsUJxEgJE4TBx7VJoVMPHA+g/9Y8p/yvJJyINtQdEiaRVP1tIVQakwsEc 7LbpmHAV6KJ8mRG9vyNvfjw9RBqiTA2fnyAjDOTxCt3s7+Ejj0dQMsOOrgE= X-Rspamd-Queue-Id: 941FC6AC68 X-Spamd-Bar: ++++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [6.36 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; MV_CASE(0.50)[]; IP_SCORE(0.51)[ip: (2.29), ipnet: 212.227.0.0/16(-1.30), asn: 8560(1.59), country: DE(-0.01)]; TO_DN_NONE(0.00)[]; HAS_ORG_HEADER(0.00)[]; MX_GOOD(-0.01)[cached: mx00.schlund.de]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[77.229.193.92.zen.spamhaus.org : 127.0.0.10]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.86)[0.861,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.59)[0.591,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000,0]; RCVD_IN_DNSWL_NONE(0.00)[131.126.227.212.list.dnswl.org : 127.0.5.0]; MID_CONTAINS_FROM(1.00)[]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[] X-Spam: Yes 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 03:29:44 -0000 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. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...