mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-29 21:04:22 +08:00
Use htab_eq_string in binutils
A quick check says this is the only place in all of bfd, opcodes, binutils, gas, ld, gprof that duplicates the new libiberty htab_eq_string. * objcopy.c (eq_string): Delete. (create_symbol_htab): Use htab_eq_string.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2021-05-09 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* objcopy.c (eq_string): Delete.
|
||||||
|
(create_symbol_htab): Use htab_eq_string.
|
||||||
|
|
||||||
2021-05-08 Mike Frysinger <vapier@gentoo.org>
|
2021-05-08 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* README-how-to-make-a-release: Update html & pdf entries.
|
* README-how-to-make-a-release: Update html & pdf entries.
|
||||||
|
@ -1025,18 +1025,11 @@ create_symbol2redef_htab (void)
|
|||||||
xcalloc, free);
|
xcalloc, free);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* There is htab_hash_string but no htab_eq_string. Makes sense. */
|
|
||||||
|
|
||||||
static int
|
|
||||||
eq_string (const void *s1, const void *s2)
|
|
||||||
{
|
|
||||||
return strcmp ((const char *) s1, (const char *) s2) == 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static htab_t
|
static htab_t
|
||||||
create_symbol_htab (void)
|
create_symbol_htab (void)
|
||||||
{
|
{
|
||||||
return htab_create_alloc (16, htab_hash_string, eq_string, NULL, xcalloc, free);
|
return htab_create_alloc (16, htab_hash_string, htab_eq_string, NULL,
|
||||||
|
xcalloc, free);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Reference in New Issue
Block a user