]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix disabling of year 2038 support on 32-bit hosts by default
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 2 Feb 2024 23:40:25 +0000 (20:40 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Mon, 5 Feb 2024 18:28:05 +0000 (15:28 -0300)
Commit e5f2f7d901ee ("Disable year 2038 support on 32-bit hosts by
default") fixed a mismatch between 64-bit time_t in GDB and system headers
and 32-bit time_t in BFD.

However, since commit 862776f26a59 ("Finalized intl-update patches")
gnulib's year 2038 support has been accidentally re-enabled — causing
problems for 32-bit hosts again.  The commit split baseargs into
{h,b}baseargs, but this hasn't been done for the code that handles
--disable-year2038.

This patch restores the intended behaviour.  With this change, the number
of unexpected core files goes from 18 to 4.

Tested on armv8l-linux-gnueabihf.

Approved-By: Luis Machado <luis.machado@arm.com>
configure
configure.ac

index 670684d83d15abb40308a776cf84901023dc7be4..6466b97f3ec02d2585577de88bac94c9f408dc5f 100755 (executable)
--- a/configure
+++ b/configure
@@ -10313,7 +10313,8 @@ hbaseargs="$hbaseargs --disable-option-checking"
 tbaseargs="$tbaseargs --disable-option-checking"
 
 if test "$enable_year2038" = no; then
-  baseargs="$baseargs --disable-year2038"
+  bbaseargs="$bbaseargs --disable-year2038"
+  hbaseargs="$hbaseargs --disable-year2038"
   tbaseargs="$tbaseargs --disable-year2038"
 fi
 
index 88b4800e298f99aa066f4b7b87ecb5d92aeace3d..1300a805fd8de002e011188f401c583b4db809b3 100644 (file)
@@ -3432,7 +3432,8 @@ hbaseargs="$hbaseargs --disable-option-checking"
 tbaseargs="$tbaseargs --disable-option-checking"
 
 if test "$enable_year2038" = no; then
-  baseargs="$baseargs --disable-year2038"
+  bbaseargs="$bbaseargs --disable-year2038"
+  hbaseargs="$hbaseargs --disable-year2038"
   tbaseargs="$tbaseargs --disable-year2038"
 fi