diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-03-20 21:57:31 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-03-20 21:57:31 +0000 |
commit | 0f5898ccf9faab86f0af9e71dc1f18dd56788035 (patch) | |
tree | caab1aa7b3296d56a3207d578d9b4ed22f41926f /ld/lexsup.c | |
parent | 5a52c5f8fe5e7773326cccd54ab04f48cc761d2d (diff) | |
download | gdb-0f5898ccf9faab86f0af9e71dc1f18dd56788035.zip gdb-0f5898ccf9faab86f0af9e71dc1f18dd56788035.tar.gz gdb-0f5898ccf9faab86f0af9e71dc1f18dd56788035.tar.bz2 |
* ldmain.c (add_wrap): New function.
* ldmain.h (add_wrap): Declare.
* lexsup.c (parse_args): Call add_wrap.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r-- | ld/lexsup.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c index 47fd2c5..b9b34c3 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -499,18 +499,7 @@ parse_args (argc, argv) whole_archive = true; break; case OPTION_WRAP: - if (link_info.wrap_hash == NULL) - { - link_info.wrap_hash = ((struct bfd_hash_table *) - xmalloc (sizeof (struct bfd_hash_table))); - if (! bfd_hash_table_init_n (link_info.wrap_hash, - bfd_hash_newfunc, - 61)) - einfo ("%P%F: bfd_hash_table_init failed: %E\n"); - } - if (bfd_hash_lookup (link_info.wrap_hash, optarg, true, true) - == NULL) - einfo ("%P%F: bfd_hash_lookup failed: %E\n"); + add_wrap (optarg); break; case 'X': link_info.discard = discard_l; |