public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Commit: Fix compiling vms-lib.c for 32-bit host
@ 2024-03-18 10:25 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2024-03-18 10:25 UTC (permalink / raw)
  To: binutils

Hi Guys,

  I am applying the patch below to fix a small problem when building the
  bfd/vms-lib.c file for a 32-bit host.  The bfd_iovec structure's
  bmmap function pointer uses the size_t type rather than bfd_size_type.
  This is a problem for 32-bit targets since those two types differ in
  size.  This discrepancy caused a compile time error when building
  vms-lib.c for a 32-bit host, and so I am applying the patch to fix the
  issue.

Cheers
  Nick

diff --git a/MAINTAINERS b/MAINTAINERS
index 5af80329deb..3dd33522734 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -53,7 +53,7 @@ include/
 	See also binutils/, gdb/, sid/, gcc/, libiberty/ etc.
 
 intl/; config.rhost; libiberty/; libiberty's part of include/;
-compile; depcomp; install-sh; missing; ylwrap; config/
+compile; depcomp; install-sh; missing; ylwrap; config/; libbacktrace
 	gcc: http://gcc.gnu.org
 	Changes need to be done in tandem with the official GCC
 	sources or submitted to the master file maintainer and brought
diff --git a/bfd/vms-lib.c b/bfd/vms-lib.c
index 592a57fbe68..c51476ac441 100644
--- a/bfd/vms-lib.c
+++ b/bfd/vms-lib.c
@@ -1270,12 +1270,12 @@ vms_lib_bstat (struct bfd *abfd ATTRIBUTE_UNUSED,
 static void *
 vms_lib_bmmap (struct bfd *abfd ATTRIBUTE_UNUSED,
 	       void *addr ATTRIBUTE_UNUSED,
-	       bfd_size_type len ATTRIBUTE_UNUSED,
+	       size_t len ATTRIBUTE_UNUSED,
 	       int prot ATTRIBUTE_UNUSED,
 	       int flags ATTRIBUTE_UNUSED,
 	       file_ptr offset ATTRIBUTE_UNUSED,
 	       void **map_addr ATTRIBUTE_UNUSED,
-	       bfd_size_type *map_len ATTRIBUTE_UNUSED)
+	       size_t *map_len ATTRIBUTE_UNUSED)
 {
   return MAP_FAILED;
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-18 10:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-18 10:25 Commit: Fix compiling vms-lib.c for 32-bit host Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).