]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
build error with 32-bit host and 64-bit time_t
authorAlan Modra <amodra@gmail.com>
Fri, 18 Apr 2025 09:01:30 +0000 (18:31 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 18 Apr 2025 09:06:39 +0000 (18:36 +0930)
A fix for commit c4fce3ef2927.

ld/ldmain.c

index 716272b02abb58e329419893b715eb87d9870a72..67c60c3f80d733f47342913d22d2dd47987e0194 100644 (file)
@@ -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");
     }