aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2017-06-05 09:27:38 +0930
committerAlan Modra <amodra@gmail.com>2017-06-05 09:58:05 +0930
commit6734f10ae9af6cfd47e70baa2cd3e326afabe5ed (patch)
treeafa7629a0be2b40664ddffb5550cf929a24c0995 /ld/ldmain.c
parent3ea0007c8ca3ec851df6ab5391a98467b4021f92 (diff)
downloadgdb-6734f10ae9af6cfd47e70baa2cd3e326afabe5ed.zip
gdb-6734f10ae9af6cfd47e70baa2cd3e326afabe5ed.tar.gz
gdb-6734f10ae9af6cfd47e70baa2cd3e326afabe5ed.tar.bz2
Introduce --enable-new-dtags configure option.
This option switches on ld.bfd --enable-new-dtags by default. * configure.ac: Add --enable-new-dtags option. * ldmain.c: Set link_info.new_dtags to 1 if when --enable-new-dtags is switched on. * configure: Regenerate. * config.in: Regenerate.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index e049de3..045f323 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -298,6 +298,9 @@ main (int argc, char **argv)
#ifdef DEFAULT_FLAG_COMPRESS_DEBUG
link_info.compress_debug = COMPRESS_DEBUG_GABI_ZLIB;
#endif
+#ifdef DEFAULT_NEW_DTAGS
+ link_info.new_dtags = TRUE;
+#endif
ldfile_add_arch ("");
emulation = get_emulation (argc, argv);