mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* ldmain.c (main): Call bfd_set_error_program_name.
This commit is contained in:
21
ld/ldmain.c
21
ld/ldmain.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user