]> sourceware.org Git - glibc.git/commitdiff
Change _IO_stderr_/_IO_stdin_/_IO_stdout to compat symbols [BZ #31766]
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 21 May 2024 02:30:58 +0000 (19:30 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 21 May 2024 17:12:25 +0000 (10:12 -0700)
Since Glibc never provides symbol binary compatibility for relocatable
files, fix BZ #31766 by changing _IO_stderr_/_IO_stdin_/_IO_stdout to
compat symbols.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sunil K Pandey <skpgkp2@gmail.com>
libio/oldstdfiles.c

index 30581dfad474cf8e8e8d4c35e8c21a31bf697673..a6a908a2489839289269da933915674da12d6775 100644 (file)
@@ -48,6 +48,10 @@ DEF_STDFILE(_IO_stdin_, 0, 0, _IO_NO_WRITES);
 DEF_STDFILE(_IO_stdout_, 1, &_IO_stdin_, _IO_NO_READS);
 DEF_STDFILE(_IO_stderr_, 2, &_IO_stdout_, _IO_NO_READS+_IO_UNBUFFERED);
 
+compat_symbol (libc, _IO_stdin_, _IO_stdin_, GLIBC_2_0);
+compat_symbol (libc, _IO_stdout_, _IO_stdout_, GLIBC_2_0);
+compat_symbol (libc, _IO_stderr_, _IO_stderr_, GLIBC_2_0);
+
 #if defined __GNUC__ && __GNUC__ >= 2
 
 #include <stdio.h>
This page took 0.046228 seconds and 5 git commands to generate.