Fix --enable-new-dtags config support

and testsuite when configured with --enable-new-dtags.

	* ldmain.c (main): Correct setting of link_indo.new_dtags.
	* testsuite/ld-elf/now-3.d: Pass --disable-new-dtags to ld
	* testsuite/ld-elf/now-4.d: Likewise.
	* testsuite/ld-elf/rpath-1.d: Likewise.
	* testsuite/ld-elf/rpath-2.d: Likewise.
This commit is contained in:
Alan Modra 2017-06-05 14:43:54 +09:30
parent 6734f10ae9
commit 91001320a2
6 changed files with 15 additions and 7 deletions

View File

@ -1,8 +1,16 @@
2017-06-05 Alan Modra <amodra@gmail.com>
* ldmain.c (main): Correct setting of link_indo.new_dtags.
* testsuite/ld-elf/now-3.d: Pass --disable-new-dtags to ld
* testsuite/ld-elf/now-4.d: Likewise.
* testsuite/ld-elf/rpath-1.d: Likewise.
* testsuite/ld-elf/rpath-2.d: Likewise.
2017-06-05 Slava Barinov <v.barinov@samsung.com>
* configure.ac: Add --enable-new-dtags option.
* ldmain.c: Set link_info.new_dtags to 1 if when --enable-new-dtags is
switched on.
* ldmain.c (main): Set link_info.new_dtags to 1 if when
--enable-new-dtags is switched on.
* configure: Regenerate.
* config.in: Regenerate.

View File

@ -299,7 +299,7 @@ main (int argc, char **argv)
link_info.compress_debug = COMPRESS_DEBUG_GABI_ZLIB;
#endif
#ifdef DEFAULT_NEW_DTAGS
link_info.new_dtags = TRUE;
link_info.new_dtags = DEFAULT_NEW_DTAGS;
#endif
ldfile_add_arch ("");

View File

@ -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

View File

@ -1,6 +1,6 @@
#source: start.s
#readelf: -d -W
#ld: -shared -z now
#ld: -shared -z now --disable-new-dtags
#target: *-*-linux* *-*-gnu*
#...

View File

@ -1,6 +1,6 @@
#source: start.s
#readelf: -d -W
#ld: -shared -rpath .
#ld: -shared -rpath=. --disable-new-dtags
#target: *-*-linux* *-*-gnu*
#failif

View File

@ -1,6 +1,6 @@
#source: start.s
#readelf: -d -W
#ld: -shared -rpath .
#ld: -shared -rpath=. --disable-new-dtags
#target: *-*-linux* *-*-gnu*
#...