binutils/ld-dtags.diff
Richard Biener b416ee658f Accepting request 229209 from home:AndreasSchwab:f
- ld-dtags.diff: update testsuite for --enable-new-dtags default
- ld-testsuite.patch: fix spurious failures in ld-plugin/lto.exp

OBS-URL: https://build.opensuse.org/request/show/229209
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=164
2014-04-07 08:14:05 +00:00

74 lines
2.5 KiB
Diff

Index: binutils-2.24/ld/ld.texinfo
===================================================================
--- binutils-2.24.orig/ld/ld.texinfo
+++ binutils-2.24/ld/ld.texinfo
@@ -2117,7 +2117,7 @@ systems may not understand them. If you
@option{--enable-new-dtags}, the new dynamic tags will be created as needed
and older dynamic tags will be omitted.
If you specify @option{--disable-new-dtags}, no new dynamic tags will be
-created. By default, the new dynamic tags are not created. Note that
+created. By default, the new dynamic tags are created. Note that
those options are only available for ELF systems.
@kindex --hash-size=@var{number}
Index: binutils-2.24/ld/ldmain.c
===================================================================
--- binutils-2.24.orig/ld/ldmain.c
+++ binutils-2.24/ld/ldmain.c
@@ -276,6 +276,7 @@ main (int argc, char **argv)
link_info.allow_undefined_version = TRUE;
link_info.keep_memory = TRUE;
+ link_info.new_dtags = TRUE;
link_info.combreloc = TRUE;
link_info.strip_discarded = TRUE;
link_info.emit_hash = TRUE;
Index: binutils-2.24/ld/testsuite/ld-elf/now-3.d
===================================================================
--- binutils-2.24.orig/ld/testsuite/ld-elf/now-3.d
+++ binutils-2.24/ld/testsuite/ld-elf/now-3.d
@@ -1,6 +1,6 @@
#source: start.s
#readelf: -d -W
-#ld: -shared -z now
+#ld: -shared -z now --disable-new-dtags
#target: *-*-linux* *-*-gnu*
#failif
Index: binutils-2.24/ld/testsuite/ld-elf/now-4.d
===================================================================
--- binutils-2.24.orig/ld/testsuite/ld-elf/now-4.d
+++ binutils-2.24/ld/testsuite/ld-elf/now-4.d
@@ -1,6 +1,6 @@
#source: start.s
#readelf: -d -W
-#ld: -shared -z now
+#ld: -shared -z now --disable-new-dtags
#target: *-*-linux* *-*-gnu*
#...
Index: binutils-2.24/ld/testsuite/ld-elf/rpath-1.d
===================================================================
--- binutils-2.24.orig/ld/testsuite/ld-elf/rpath-1.d
+++ binutils-2.24/ld/testsuite/ld-elf/rpath-1.d
@@ -1,6 +1,6 @@
#source: start.s
#readelf: -d -W
-#ld: -shared -rpath .
+#ld: -shared -rpath . --disable-new-dtags
#target: *-*-linux* *-*-gnu*
#failif
Index: binutils-2.24/ld/testsuite/ld-elf/rpath-2.d
===================================================================
--- binutils-2.24.orig/ld/testsuite/ld-elf/rpath-2.d
+++ binutils-2.24/ld/testsuite/ld-elf/rpath-2.d
@@ -1,6 +1,6 @@
#source: start.s
#readelf: -d -W
-#ld: -shared -rpath .
+#ld: -shared -rpath . --disable-new-dtags
#target: *-*-linux* *-*-gnu*
#...