aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-05-21 15:38:04 +0000
committerNick Clifton <nickc@redhat.com>2004-05-21 15:38:04 +0000
commit2d643429defea3c00819c1d9a288d424ad76a825 (patch)
tree8be2842d14c593c384ec38d66ae86902a6316e6e /ld/ldmain.c
parent8377c19cc4edbdbb66f30996bd0400ff9ec1562a (diff)
downloadgdb-2d643429defea3c00819c1d9a288d424ad76a825.zip
gdb-2d643429defea3c00819c1d9a288d424ad76a825.tar.gz
gdb-2d643429defea3c00819c1d9a288d424ad76a825.tar.bz2
Add --hash-size switch to the linker
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index f3df44f..f1804c4 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -267,6 +267,7 @@ main (int argc, char **argv)
config.has_shared = FALSE;
config.split_by_reloc = (unsigned) -1;
config.split_by_file = (bfd_size_type) -1;
+ config.hash_table_size = 0;
command_line.force_common_definition = FALSE;
command_line.inhibit_common_definition = FALSE;
command_line.interpreter = NULL;
@@ -344,6 +345,9 @@ main (int argc, char **argv)
lang_has_input_file = FALSE;
parse_args (argc, argv);
+ if (config.hash_table_size != 0)
+ bfd_hash_set_default_size (config.hash_table_size);
+
ldemul_set_symbols ();
if (link_info.relocatable)