aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorRomain Geissler <romain.geissler@gmail.com>2017-08-08 07:25:39 +0930
committerAlan Modra <amodra@gmail.com>2017-08-08 07:25:39 +0930
commit2760f24c4942853eac7b921e4b8843d57a602654 (patch)
tree032df5cd9ee9386bd44239b733038f23f4388733 /ld/ldmain.c
parent8f5e83fb735af978b99ea6e22574560bf667d1d6 (diff)
downloadgdb-2760f24c4942853eac7b921e4b8843d57a602654.zip
gdb-2760f24c4942853eac7b921e4b8843d57a602654.tar.gz
gdb-2760f24c4942853eac7b921e4b8843d57a602654.tar.bz2
Add configure flag to enable gnu hash style by default.
ld/ * configure.ac: Add --enable-default-hash-style option. * ldmain.c (main): Set link_info.emit_hash to DEFAULT_EMIT_SYSV_HASH. Set link_info.emit_gnu_hash to DEFAULT_EMIT_GNU_HASH. * configure: Regenerate. * config.in: Regenerate. gold/ * configure.ac: Add --enable-default-hash-style option. * options.h (hash_style): Use DEFAULT_HASH_STYLE as default value. * configure: Regenerate. * config.in: Regenerate.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index cb1e2d1..2b09f20 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -273,7 +273,8 @@ main (int argc, char **argv)
link_info.keep_memory = TRUE;
link_info.combreloc = TRUE;
link_info.strip_discarded = TRUE;
- link_info.emit_hash = TRUE;
+ link_info.emit_hash = DEFAULT_EMIT_SYSV_HASH;
+ link_info.emit_gnu_hash = DEFAULT_EMIT_GNU_HASH;
link_info.callbacks = &link_callbacks;
link_info.input_bfds_tail = &link_info.input_bfds;
/* SVR4 linkers seem to set DT_INIT and DT_FINI based on magic _init