svn commit: r242478 - in stable/9/contrib/gcc/config: arm i386 ia64 mips rs6000 sparc

Konstantin Belousov kib at FreeBSD.org
Fri Nov 2 14:18:31 UTC 2012


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}"
 
 


More information about the svn-src-stable-9 mailing list