* ldmain.c (main): Call bfd_set_error_program_name.
authorIan Lance Taylor <ian@airs.com>
Tue, 26 Mar 1996 23:16:01 +0000 (23:16 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 26 Mar 1996 23:16:01 +0000 (23:16 +0000)
ld/ChangeLog
ld/ldmain.c

index 0ca280b18e11e1ee83e4a44636247da8439077d3..61b91bf50f83cd5877fa4bd4c324fa9bd25bd604 100644 (file)
@@ -1,5 +1,12 @@
+Tue Mar 26 18:14:49 1996  Ian Lance Taylor  <ian@cygnus.com>
+
+       * ldmain.c (main): Call bfd_set_error_program_name.
+
 Thu Mar 21 13:17:34 1996  Ian Lance Taylor  <ian@cygnus.com>
 
+       * ld.texinfo: Fix a couple of indexing entries.  Mention that
+       --verbose displays builtin linker scripts.
+
        * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
        and the local symbol name does not match the filename, print the
        filename as well.
index 6d78e27defa46ffe2895ceed3132985ee58ca95d..1096368a9d9d46e731f15d6ee750654f8e30a8c2 100644 (file)
@@ -162,6 +162,8 @@ main (argc, argv)
 
   bfd_init ();
 
+  bfd_set_error_program_name (program_name);
+
   xatexit (remove_output);
 
   /* Initialize the data about options.  */
@@ -515,6 +517,25 @@ add_ysym (name)
     einfo ("%P%F: bfd_hash_lookup failed: %E\n");
 }
 
+/* Record a symbol to be wrapped, from the --wrap option.  */
+
+void
+add_wrap (name)
+     const char *name;
+{
+  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, name, true, true) == NULL)
+    einfo ("%P%F: bfd_hash_lookup failed: %E\n");
+}
+
 /* Handle the -retain-symbols-file option.  */
 
 void
This page took 0.029372 seconds and 4 git commands to generate.