From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 15 02:41:15 2012 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A9EB4106566B for ; Fri, 15 Jun 2012 02:41:15 +0000 (UTC) (envelope-from ryao@gentoo.org) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id 88E8C8FC0C for ; Fri, 15 Jun 2012 02:41:15 +0000 (UTC) Received: from [192.168.1.2] (pool-108-46-203-161.nycmny.fios.verizon.net [108.46.203.161]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: ryao) by smtp.gentoo.org (Postfix) with ESMTPSA id AB0EE1B4018; Fri, 15 Jun 2012 02:41:14 +0000 (UTC) Message-ID: <4FDAA07C.3030509@gentoo.org> Date: Thu, 14 Jun 2012 22:39:56 -0400 From: Richard Yao User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120430 Thunderbird/10.0.4 MIME-Version: 1.0 To: Alexander Kabaev References: <4FDA3364.2020102@gentoo.org> <2073f978e4954a989754752f4da71f9a@HUBCAS2.cs.stonybrook.edu> <4FDA9732.9020804@gentoo.org> <20120614222432.24e52fee@kan.dyndns.org> In-Reply-To: <20120614222432.24e52fee@kan.dyndns.org> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 15 Jun 2012 03:08:47 +0000 Cc: "gentoo-bsd@lists.gentoo.org" , "hackers@FreeBSD.org" Subject: Re: Import crt{begin,end}.S from NetBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2012 02:41:15 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/14/12 22:24, Alexander Kabaev wrote: > On Thu, 14 Jun 2012 22:00:18 -0400 Richard Yao > wrote: > > >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > >> On 06/14/12 20:51, Alexander Kabaev wrote: >>> On Thu, 14 Jun 2012 14:54:28 -0400 Richard Yao >>> wrote: >>> >>>> NetBSD has replacements for GCC's crt{begin,end}.S: >>>> >>>> http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/csu/arch/?only_with_tag=MAIN >>>> >>>> >>>> This would complement compiler-rt and libstdc++. We intend to >>>> import it in downstream Gentoo FreeBSD. >>>> >>>> Could this be imported into FreeBSD-CURRENT? >>> >>> Apart from licensing, what others reasons are there to do >>> that? >>> >> These components should not be tied to a specific compiler. If >> GCC is going to be deprecated, then they should be replaced. > >> Anyway, having this tied to GCC has caused headaches for Clang >> integration in Gentoo. In particular, we let the user pick the >> toolchain that he uses, so we cannot place GCC's crt{begin,end}.o >> in the same location that FreeBSD uses. This makes it difficult >> for Clang to find the correct crt{begin,end}.o. We will likely >> import the NetBSD crt{begin,end}.S code to rectify this, but it >> would be preferable to do this in upstreamFreeBSD. > > Assuming NetBSD version is a direct plugin for crtbegin/end > provided by GCC, I see no reason why we cannot do that. Are you are > willing to do the work and submit the patch, or would like to wait > for someone on our side? > Gentoo FreeBSD is currently based on FreeBSD 9-RELEASE. I plan to do the work to import this downstream within the week, but I am not running CURRENT. It might be necessary to iterate on the patches before they can be merged. When I have them, should I file a PR or post them to the list? -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJP2qB8AAoJECDuEZm+6Exk9YIP/ih8FwyH48zp1GH4vtlF3NAq kxqCefhDvgys+np6eYO65W7Gy55NGlwXuRlI8V5sVPea8pgFAXPceGureKrdJCda HpTdSi/KTAg0Is9PO6Ev4AoLYhEslCbMbQCOAWhRymZIn2MuuEQMjWw8aRWayebJ VVAIBLzUGrWlHxwfgkaxvO5V4obbetVFewJH+3X9kUDDawXZAYuTl+Llo4GW7lLn z8/rOciUDqDKy1vFr7R/9998ruJpRG5hAfeA/ovZTUYkO0bmAOpMWrjA9z/rzBEq 2kKAyeQLYfcCtChWvtl3y3WwhBp7uJfbKhiNZlbg8iVZ4YVVJ4xxFUCsz+7CvAwt BTJ3/Lt1xdrxvMTE/N8b/AwRW/sGgeEqdukPHFhhIbkYRHvvhU7LC7fXC3UxfhP4 J+KHQS1e2jjqqJUnFKa1g5AE6heB2ZlfCNIJH3pZXYGAfz9ff4000az+u9klYSOY 58mL3IR9X0BZboyG263P5cVsyYuT3BEhpEIhUzcvfJvS+vD8lBSYhkub2tgx27Hu +ov0zvhefZfOpnIRv8K4/KTuEd2scVx4hwOOcnr79PZhPfuyEqqybqrgUJeHH7in cviufLF0YpMwAutiE5g5ySKPlomKjRR3jRhJO9KyQ0giViT5Ppt/aq4UHb6WJDtf KVWinFLrnibIKUWJczXZ =brrQ -----END PGP SIGNATURE-----