aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-csky.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-05-10 08:52:39 +0930
committerAlan Modra <amodra@gmail.com>2022-05-10 11:21:37 +0930
commitf3b9cfd1954343ad443119cf0b545de9e45b9494 (patch)
treec77605f1f184a6ba3197343ae3da69989782645a /bfd/elf32-csky.c
parentc2dae75149ba2946111608205e0e1ccf8b028991 (diff)
downloadbinutils-f3b9cfd1954343ad443119cf0b545de9e45b9494.zip
binutils-f3b9cfd1954343ad443119cf0b545de9e45b9494.tar.gz
binutils-f3b9cfd1954343ad443119cf0b545de9e45b9494.tar.bz2
bfd: remove use of PTR
* coffcode.h (coff_write_object_contents): Don't cast to PTR. * elf32-csky.c (csky_elf_link_hash_traverse): Remove use of PTR and PARAMS. (csky_allocate_dynrelocs): Don't use PTR cast. * elf32-nios2.c (adjust_dynrelocs, allocate_dynrelocs): Replace PTR with void *. * elf32-visium.c (visium_elf_howto_parity_reloc): Likewise. * elfxx-ia64.c (ia64_elf_reloc): Likewise. * plugin.c (bfd_plugin_bfd_print_private_bfd_data): Likewise.
Diffstat (limited to 'bfd/elf32-csky.c')
-rw-r--r--bfd/elf32-csky.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf32-csky.c b/bfd/elf32-csky.c
index 87a879e..c601088 100644
--- a/bfd/elf32-csky.c
+++ b/bfd/elf32-csky.c
@@ -1181,7 +1181,7 @@ struct csky_elf_link_hash_entry
#define csky_elf_link_hash_traverse(table, func, info) \
(elf_link_hash_traverse \
(&(table)->root, \
- (bool (*) PARAMS ((struct elf_link_hash_entry *, PTR))) (func), \
+ (bool (*) (struct elf_link_hash_entry *, void *)) (func), \
(info)))
/* Get the C-SKY ELF linker hash table from a link_info structure. */
@@ -1659,7 +1659,7 @@ csky_elf_adjust_dynamic_symbol (struct bfd_link_info *info,
dynamic relocs. */
static bool
-csky_allocate_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
+csky_allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
{
struct bfd_link_info *info;
struct csky_elf_link_hash_table *htab;
@@ -2010,7 +2010,7 @@ csky_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
/* Allocate global sym .plt and .got entries, and space for global
sym dynamic relocs. */
- elf_link_hash_traverse (&htab->elf, csky_allocate_dynrelocs, (PTR) info);
+ elf_link_hash_traverse (&htab->elf, csky_allocate_dynrelocs, info);
/* Check for GOT overflow. */
if (check_got_overflow == 1