aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2025-04-18 18:31:30 +0930
committerAlan Modra <amodra@gmail.com>2025-04-18 18:36:39 +0930
commit14138ca4d4be7450c22083a9dcd2a66a60d9de23 (patch)
tree0049e115bf996b2e2f281446911b209643e4c9ca
parentf04146a96be59b603ca36eac0bb4f244bc29c7af (diff)
downloadbinutils-14138ca4d4be7450c22083a9dcd2a66a60d9de23.zip
binutils-14138ca4d4be7450c22083a9dcd2a66a60d9de23.tar.gz
binutils-14138ca4d4be7450c22083a9dcd2a66a60d9de23.tar.bz2
build error with 32-bit host and 64-bit time_t
A fix for commit c4fce3ef2927.
-rw-r--r--ld/ldmain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 716272b..67c60c3 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -563,8 +563,8 @@ report_phases (FILE * file, time_t * start, char ** argv)
COLUMN_ENTRY (pd->duration, "ld", 1);
#if defined (HAVE_GETRUSAGE)
COLUMN_ENTRY (pd->use.ru_maxrss, "ld", 2);
- COLUMN_ENTRY (pd->use.ru_utime.tv_sec, "ld", 3);
- COLUMN_ENTRY (pd->use.ru_stime.tv_sec, "ld", 4);
+ COLUMN_ENTRY ((int64_t) pd->use.ru_utime.tv_sec, PRId64, 3);
+ COLUMN_ENTRY ((int64_t) pd->use.ru_stime.tv_sec, PRId64, 4);
#endif
fprintf (file, "\n");
}