From 0f5898ccf9faab86f0af9e71dc1f18dd56788035 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 20 Mar 1996 21:57:31 +0000 Subject: [PATCH] * ldmain.c (add_wrap): New function. * ldmain.h (add_wrap): Declare. * lexsup.c (parse_args): Call add_wrap. --- ld/ChangeLog | 6 ++++++ ld/lexsup.c | 13 +------------ 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 6c20ceff56b..363c10a032f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +Wed Mar 20 16:56:15 1996 Ian Lance Taylor + + * ldmain.c (add_wrap): New function. + * ldmain.h (add_wrap): Declare. + * lexsup.c (parse_args): Call add_wrap. + Tue Mar 19 16:44:20 1996 Doug Evans * configure.host (sparc*-*-solaris2* host): Accept any sparc variant. diff --git a/ld/lexsup.c b/ld/lexsup.c index 47fd2c5fb98..b9b34c3d772 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; -- 2.30.2