bfd/COFF: drop link_add_one_symbol() hook

The need for this has disappeared with dc12032bca ("Remove m68k-aout
and m68k-coff support"); avoid the unnecessary indirection.

Sadly, with ld/pe-dll.c using the wrapper, the removal requires moving
the declaration out of libcoff.h, to properly export the underlying BFD
function.
This commit is contained in:
Jan Beulich
2025-04-07 12:46:16 +02:00
parent e71f5f09ce
commit 0b4a7d8c8a
14 changed files with 48 additions and 56 deletions

View File

@@ -1378,7 +1378,25 @@ hash_entry_bfd (struct bfd_link_hash_entry *h)
/*NOTREACHED*/
}
/* Add a symbol to the global hash table.
/*
FUNCTION
_bfd_generic_link_add_one_symbol
SYNOPSIS
bool _bfd_generic_link_add_one_symbol
(struct bfd_link_info *info,
bfd *abfd,
const char *name,
flagword flags,
asection *section,
bfd_vma value,
const char *string,
bool copy,
bool collect,
struct bfd_link_hash_entry **hashp);
DESCRIPTION
Add a symbol to the global hash table.
ABFD is the BFD the symbol comes from.
NAME is the name of the symbol.
FLAGS is the BSF_* bits associated with the symbol.