aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-03-20 21:57:31 +0000
committerIan Lance Taylor <ian@airs.com>1996-03-20 21:57:31 +0000
commit0f5898ccf9faab86f0af9e71dc1f18dd56788035 (patch)
treecaab1aa7b3296d56a3207d578d9b4ed22f41926f /ld
parent5a52c5f8fe5e7773326cccd54ab04f48cc761d2d (diff)
downloadgdb-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')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/lexsup.c13
2 files changed, 7 insertions, 12 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 6c20cef..363c10a 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
+
+ * 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 <dje@canuck.cygnus.com>
* configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
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;