From owner-freebsd-toolchain@FreeBSD.ORG Mon Jan 12 20:37:42 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CD48F986 for ; Mon, 12 Jan 2015 20:37:42 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 AE958A05 for ; Mon, 12 Jan 2015 20:37:42 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0CKbgWM012752 for ; Mon, 12 Jan 2015 20:37:42 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0CKbgA9012750; Mon, 12 Jan 2015 20:37:42 GMT (envelope-from root) Date: Mon, 12 Jan 2015 20:37:42 +0000 To: freebsd-toolchain@freebsd.org From: "dim (Dimitry Andric)" Subject: [Differential] [Request, 52 lines] D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches Message-ID: X-Priority: 3 Thread-Topic: D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: Thread-Index: YjlmOWUwYWQyZjg0MzJiMzU4YjhhNDM2ZmVh X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2015 20:37:43 -0000 dim created this revision. dim added reviewers: andrew, bapt, emaste, imp. dim added a subscriber: freebsd-toolchain. REVISION SUMMARY I added the libclang_rt libraries (Address Sanitizer, Undefined Behavior Sanitizer and Profile Guided Optimization) from compiler-rt to the tree recently, but did not connect them to the build yet. The requirements for these libraries are: * Must be built with clang, gcc (not even recent versions) can build them * Only make sense to build when either the cross-tools stage (e.g. the stuff installed under ${WORLDTMP}) has clang enabled, or when then final world has clang enabled. * The sanitizer libraries can only be built for i386 and amd64. * The profile library can only be built for i386, amd64 and LE arm. Apart from the bit of ugliness in lib/Makefile (which Warner does not like), there is also still a practical problem, which I have not been able to solve as of yet: On amd64, the build32 stage will now build the libclang_rt libraries, but due to ${LIB32IMAKE} containing MK_TOOLCHAIN=no, the install32 stage will *not* install them. I don't see any easy way around this, excect maybe partially reverting r264930, but that will get us back to the situation with NO_INCS, which Warner tried to avoid with that commit. Note that I also did not introduce yet another WITH_LIBCLANG_RT knob, since I don't really see the need: WITH_CLANG should basically always cause these libraries to be built and installed. However, if the general opinion is that another knob is good to have, I can implement it, and move the lib/Makefile ugliness to src.opts.mk instead. TEST PLAN Build and install in various situations. Do a bunch of runtime tests to ascertain the asan, ubsan and profile libraries can be found when building programs with -fsanitize=address, -fsanitize=undefined and -fprofile-generate, respectively. BRANCH /head REVISION DETAIL https://reviews.freebsd.org/D1505 AFFECTED FILES etc/mtree/BSD.usr.dist lib/Makefile lib/libclang_rt/Makefile tools/build/mk/OptionalObsoleteFiles.inc To: dim, andrew, bapt, emaste, imp Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Mon Jan 12 20:38:38 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E78169C1 for ; Mon, 12 Jan 2015 20:38:38 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 C81B0A14 for ; Mon, 12 Jan 2015 20:38:38 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0CKccv6013486 for ; Mon, 12 Jan 2015 20:38:38 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0CKccPC013485; Mon, 12 Jan 2015 20:38:38 GMT (envelope-from root) Date: Mon, 12 Jan 2015 20:38:38 +0000 To: freebsd-toolchain@freebsd.org From: "dim (Dimitry Andric)" Subject: [Differential] [Commented On] D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches Message-ID: <2383a416622ac61601feaa1594a5e5e1@localhost.localdomain> X-Priority: 3 Thread-Topic: D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: YjlmOWUwYWQyZjg0MzJiMzU4YjhhNDM2ZmVhIFS0MM4= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2015 20:38:39 -0000 dim added a comment. Minor note: this survived a "make universe" on one of the FreeBSD.org reference machines. REVISION DETAIL https://reviews.freebsd.org/D1505 To: dim, andrew, bapt, emaste, imp Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Mon Jan 12 20:43:37 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 97641DC6 for ; Mon, 12 Jan 2015 20:43:37 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 77A9BB04 for ; Mon, 12 Jan 2015 20:43:37 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0CKhb9O020260 for ; Mon, 12 Jan 2015 20:43:37 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0CKhbN6020259; Mon, 12 Jan 2015 20:43:37 GMT (envelope-from root) Date: Mon, 12 Jan 2015 20:43:37 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Updated] D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches Message-ID: <5c2dbe024d5105f3080dd3ac95b23cfb@localhost.localdomain> X-Priority: 3 Thread-Topic: D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: YjlmOWUwYWQyZjg0MzJiMzU4YjhhNDM2ZmVhIFS0Mfk= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2015 20:43:37 -0000 emaste added a comment. > Apart from the bit of ugliness in lib/Makefile Perhaps the ugliness needs a comment, at least. Also a BSD.debug.mk entry for `WITH_DEBUG_FILES=yes`? REVISION DETAIL https://reviews.freebsd.org/D1505 To: dim, andrew, bapt, imp, emaste Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Mon Jan 12 20:44:14 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B9886DFD for ; Mon, 12 Jan 2015 20:44:14 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 9A1DEB0F for ; Mon, 12 Jan 2015 20:44:14 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0CKiEpo020828 for ; Mon, 12 Jan 2015 20:44:14 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0CKiE91020827; Mon, 12 Jan 2015 20:44:14 GMT (envelope-from root) Date: Mon, 12 Jan 2015 20:44:14 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Commented On] D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches Message-ID: <6dfa5a8a6753178fbca0d820dc3f5b18@localhost.localdomain> X-Priority: 3 Thread-Topic: D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: YjlmOWUwYWQyZjg0MzJiMzU4YjhhNDM2ZmVhIFS0Mh4= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2015 20:44:14 -0000 emaste added a comment. > Note that I also did not introduce yet another WITH_LIBCLANG_RT knob, This is fine in my opinion; we don't need another knob. REVISION DETAIL https://reviews.freebsd.org/D1505 To: dim, andrew, bapt, imp, emaste Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Mon Jan 12 20:55:42 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6C9791BF for ; Mon, 12 Jan 2015 20:55:42 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 4C5EBC31 for ; Mon, 12 Jan 2015 20:55:42 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0CKtgg7032422 for ; Mon, 12 Jan 2015 20:55:42 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0CKtg4O032421; Mon, 12 Jan 2015 20:55:42 GMT (envelope-from root) Date: Mon, 12 Jan 2015 20:55:42 +0000 To: freebsd-toolchain@freebsd.org From: "dim (Dimitry Andric)" Subject: [Differential] [Updated, 63 lines] D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches Message-ID: <98180c645ad9ea4bcdd91e814b44faca@localhost.localdomain> X-Priority: 3 Thread-Topic: D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: YjlmOWUwYWQyZjg0MzJiMzU4YjhhNDM2ZmVhIFS0NM4= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2015 20:55:42 -0000 dim updated this revision to Diff 3130. dim added a comment. * Added new directories to BSD.debug.dist * Added explanatory comment to lib/Makefile CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D1505?vs=3129&id=3130 BRANCH /head REVISION DETAIL https://reviews.freebsd.org/D1505 AFFECTED FILES etc/mtree/BSD.debug.dist etc/mtree/BSD.usr.dist lib/Makefile lib/libclang_rt/Makefile tools/build/mk/OptionalObsoleteFiles.inc To: dim, andrew, bapt, imp, emaste Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Mon Jan 12 21:02:27 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 78EFA621 for ; Mon, 12 Jan 2015 21:02:27 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 5707FD1E for ; Mon, 12 Jan 2015 21:02:27 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0CL2Rsp040434 for ; Mon, 12 Jan 2015 21:02:27 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0CL2RrE040433; Mon, 12 Jan 2015 21:02:27 GMT (envelope-from root) Date: Mon, 12 Jan 2015 21:02:27 +0000 To: freebsd-toolchain@freebsd.org From: "dim (Dimitry Andric)" Subject: [Differential] [Updated, 63 lines] D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches Message-ID: <07aa60816e25db7fc08cf34f525d8c22@localhost.localdomain> X-Priority: 3 Thread-Topic: D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: YjlmOWUwYWQyZjg0MzJiMzU4YjhhNDM2ZmVhIFS0NmM= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2015 21:02:27 -0000 dim updated this revision to Diff 3131. dim added a comment. Avoid specifically listing architectures. CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D1505?vs=3130&id=3131 BRANCH /head REVISION DETAIL https://reviews.freebsd.org/D1505 AFFECTED FILES etc/mtree/BSD.debug.dist etc/mtree/BSD.usr.dist lib/Makefile lib/libclang_rt/Makefile tools/build/mk/OptionalObsoleteFiles.inc To: dim, andrew, bapt, imp, emaste Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Tue Jan 13 16:41:43 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C7C99BEA for ; Tue, 13 Jan 2015 16:41:43 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 A42F396E for ; Tue, 13 Jan 2015 16:41:43 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0DGfgDt056218 for ; Tue, 13 Jan 2015 16:41:42 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0DGfg2L056217; Tue, 13 Jan 2015 16:41:42 GMT (envelope-from root) Date: Tue, 13 Jan 2015 16:41:42 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Request, 5 lines] D1516: Update aarch64 patch for binutils 2.25 Message-ID: X-Priority: 3 Thread-Topic: D1516: Update aarch64 patch for binutils 2.25 X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: Thread-Index: NDVlMTIyYTU3YTg3MzFmMDQzMWYzYmZhODhm X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2015 16:41:43 -0000 emaste created this revision. emaste added reviewers: bapt, andrew. emaste added a subscriber: freebsd-toolchain. REVISION DETAIL https://reviews.freebsd.org/D1516 AFFECTED FILES devel/aarch64-binutils/Makefile devel/binutils/files/patch-aarch64.diff To: emaste, bapt, andrew Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Tue Jan 13 19:55:04 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C5EEE17C for ; Tue, 13 Jan 2015 19:55:04 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 A383626C for ; Tue, 13 Jan 2015 19:55:04 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0DJt4fK080036 for ; Tue, 13 Jan 2015 19:55:04 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0DJt4t4080034; Tue, 13 Jan 2015 19:55:04 GMT (envelope-from root) Date: Tue, 13 Jan 2015 19:55:04 +0000 To: freebsd-toolchain@freebsd.org From: "dim (Dimitry Andric)" Subject: [Differential] [Closed] D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches Message-ID: X-Priority: 3 Thread-Topic: D1505: Enable building libclang_rt (asan, ubsan and profile) for selected arches X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: YjlmOWUwYWQyZjg0MzJiMzU4YjhhNDM2ZmVhIFS1eBg= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2015 19:55:04 -0000 dim closed this revision. dim updated this revision to Diff 3155. dim added a comment. Closed by commit rS277146 (authored by @dim). REVISION DETAIL https://reviews.freebsd.org/D1505 AFFECTED FILES head/etc/mtree/BSD.debug.dist head/etc/mtree/BSD.usr.dist head/lib/Makefile head/lib/libclang_rt/Makefile head/tools/build/mk/OptionalObsoleteFiles.inc To: dim, andrew, bapt, imp, emaste Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Tue Jan 13 20:28:19 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D57A57EE; Tue, 13 Jan 2015 20:28:19 +0000 (UTC) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 91E1983F; Tue, 13 Jan 2015 20:28:19 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::c148:42bb:70c4:c38e] (unknown [IPv6:2001:7b8:3a7:0:c148:42bb:70c4:c38e]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 0C888B80A; Tue, 13 Jan 2015 21:28:15 +0100 (CET) From: Dimitry Andric X-Pgp-Agent: GPGMail 2.5b4 Content-Type: multipart/signed; boundary="Apple-Mail=_CCB9499A-2601-452E-962D-513777E93502"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: Connected sanitizer libraries to the build (for x86) Date: Tue, 13 Jan 2015 21:28:08 +0100 Message-Id: To: FreeBSD Current Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) X-Mailer: Apple Mail (2.1993) Cc: FreeBSD Toolchain X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2015 20:28:19 -0000 --Apple-Mail=_CCB9499A-2601-452E-962D-513777E93502 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, In r277146, I have connected the sanitizer libraries from compiler-rt to the build. Currently, this works for i386 and amd64, and contains Address Sanitizer (ASan) and Undefined Behavior Sanitizer. AddressSanitizer is a fast memory error detector [1]. It consists of a compiler instrumentation module and a run-time library. The tool can detect the following types of bugs: * Out-of-bounds accesses to heap, stack and globals * Use-after-free * Use-after-return (to some extent) * Double-free, invalid free * Memory leaks (experimental) The typical slowdown introduced by AddressSanitizer is 2x. Enable it by compiling and linking with clang, and using the -fsanitize=3Daddress = flag. Undefined Behavior Sanitizer is a fast and compatible undefined behavior checker, which enables a number of checks that have small runtime cost and no impact on address space layout or ABI. Enable it by using the -fsanitize=3Dundefined flag. [2] Please note that the sanitizers still have some rough edges on FreeBSD, particularly on i386. These will hopefully be smoothed out in the coming time. Reports of problems (and fixes :) are very welcome, but please log them in Bugzilla, so they can be tracked. -Dimitry [1] = http://llvm.org/releases/3.5.0/tools/clang/docs/AddressSanitizer.html [2] = http://llvm.org/releases/3.5.0/tools/clang/docs/UsersManual.html#opt-fsani= tize-undefined --Apple-Mail=_CCB9499A-2601-452E-962D-513777E93502 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.26 iEYEARECAAYFAlS1f94ACgkQsF6jCi4glqMhiQCg4mJcgwA97S2p+3a0oKHLyKM+ SdwAnR0ch0q1rrBja9TAzWOS8h78Mzcn =39z4 -----END PGP SIGNATURE----- --Apple-Mail=_CCB9499A-2601-452E-962D-513777E93502-- From owner-freebsd-toolchain@FreeBSD.ORG Tue Jan 13 21:27:08 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 16B127BE for ; Tue, 13 Jan 2015 21:27:08 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 EC237E19 for ; Tue, 13 Jan 2015 21:27:07 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0DLR7np075756 for ; Tue, 13 Jan 2015 21:27:07 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0DLR7Ux075755; Tue, 13 Jan 2015 21:27:07 GMT (envelope-from root) Date: Tue, 13 Jan 2015 21:27:07 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Closed] D1516: Update aarch64 patch for binutils 2.25 Message-ID: <83bf157b7cb87ba594da69820837c925@localhost.localdomain> X-Priority: 3 Thread-Topic: D1516: Update aarch64 patch for binutils 2.25 X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: NDVlMTIyYTU3YTg3MzFmMDQzMWYzYmZhODhmIFS1jas= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2015 21:27:08 -0000 emaste closed this revision. emaste updated this revision to Diff 3160. emaste added a comment. Closed by commit rP376986 (authored by @emaste). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D1516?vs=3147&id=3160#toc REVISION DETAIL https://reviews.freebsd.org/D1516 AFFECTED FILES head/devel/aarch64-binutils/Makefile head/devel/binutils/files/patch-aarch64.diff To: emaste, bapt, andrew Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Tue Jan 13 21:41:46 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F4E9C98 for ; Tue, 13 Jan 2015 21:41:46 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 30D60FDB for ; Tue, 13 Jan 2015 21:41:46 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0DLfjk7092643 for ; Tue, 13 Jan 2015 21:41:45 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0DLfjZd092642; Tue, 13 Jan 2015 21:41:45 GMT (envelope-from root) Date: Tue, 13 Jan 2015 21:41:45 +0000 To: freebsd-toolchain@freebsd.org From: "bapt (Baptiste Daroussin)" Subject: [Differential] [Updated] D1516: Update aarch64 patch for binutils 2.25 Message-ID: X-Priority: 3 Thread-Topic: D1516: Update aarch64 patch for binutils 2.25 X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: NDVlMTIyYTU3YTg3MzFmMDQzMWYzYmZhODhmIFS1kRk= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2015 21:41:46 -0000 bapt added a comment. Just for the record I approved via IRC REVISION DETAIL https://reviews.freebsd.org/D1516 To: emaste, andrew, bapt Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Tue Jan 13 22:22:31 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 138F9BF8 for ; Tue, 13 Jan 2015 22:22:31 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 EB639693 for ; Tue, 13 Jan 2015 22:22:30 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0DMMUvc035839 for ; Tue, 13 Jan 2015 22:22:30 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0DMMUjN035838; Tue, 13 Jan 2015 22:22:30 GMT (envelope-from root) Date: Tue, 13 Jan 2015 22:22:30 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Request, 10 lines] D1524: ar: Disallow directory traversal Message-ID: X-Priority: 3 Thread-Topic: D1524: ar: Disallow directory traversal X-Herald-Rules: none X-Phabricator-To: X-Phabricator-Cc: Thread-Index: Njc2MzUzYWFkN2I5MDZkNGU4MTcyOGJjZWU1 X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2015 22:22:31 -0000 emaste created this revision. emaste added a subscriber: freebsd-toolchain. REVISION SUMMARY Set ARCHIVE_EXTRACT_SECURE_SYMLINKS and ARCHIVE_EXTRACT_SECURE_NODOTDOT as in bsdtar to prevent extraction of archive entries whose pathnames contain .. or whose target directory would be altered by a symlink. Also disallow absolute pathnames. We don't currently provide an option to disable this behaviour (as bsdtar's -P does). It is unlikely to be a problem in practice for ar(1), but the -P option is available if we want to allow it. Reported by: Alexander Cherepanov Elftoolchain ticket: 474 TEST PLAN From https://sourceforge.net/p/elftoolchain/tickets/474/ ~~~ printf '!\n%-48s%-10s`\n%-48s%-10s`\n' /tmp/file 0 ../file 0 > test.a n% ./ar -xv test.a x - /tmp/file ar: warning: Absolute path '/tmp/file' x - ../file ar: warning: Path contains '..' ~~~ REVISION DETAIL https://reviews.freebsd.org/D1524 AFFECTED FILES usr.bin/ar/read.c To: emaste Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Fri Jan 16 05:05:30 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 088135AB for ; Fri, 16 Jan 2015 05:05:30 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0087.outbound.protection.outlook.com [157.56.110.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A3DF476A for ; Fri, 16 Jan 2015 05:05:28 +0000 (UTC) Received: from DM2PR0801MB652.namprd08.prod.outlook.com (10.242.127.155) by DM2PR0801MB649.namprd08.prod.outlook.com (10.242.127.152) with Microsoft SMTP Server (TLS) id 15.1.59.20; Fri, 16 Jan 2015 03:30:21 +0000 Received: from DM2PR0801MB652.namprd08.prod.outlook.com ([10.242.127.155]) by DM2PR0801MB652.namprd08.prod.outlook.com ([10.242.127.155]) with mapi id 15.01.0059.007; Fri, 16 Jan 2015 03:30:21 +0000 From: "Sinha, Prokash" To: freebsd-toolchain Subject: elf linking problem Thread-Topic: elf linking problem Thread-Index: AQHQMTzB7oEYrYSqIUWAPLQ9gqdZQw== Date: Fri, 16 Jan 2015 03:30:20 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [71.92.229.68] authentication-results: spf=none (sender IP is ) smtp.mailfrom=psinha@panasas.com; x-dmarcaction-test: None x-microsoft-antispam: BCL:0;PCL:0;RULEID:(3005004);SRVR:DM2PR0801MB649; x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:;SRVR:DM2PR0801MB649; x-forefront-prvs: 04583CED1A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(164054003)(199003)(189002)(105586002)(106356001)(106116001)(64706001)(110136001)(99286002)(66066001)(229853001)(107886001)(46102003)(97736003)(92566002)(87936001)(2656002)(54356999)(86362001)(19580395003)(101416001)(122556002)(102836002)(2900100001)(50986999)(36756003)(77156002)(62966003)(68736005)(450100001)(77096005)(40100003)(94096001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0801MB649; H:DM2PR0801MB652.namprd08.prod.outlook.com; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: panasas.com does not designate permitted sender hosts) Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: panasas.com X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2015 03:30:20.7901 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: acf01c9d-c699-42af-bdbb-44bf582e60b0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0801MB649 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2015 05:05:30 -0000 Hello, I'm trying to find out what could be the cause of a kldload problem I'm facing. Here is the context detail -- 1. I'm building two ko module. And it has a dependency order, so when I load the first module, it loads, and a function symbol ( F ) is defined into kernel variable space sysctl -b kern.function_list | tr '\0' '\n' | grep symname. 2. Now trying to load the 2nd module, and link_elf_obj flags error and symbol undefined when freebsd10.1 is being used. 3. If I probe using the same sysctl as in step 1, I still the symbol is defined. /var/log/messages shows - kernel: link_elf_obj: symbol pan_sys_once undefined kernel: linker_load_file: Unsupported file type The same two modules when complied using freebsd7.2, we don't see the problem. The question is - Is there changes along the elf formats ( in both case it 64bit), also is there any changes In the API between those two OS version, that I need to aware of ( and possible flags I need to set). Using objdump -t modone.ko 00000000000fb940 g F .text 0000000000000062 pan_sys_once In modtwo.ko it is undefined 0000000000000000 *UND* 0000000000000000 pan_sys_once Note the objdump on freebsd 7.2, is identical. So it is defined in the module1 as F(function), and undefined(UND) in module two. Any suggestion, please ? Thanks, -prokash From owner-freebsd-toolchain@FreeBSD.ORG Fri Jan 16 16:29:46 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2C40DD18 for ; Fri, 16 Jan 2015 16:29:46 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 101D59A3 for ; Fri, 16 Jan 2015 16:29:46 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0GGTjAc068514 for ; Fri, 16 Jan 2015 16:29:45 GMT (envelope-from gjb@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0GGTjLX068513; Fri, 16 Jan 2015 16:29:45 GMT (envelope-from gjb) Date: Fri, 16 Jan 2015 16:29:45 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Request, 3 lines] D1543: crunchide: Correct 64-bit section header offset Message-ID: X-Priority: 3 Thread-Topic: D1543: crunchide: Correct 64-bit section header offset X-Herald-Rules: none X-Phabricator-To: X-Phabricator-Cc: Thread-Index: MzBlN2E5ZWU4ZjFhZTAwNGYwMTY5M2RlZTIx X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2015 16:29:46 -0000 emaste created this revision. emaste added a subscriber: freebsd-toolchain. REVISION SUMMARY For 64-bit binaries the Elf_Ehdr e_shoff is at offset 40, not 44. Instead of using an incorrect hardcoded offset, let the compiler figure it out for us with offsetof(). REVISION DETAIL https://reviews.freebsd.org/D1543 AFFECTED FILES usr.sbin/crunch/crunchide/exec_elf32.c To: emaste Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Fri Jan 16 18:34:27 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C2DDACBA for ; Fri, 16 Jan 2015 18:34:27 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 A182ABE1 for ; Fri, 16 Jan 2015 18:34:27 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0GIYRWe002421 for ; Fri, 16 Jan 2015 18:34:27 GMT (envelope-from gjb@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0GIYRmR002420; Fri, 16 Jan 2015 18:34:27 GMT (envelope-from gjb) Date: Fri, 16 Jan 2015 18:34:27 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Updated] D1543: crunchide: Correct 64-bit section header offset Message-ID: <06c08a9b1b5405cb47c04cc57dc40739@localhost.localdomain> X-Priority: 3 Thread-Topic: D1543: crunchide: Correct 64-bit section header offset X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzBlN2E5ZWU4ZjFhZTAwNGYwMTY5M2RlZTIxIFS5WbM= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2015 18:34:27 -0000 emaste added a reviewer: pfg. REVISION DETAIL https://reviews.freebsd.org/D1543 To: emaste, pfg Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Fri Jan 16 18:48:58 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4583D6FD for ; Fri, 16 Jan 2015 18:48:58 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 271B4D92 for ; Fri, 16 Jan 2015 18:48:58 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0GImv9E020620 for ; Fri, 16 Jan 2015 18:48:57 GMT (envelope-from gjb@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0GImvSm020619; Fri, 16 Jan 2015 18:48:57 GMT (envelope-from gjb) Date: Fri, 16 Jan 2015 18:48:57 +0000 To: freebsd-toolchain@freebsd.org From: "imp (Warner Losh)" Subject: [Differential] [Accepted] D1543: crunchide: Correct 64-bit section header offset Message-ID: X-Priority: 3 Thread-Topic: D1543: crunchide: Correct 64-bit section header offset X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzBlN2E5ZWU4ZjFhZTAwNGYwMTY5M2RlZTIxIFS5XRk= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2015 18:48:58 -0000 imp accepted this revision. imp added a reviewer: imp. This revision is now accepted and ready to land. REVISION DETAIL https://reviews.freebsd.org/D1543 To: emaste, pfg, imp Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Fri Jan 16 19:00:15 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0CD10DDC for ; Fri, 16 Jan 2015 19:00:15 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 E0F6EF06 for ; Fri, 16 Jan 2015 19:00:14 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0GJ0ELK032704 for ; Fri, 16 Jan 2015 19:00:14 GMT (envelope-from gjb@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0GJ0Ee1032703; Fri, 16 Jan 2015 19:00:14 GMT (envelope-from gjb) Date: Fri, 16 Jan 2015 19:00:14 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Closed] D1543: crunchide: Correct 64-bit section header offset Message-ID: <4544431c10df031f3ba15d97a64d98a9@localhost.localdomain> X-Priority: 3 Thread-Topic: D1543: crunchide: Correct 64-bit section header offset X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzBlN2E5ZWU4ZjFhZTAwNGYwMTY5M2RlZTIxIFS5X74= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2015 19:00:15 -0000 emaste closed this revision. emaste added a comment. Committed as rS277259 REVISION DETAIL https://reviews.freebsd.org/D1543 To: emaste, pfg, imp Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Fri Jan 16 21:27:19 2015 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 583F0532; Fri, 16 Jan 2015 21:27:19 +0000 (UTC) Received: from mailrelay004.isp.belgacom.be (mailrelay004.isp.belgacom.be [195.238.6.170]) by mx1.freebsd.org (Postfix) with ESMTP id C289D12E; Fri, 16 Jan 2015 21:27:15 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnYGAGaBuVRbsIcT/2dsb2JhbABagwaBKswfAoESRAEBAQEBfYQNAQU6HCMQCxgJJQ8qHgYTG4gVAdITAQEBAQEFAgEfj3kHhCkBBJdagRCKVYJpgz0ig289MYJDAQEB Received: from 19.135-176-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.176.135.19]) by relay.skynet.be with ESMTP; 16 Jan 2015 22:27:06 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.9/8.14.9) with ESMTP id t0GLR6ID007125; Fri, 16 Jan 2015 22:27:06 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Fri, 16 Jan 2015 22:27:06 +0100 From: Tijl Coosemans To: Dewayne Geraghty Subject: Re: Installing openssl without gcc or binutils dependents Message-ID: <20150116222706.779ebbe1@kalimero.tijl.coosemans.org> In-Reply-To: <54B952FC.4020807@heuristicsystems.com.au> References: <54B952FC.4020807@heuristicsystems.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: toolchain@FreeBSD.org, "freebsd-ports@freebsd.org" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2015 21:27:19 -0000 On Sat, 17 Jan 2015 05:05:48 +1100 Dewayne Geraghty wrote: > I would appreciate advise on the best approach to install openssl that > has been built with gcc48 without needing to install gcc and binutils > into the target machine? > > Background > Attempting to run sshd or openssl resulted in > signal 4, illegal instruction. > The target systems are i386 boxes running the VIA C3 chipset using 10.1 > Stable and packages built from svnlite update of ports from 2014-12-30. > > The suspect file is libcrypto.so.8. > > All systems are built using clang and custom compiler directives, in > this case, > -march=c3-2 -mtune=c3-2 > and other attempts of building used CPUTYPE=c3-2 which generated the > same signal 4 when run on the target platform; march=pentium3 had same > result. The build occurs within an i386 jail on an amd64 FreeBSD 10.1 > Stable, base system. > > Solution > Inserted into /usr/ports/security/openssl/Makefile > USE_GCC= yes > resulted in a successful installation and running of sshd and curl which > was the objective. However the openssl now has a dependency on gcc48 > and binutils, which wont fit into the embedded image of 64MB (and isn't > needed) > > I would prefer to use pkg tools to install applications rather than the > crude workaround of > tar -xpPf /kits/openssl-1.0.1_16.txz /usr/local/bin /usr/local/lib > > I suspect something in /usr/ports/Mk would need a flag ?? > > Advise appreciated... > > Kind regards, Dewayne. > PS Fortunate aside, geom_eli only requires openssl header files, > otherwise the base system would also require gcc48 for these target machines I'm sure toolchain@ would want to know what the faulting instruction is. Do you have a core dump that you can examine? -march=c3-2 enables SSE instructions. Are you sure your chip supports that? Maybe you need -march=c3. From owner-freebsd-toolchain@FreeBSD.ORG Sat Jan 17 01:31:23 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2750BD51 for ; Sat, 17 Jan 2015 01:31:23 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 089C5D40 for ; Sat, 17 Jan 2015 01:31:23 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0H1VMFp087271 for ; Sat, 17 Jan 2015 01:31:22 GMT (envelope-from gjb@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0H1VMFw087270; Sat, 17 Jan 2015 01:31:22 GMT (envelope-from gjb) Date: Sat, 17 Jan 2015 01:31:22 +0000 To: freebsd-toolchain@freebsd.org From: "pfg (Pedro Giffuni)" Subject: [Differential] [Updated] D1543: crunchide: Correct 64-bit section header offset Message-ID: <10d892e893c54d69c0745a1910ec772c@localhost.localdomain> X-Priority: 3 Thread-Topic: D1543: crunchide: Correct 64-bit section header offset X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzBlN2E5ZWU4ZjFhZTAwNGYwMTY5M2RlZTIxIFS5u2o= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jan 2015 01:31:23 -0000 pfg added a comment. Nice, thanks! FWIW, I meant to approve it you guys beat me ;). REVISION DETAIL https://reviews.freebsd.org/D1543 To: emaste, imp, pfg Cc: freebsd-toolchain