From owner-svn-src-all@FreeBSD.ORG Sun Jul 15 10:54:11 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1E04106585C; Sun, 15 Jul 2012 10:54:11 +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 9272B8FC17; Sun, 15 Jul 2012 10:54:11 +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 q6FAsBuw043054; Sun, 15 Jul 2012 10:54:11 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q6FAsBIk043046; Sun, 15 Jul 2012 10:54:11 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201207151054.q6FAsBIk043046@svn.freebsd.org> From: Konstantin Belousov Date: Sun, 15 Jul 2012 10:54:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r238472 - in head/contrib/gcc/config: arm i386 ia64 mips rs6000 sparc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 15 Jul 2012 10:54:11 -0000 Author: kib Date: Sun Jul 15 10:54:10 2012 New Revision: 238472 URL: http://svn.freebsd.org/changeset/base/238472 Log: 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. Reviewed by: kan MFC after: 1 month Modified: head/contrib/gcc/config/arm/freebsd.h head/contrib/gcc/config/i386/freebsd.h head/contrib/gcc/config/i386/freebsd64.h head/contrib/gcc/config/ia64/freebsd.h head/contrib/gcc/config/mips/freebsd.h head/contrib/gcc/config/rs6000/freebsd.h head/contrib/gcc/config/sparc/freebsd.h Modified: head/contrib/gcc/config/arm/freebsd.h ============================================================================== --- head/contrib/gcc/config/arm/freebsd.h Sun Jul 15 10:53:48 2012 (r238471) +++ head/contrib/gcc/config/arm/freebsd.h Sun Jul 15 10:54:10 2012 (r238472) @@ -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: head/contrib/gcc/config/i386/freebsd.h ============================================================================== --- head/contrib/gcc/config/i386/freebsd.h Sun Jul 15 10:53:48 2012 (r238471) +++ head/contrib/gcc/config/i386/freebsd.h Sun Jul 15 10:54:10 2012 (r238472) @@ -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: head/contrib/gcc/config/i386/freebsd64.h ============================================================================== --- head/contrib/gcc/config/i386/freebsd64.h Sun Jul 15 10:53:48 2012 (r238471) +++ head/contrib/gcc/config/i386/freebsd64.h Sun Jul 15 10:54:10 2012 (r238472) @@ -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: head/contrib/gcc/config/ia64/freebsd.h ============================================================================== --- head/contrib/gcc/config/ia64/freebsd.h Sun Jul 15 10:53:48 2012 (r238471) +++ head/contrib/gcc/config/ia64/freebsd.h Sun Jul 15 10:54:10 2012 (r238472) @@ -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: head/contrib/gcc/config/mips/freebsd.h ============================================================================== --- head/contrib/gcc/config/mips/freebsd.h Sun Jul 15 10:53:48 2012 (r238471) +++ head/contrib/gcc/config/mips/freebsd.h Sun Jul 15 10:54:10 2012 (r238472) @@ -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: head/contrib/gcc/config/rs6000/freebsd.h ============================================================================== --- head/contrib/gcc/config/rs6000/freebsd.h Sun Jul 15 10:53:48 2012 (r238471) +++ head/contrib/gcc/config/rs6000/freebsd.h Sun Jul 15 10:54:10 2012 (r238472) @@ -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: head/contrib/gcc/config/sparc/freebsd.h ============================================================================== --- head/contrib/gcc/config/sparc/freebsd.h Sun Jul 15 10:53:48 2012 (r238471) +++ head/contrib/gcc/config/sparc/freebsd.h Sun Jul 15 10:54:10 2012 (r238472) @@ -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}"