From owner-svn-src-stable-9@FreeBSD.ORG Fri Nov 2 14:18:31 2012 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B2A58142; Fri, 2 Nov 2012 14:18:31 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8FA478FC0A; Fri, 2 Nov 2012 14:18:31 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id qA2EIVxR037507; Fri, 2 Nov 2012 14:18:31 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id qA2EIVAj037499; Fri, 2 Nov 2012 14:18:31 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201211021418.qA2EIVAj037499@svn.freebsd.org> From: Konstantin Belousov Date: Fri, 2 Nov 2012 14:18:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r242478 - in stable/9/contrib/gcc/config: arm i386 ia64 mips rs6000 sparc X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2012 14:18:31 -0000 Author: kib Date: Fri Nov 2 14:18:30 2012 New Revision: 242478 URL: http://svn.freebsd.org/changeset/base/242478 Log: MFC r238472: Pass --enable-new-dtags to the linker invocation by default. If desired, one can turn off the generation of post-ELF standard dtags by overriding it with --disable-new-dtags after the default switch. Immediate effect of the change is that -rpath path is now stored both in DT_RPATH and DT_RUNPATH tags, which is the right way to provide rpath for dynamic linker supporting DT_RUNPATH per specification. Note that rtld on stable/9 interprets DT_RPATH the same as DT_RUNPATH by default. MFC discussed with: kan (some time ago) Modified: stable/9/contrib/gcc/config/arm/freebsd.h stable/9/contrib/gcc/config/i386/freebsd.h stable/9/contrib/gcc/config/i386/freebsd64.h stable/9/contrib/gcc/config/ia64/freebsd.h stable/9/contrib/gcc/config/mips/freebsd.h stable/9/contrib/gcc/config/rs6000/freebsd.h stable/9/contrib/gcc/config/sparc/freebsd.h Directory Properties: stable/9/contrib/gcc/ (props changed) Modified: stable/9/contrib/gcc/config/arm/freebsd.h ============================================================================== --- stable/9/contrib/gcc/config/arm/freebsd.h Fri Nov 2 14:16:09 2012 (r242477) +++ stable/9/contrib/gcc/config/arm/freebsd.h Fri Nov 2 14:18:30 2012 (r242478) @@ -50,7 +50,7 @@ %{rdynamic:-export-dynamic} \ %{!dynamic-linker:-dynamic-linker %(fbsd_dynamic_linker) }} \ %{static:-Bstatic}} \ - %{!static:--hash-style=both} \ + %{!static:--hash-style=both --enable-new-dtags} \ %{symbolic:-Bsymbolic} \ -X %{mbig-endian:-EB} %{mlittle-endian:-EL}" Modified: stable/9/contrib/gcc/config/i386/freebsd.h ============================================================================== --- stable/9/contrib/gcc/config/i386/freebsd.h Fri Nov 2 14:16:09 2012 (r242477) +++ stable/9/contrib/gcc/config/i386/freebsd.h Fri Nov 2 14:18:30 2012 (r242478) @@ -49,7 +49,7 @@ Boston, MA 02110-1301, USA. */ %{rdynamic: -export-dynamic} \ %{!dynamic-linker:-dynamic-linker %(fbsd_dynamic_linker) }} \ %{static:-Bstatic}} \ - %{!static:--hash-style=both} \ + %{!static:--hash-style=both --enable-new-dtags} \ %{symbolic:-Bsymbolic}" /* Reset our STARTFILE_SPEC which was properly set in config/freebsd.h Modified: stable/9/contrib/gcc/config/i386/freebsd64.h ============================================================================== --- stable/9/contrib/gcc/config/i386/freebsd64.h Fri Nov 2 14:16:09 2012 (r242477) +++ stable/9/contrib/gcc/config/i386/freebsd64.h Fri Nov 2 14:18:30 2012 (r242478) @@ -54,5 +54,5 @@ Boston, MA 02110-1301, USA. */ %{rdynamic:-export-dynamic} \ %{!dynamic-linker:-dynamic-linker %(fbsd_dynamic_linker) }} \ %{static:-Bstatic}} \ - %{!static:--hash-style=both} \ + %{!static:--hash-style=both --enable-new-dtags} \ %{symbolic:-Bsymbolic}" Modified: stable/9/contrib/gcc/config/ia64/freebsd.h ============================================================================== --- stable/9/contrib/gcc/config/ia64/freebsd.h Fri Nov 2 14:16:09 2012 (r242477) +++ stable/9/contrib/gcc/config/ia64/freebsd.h Fri Nov 2 14:18:30 2012 (r242478) @@ -27,6 +27,7 @@ Boston, MA 02110-1301, USA. */ %{p:%nconsider using `-pg' instead of `-p' with gprof(1)} \ %{assert*} %{R*} %{rpath*} %{defsym*} \ %{shared:-Bshareable %{h*} %{soname*}} \ + %{!static:--enable-new-dtags} \ %{symbolic:-Bsymbolic} \ %{!shared: \ %{!static: \ Modified: stable/9/contrib/gcc/config/mips/freebsd.h ============================================================================== --- stable/9/contrib/gcc/config/mips/freebsd.h Fri Nov 2 14:16:09 2012 (r242477) +++ stable/9/contrib/gcc/config/mips/freebsd.h Fri Nov 2 14:18:30 2012 (r242478) @@ -56,6 +56,7 @@ Boston, MA 02110-1301, USA. */ %{v:-V} \ %{assert*} %{R*} %{rpath*} %{defsym*} \ %{shared:-Bshareable %{h*} %{soname*}} \ + %{!static:--enable-new-dtags} \ %{!shared: \ %{!static: \ %{rdynamic: -export-dynamic} \ Modified: stable/9/contrib/gcc/config/rs6000/freebsd.h ============================================================================== --- stable/9/contrib/gcc/config/rs6000/freebsd.h Fri Nov 2 14:16:09 2012 (r242477) +++ stable/9/contrib/gcc/config/rs6000/freebsd.h Fri Nov 2 14:18:30 2012 (r242478) @@ -180,6 +180,7 @@ extern int dot_symbols; %{v:-V} \ %{assert*} %{R*} %{rpath*} %{defsym*} \ %{shared:-Bshareable %{h*} %{soname*}} \ + %{!static:--enable-new-dtags} \ %{!shared: \ %{!static: \ %{rdynamic: -export-dynamic} \ Modified: stable/9/contrib/gcc/config/sparc/freebsd.h ============================================================================== --- stable/9/contrib/gcc/config/sparc/freebsd.h Fri Nov 2 14:16:09 2012 (r242477) +++ stable/9/contrib/gcc/config/sparc/freebsd.h Fri Nov 2 14:18:30 2012 (r242478) @@ -53,7 +53,7 @@ Boston, MA 02110-1301, USA. */ %{rdynamic:-export-dynamic} \ %{!dynamic-linker:-dynamic-linker %(fbsd_dynamic_linker) }} \ %{static:-Bstatic}} \ - %{!static:--hash-style=both} \ + %{!static:--hash-style=both --enable-new-dtags} \ %{symbolic:-Bsymbolic}"