From owner-svn-src-all@freebsd.org Mon Mar 7 18:59:12 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7A44AC3AFA; Mon, 7 Mar 2016 18:59:12 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (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 6808E177C; Mon, 7 Mar 2016 18:59:12 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::db5:de5b:7cb6:ee3c] (unknown [IPv6:2001:7b8:3a7:0:db5:de5b:7cb6:ee3c]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 9F29B3E443; Mon, 7 Mar 2016 19:59:09 +0100 (CET) Subject: Re: svn commit: r296428 - head/sys/boot/common Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: multipart/signed; boundary="Apple-Mail=_7E485799-7391-4A68-A51D-7CE30DCA1055"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: <10F1E4F3-BE8A-4BC3-AFC3-FB4C3A729B60@bsdimp.com> Date: Mon, 7 Mar 2016 19:59:05 +0100 Cc: src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Message-Id: References: <201603061557.u26FvhMi033982@repo.freebsd.org> <56DCD52F.4010709@freebsd.org> <1457365187.13785.174.camel@freebsd.org> <20160307155217.GJ67250@kib.kiev.ua> <10F1E4F3-BE8A-4BC3-AFC3-FB4C3A729B60@bsdimp.com> To: Warner Losh X-Mailer: Apple Mail (2.3112) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2016 18:59:12 -0000 --Apple-Mail=_7E485799-7391-4A68-A51D-7CE30DCA1055 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 07 Mar 2016, at 19:50, Warner Losh wrote: >=20 >> On Mar 7, 2016, at 10:41 AM, Dimitry Andric wrote: >>=20 >> On 07 Mar 2016, at 17:28, Warner Losh wrote: >> ... >>> Alternatively, is there a switch to clang 3.8 that says 'Don't = generate the new >>> relocation, use the old one instead" which would also be safe and = allow a >>> less-bumpy transition? >>=20 >> On amd64, we actually compile source files for the kernel with >> -fno-asynchronous-unwind-tables, which is the flag that ensures = object >> files do not end up with a .eh_frame section, because the compiler = will >> refrain from inserting CFI directives into the assembler. >=20 > Excellent. >=20 >> However, this only affects C source files, and we have a number of >> hand-written assembler sources in the tree, with CFI directives in = them. >> These will always result in .eh_frame sections, unless there is = another >> assembler-specific flag of suppressing that. >=20 > what are the odds of fixing this? Since the vast majority of assembler = code > is going to be in the base kernel. The AESNI stuff is the only = exception > that I can think of=E2=80=A6 >=20 > Are the CFI directives so that DTRACE works, or is there some other = reason? You could comment out the directives, but these are really the standard way to do unwinding on amd64, without having to follow stack frames 'manually'. It would even be better to drop the -fno-asynchronous-unwind-tables option, and actually start making use of the unwind information in e.g. the kernel debugger, or even for producing crash backtraces. -Dimitry --Apple-Mail=_7E485799-7391-4A68-A51D-7CE30DCA1055 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.29 iEYEARECAAYFAlbdz30ACgkQsF6jCi4glqOcpwCfcewuixxByOa82gFJ2Lwb6w0Y OtwAn2hcKVVUg+6sTshEXAu+FGLkhaIV =9u4l -----END PGP SIGNATURE----- --Apple-Mail=_7E485799-7391-4A68-A51D-7CE30DCA1055--