public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] resolv: Make _res_opcodes a compat symbol [BZ #31764]
@ 2024-05-21  2:35 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2024-05-21  2:35 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4b30c644d24c07c06b587cb46f2e50adc2c3c3f0

commit 4b30c644d24c07c06b587cb46f2e50adc2c3c3f0
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon May 20 13:49:10 2024 -0700

    resolv: Make _res_opcodes a compat symbol [BZ #31764]
    
    _res_opcodes was exported by accident as a variable.  Fix BZ #31764 by
    making _res_opcodes a compat symbol.
    
    Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
    Reviewed-by: Sunil K Pandey <skpgkp2@gmail.com>

Diff:
---
 resolv/res_debug.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/resolv/res_debug.c b/resolv/res_debug.c
index dab5283bbf..1b1f5233f9 100644
--- a/resolv/res_debug.c
+++ b/resolv/res_debug.c
@@ -141,6 +141,7 @@ static const char res_opcodes[][9] =
   };
 #if SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_26)
 strong_alias (res_opcodes, _res_opcodes)
+compat_symbol (libresolv, _res_opcodes, _res_opcodes, GLIBC_2_0);
 #endif
 
 static const char *p_section(int section, int opcode);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-21  2:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-21  2:35 [glibc] resolv: Make _res_opcodes a compat symbol [BZ #31764] H.J. Lu

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).