aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-nios2.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-nios2.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-nios2.c')
-rw-r--r--bfd/elf32-nios2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-nios2.c b/bfd/elf32-nios2.c
index 93e503b..74a9f98 100644
--- a/bfd/elf32-nios2.c
+++ b/bfd/elf32-nios2.c
@@ -5413,7 +5413,7 @@ nios2_elf32_adjust_dynamic_symbol (struct bfd_link_info *info,
/* Worker function for nios2_elf32_size_dynamic_sections. */
static bool
-adjust_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
+adjust_dynrelocs (struct elf_link_hash_entry *h, void *inf)
{
struct bfd_link_info *info;
struct elf32_nios2_link_hash_table *htab;
@@ -5442,7 +5442,7 @@ adjust_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
Allocate space in .plt, .got and associated reloc sections for
dynamic relocs. */
static bool
-allocate_dynrelocs (struct elf_link_hash_entry *h, PTR inf)
+allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
{
struct bfd_link_info *info;
struct elf32_nios2_link_hash_table *htab;