Remove unused args from bfd_make_debug_symbol

The ptr and size args are unused.  Make the function look the same as
bfd_make_empty_symbol.
This commit is contained in:
Alan Modra
2023-05-03 15:53:29 +09:30
parent 717d4bd6d1
commit a07223191b
9 changed files with 14 additions and 19 deletions
+3 -3
View File
@@ -1280,8 +1280,8 @@ void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol);
asymbol *_bfd_generic_make_empty_symbol (bfd *);
#define bfd_make_debug_symbol(abfd,ptr,size) \
BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size))
#define bfd_make_debug_symbol(abfd) \
BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd))
int bfd_decode_symclass (asymbol *symbol);
@@ -7655,7 +7655,7 @@ typedef struct bfd_target
while using BFD for everything else. Currently used by the assembler
when creating COFF files. */
asymbol *
(*_bfd_make_debug_symbol) (bfd *, void *, unsigned long size);
(*_bfd_make_debug_symbol) (bfd *);
#define bfd_read_minisymbols(b, d, m, s) \
BFD_SEND (b, _read_minisymbols, (b, d, m, s))
long (*_read_minisymbols) (bfd *, bool, void **, unsigned int *);
+1 -3
View File
@@ -1991,9 +1991,7 @@ coff_make_empty_symbol (bfd *abfd)
/* Make a debugging symbol. */
asymbol *
coff_bfd_make_debug_symbol (bfd *abfd,
void * ptr ATTRIBUTE_UNUSED,
unsigned long sz ATTRIBUTE_UNUSED)
coff_bfd_make_debug_symbol (bfd *abfd)
{
size_t amt = sizeof (coff_symbol_type);
coff_symbol_type *new_symbol = (coff_symbol_type *) bfd_alloc (abfd, amt);
+1 -1
View File
@@ -450,7 +450,7 @@ extern bool _bfd_nosymbols_find_line
extern bool _bfd_nosymbols_find_inliner_info
(bfd *, const char **, const char **, unsigned int *) ATTRIBUTE_HIDDEN;
extern asymbol *_bfd_nosymbols_bfd_make_debug_symbol
(bfd *, void *, unsigned long) ATTRIBUTE_HIDDEN;
(bfd *) ATTRIBUTE_HIDDEN;
extern long _bfd_nosymbols_read_minisymbols
(bfd *, bool, void **, unsigned int *) ATTRIBUTE_HIDDEN;
extern asymbol *_bfd_nosymbols_minisymbol_to_symbol
+1 -1
View File
@@ -456,7 +456,7 @@ extern bool _bfd_nosymbols_find_line
extern bool _bfd_nosymbols_find_inliner_info
(bfd *, const char **, const char **, unsigned int *) ATTRIBUTE_HIDDEN;
extern asymbol *_bfd_nosymbols_bfd_make_debug_symbol
(bfd *, void *, unsigned long) ATTRIBUTE_HIDDEN;
(bfd *) ATTRIBUTE_HIDDEN;
extern long _bfd_nosymbols_read_minisymbols
(bfd *, bool, void **, unsigned int *) ATTRIBUTE_HIDDEN;
extern asymbol *_bfd_nosymbols_minisymbol_to_symbol
+1 -1
View File
@@ -360,7 +360,7 @@ extern void coff_get_symbol_info
extern bool _bfd_coff_is_local_label_name
(bfd *, const char *);
extern asymbol *coff_bfd_make_debug_symbol
(bfd *, void *, unsigned long);
(bfd *);
extern bool coff_find_nearest_line
(bfd *, asymbol **, asection *, bfd_vma,
const char **, const char **, unsigned int *, unsigned int *);
+1 -1
View File
@@ -364,7 +364,7 @@ extern void coff_get_symbol_info
extern bool _bfd_coff_is_local_label_name
(bfd *, const char *);
extern asymbol *coff_bfd_make_debug_symbol
(bfd *, void *, unsigned long);
(bfd *);
extern bool coff_find_nearest_line
(bfd *, asymbol **, asection *, bfd_vma,
const char **, const char **, unsigned int *, unsigned int *);
+4 -7
View File
@@ -569,11 +569,10 @@ FUNCTION
DESCRIPTION
Create a new <<asymbol>> structure for the BFD @var{abfd},
to be used as a debugging symbol. Further details of its use have
yet to be worked out.
to be used as a debugging symbol.
.#define bfd_make_debug_symbol(abfd,ptr,size) \
. BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size))
.#define bfd_make_debug_symbol(abfd) \
. BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd))
.
*/
@@ -1577,9 +1576,7 @@ _bfd_nosymbols_find_inliner_info
}
asymbol *
_bfd_nosymbols_bfd_make_debug_symbol (bfd *abfd,
void *ptr ATTRIBUTE_UNUSED,
unsigned long sz ATTRIBUTE_UNUSED)
_bfd_nosymbols_bfd_make_debug_symbol (bfd *abfd)
{
return (asymbol *) _bfd_ptr_bfd_null_error (abfd);
}
+1 -1
View File
@@ -420,7 +420,7 @@ BFD_JUMP_TABLE macros.
. while using BFD for everything else. Currently used by the assembler
. when creating COFF files. *}
. asymbol *
. (*_bfd_make_debug_symbol) (bfd *, void *, unsigned long size);
. (*_bfd_make_debug_symbol) (bfd *);
.#define bfd_read_minisymbols(b, d, m, s) \
. BFD_SEND (b, _read_minisymbols, (b, d, m, s))
. long (*_read_minisymbols) (bfd *, bool, void **, unsigned int *);
+1 -1
View File
@@ -238,7 +238,7 @@ fetch_coff_debug_section (void)
{
const asymbol *s;
s = bfd_make_debug_symbol (stdoutput, NULL, 0);
s = bfd_make_debug_symbol (stdoutput);
gas_assert (s != 0);
debug_section = s->section;
}