summaryrefslogtreecommitdiff
path: root/bfd/peicode.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-05-27 15:28:34 +0930
committerAlan Modra <amodra@gmail.com>2022-05-27 22:08:59 +0930
commit601598589589734c21bacfc00cd4aed4f3fd1a1f (patch)
tree0aa92f84b76198ccaa2ba47b2ad647b920639289 /bfd/peicode.h
parent65d13793d9ea142bc4383216e375b24cfa654751 (diff)
downloadbinutils-gdb-601598589589734c21bacfc00cd4aed4f3fd1a1f.tar.gz
Replace bfd_hostptr_t with uintptr_t
bfd_hostptr_t is defined as a type large enough to hold either a long or a pointer. It mostly appears in the coff backend code in casts. include/coff/internal.h struct internal_syment and union internal_auxent have the only uses in data structures, where comparison with include/coff/external.h and other code reveals that the type only needs to be large enough for a 32-bit integer or a pointer. That should mean replacing with uintptr_t is OK.
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r--bfd/peicode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h
index 0346bc2174e..02573c84694 100644
--- a/bfd/peicode.h
+++ b/bfd/peicode.h
@@ -588,7 +588,7 @@ pe_ILF_make_a_symbol (pe_ILF_vars * vars,
/* Initialise the internal symbol structure. */
ent->u.syment.n_sclass = sclass;
ent->u.syment.n_scnum = section->target_index;
- ent->u.syment._n._n_n._n_offset = (bfd_hostptr_t) sym;
+ ent->u.syment._n._n_n._n_offset = (uintptr_t) sym;
ent->is_sym = true;
sym->symbol.the_bfd = vars->abfd;