From: H.J. Lu Date: Mon, 20 May 2024 20:49:10 +0000 (-0700) Subject: resolv: Make _res_opcodes a compat symbol [BZ #31764] X-Git-Tag: glibc-2.40~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b30c644d24c07c06b587cb46f2e50adc2c3c3f0;p=thirdparty%2Fglibc.git 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 Reviewed-by: Sunil K Pandey --- 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);