public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: H.J. Lu <hjl@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] Change _IO_stderr_/_IO_stdin_/_IO_stdout to compat symbols [BZ #31766] Date: Tue, 21 May 2024 17:12:40 +0000 (GMT) [thread overview] Message-ID: <20240521171240.B9A173858C66@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=85472c20a55ea2a49a7fbdf71652b4009118b0ae commit 85472c20a55ea2a49a7fbdf71652b4009118b0ae Author: H.J. Lu <hjl.tools@gmail.com> Date: Mon May 20 19:30:58 2024 -0700 Change _IO_stderr_/_IO_stdin_/_IO_stdout to compat symbols [BZ #31766] 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> Diff: --- libio/oldstdfiles.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libio/oldstdfiles.c b/libio/oldstdfiles.c index 30581dfad4..a6a908a248 100644 --- a/libio/oldstdfiles.c +++ b/libio/oldstdfiles.c @@ -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>
reply other threads:[~2024-05-21 17:12 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240521171240.B9A173858C66@sourceware.org \ --to=hjl@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).