svn commit: r238472 - in head/contrib/gcc/config: arm i386 ia64
mips rs6000 sparc
Konstantin Belousov
kib at FreeBSD.org
Sun Jul 15 10:54:11 UTC 2012
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}"
More information about the svn-src-head
mailing list