SHA256
1
0
forked from pool/binutils
binutils/ld-dtags.diff

74 lines
2.5 KiB
Diff
Raw Normal View History

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*
#...