From owner-svn-src-stable@freebsd.org Tue May 23 07:21:28 2017 Return-Path: Delivered-To: svn-src-stable@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 50955D7A5BE; Tue, 23 May 2017 07:21:28 +0000 (UTC) (envelope-from mmel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (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 06FBC1814; Tue, 23 May 2017 07:21:27 +0000 (UTC) (envelope-from mmel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v4N7LRcT077752; Tue, 23 May 2017 07:21:27 GMT (envelope-from mmel@FreeBSD.org) Received: (from mmel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v4N7LQIN077749; Tue, 23 May 2017 07:21:26 GMT (envelope-from mmel@FreeBSD.org) Message-Id: <201705230721.v4N7LQIN077749@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mmel set sender to mmel@FreeBSD.org using -f From: Michal Meloun Date: Tue, 23 May 2017 07:21:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r318714 - in stable/11/contrib/gcc: . config/arm X-SVN-Group: stable-11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 May 2017 07:21:28 -0000 Author: mmel Date: Tue May 23 07:21:26 2017 New Revision: 318714 URL: https://svnweb.freebsd.org/changeset/base/318714 Log: MFC r318024,r318025: r318024: Fix _Unwind_Backtrace symbol version for ARM. r318025: Revert accidentally changed std.armv6 in r318024. Modified: stable/11/contrib/gcc/config/arm/libgcc-bpabi.ver stable/11/contrib/gcc/config/arm/libunwind-arm.S stable/11/contrib/gcc/libgcc-std.ver Directory Properties: stable/11/ (props changed) Modified: stable/11/contrib/gcc/config/arm/libgcc-bpabi.ver ============================================================================== --- stable/11/contrib/gcc/config/arm/libgcc-bpabi.ver Tue May 23 07:20:29 2017 (r318713) +++ stable/11/contrib/gcc/config/arm/libgcc-bpabi.ver Tue May 23 07:21:26 2017 (r318714) @@ -81,3 +81,11 @@ GCC_3.5 { # GNU-specific entry point. __gnu_unwind_frame } + +%exclude { + _Unwind_Backtrace +} + +GCC_4.3.0 { + _Unwind_Backtrace +} Modified: stable/11/contrib/gcc/config/arm/libunwind-arm.S ============================================================================== --- stable/11/contrib/gcc/config/arm/libunwind-arm.S Tue May 23 07:20:29 2017 (r318713) +++ stable/11/contrib/gcc/config/arm/libunwind-arm.S Tue May 23 07:21:26 2017 (r318714) @@ -133,4 +133,22 @@ UNWIND_WRAPPER _Unwind_Resume_or_Rethrow UNWIND_WRAPPER _Unwind_ForcedUnwind 3 UNWIND_WRAPPER _Unwind_Backtrace 2 +/* + * Originally, we incorrectly export _Unwind_Backtrace symbol + * with GCC_3.3 version, but real GCC libgcc export it as GCC_4.3.0. + * To maintain backward compatibility, export it with both versions where + * GCC_4.3.0 is default one. + * + * The workaround is complicated by next two issues: + * - old GNU ld cannot handle two (or more) symbol versions + * targeting same function. + * - the .weakref crashes clang 4.0 + */ + .globl SYM(_Unwind_Backtrace33) + TYPE(_Unwind_Backtrace33) +SYM(_Unwind_Backtrace33): + b _Unwind_Backtrace + + .symver SYM(_Unwind_Backtrace33),_Unwind_Backtrace@GCC_3.3 + #endif /* ndef __symbian__ */ Modified: stable/11/contrib/gcc/libgcc-std.ver ============================================================================== --- stable/11/contrib/gcc/libgcc-std.ver Tue May 23 07:20:29 2017 (r318713) +++ stable/11/contrib/gcc/libgcc-std.ver Tue May 23 07:21:26 2017 (r318714) @@ -275,7 +275,7 @@ GCC_4.2.0 { _Unwind_GetIPInfo } -%inherit GCC_4.3 GCC_4.2.0 +%inherit GCC_4.3.0 GCC_4.2.0 GCC_4.3.0 { # byte swapping routines __bswapsi2