aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-05-20 13:49:10 -0700
committerH.J. Lu <hjl.tools@gmail.com>2024-05-20 19:35:25 -0700
commit4b30c644d24c07c06b587cb46f2e50adc2c3c3f0 (patch)
tree55a569bf795d6980b53eaf60286cf50a33862e57
parent8428278b5f5cee21811339017ca09cccc8c751f7 (diff)
downloadglibc-4b30c644d24c07c06b587cb46f2e50adc2c3c3f0.zip
glibc-4b30c644d24c07c06b587cb46f2e50adc2c3c3f0.tar.gz
glibc-4b30c644d24c07c06b587cb46f2e50adc2c3c3f0.tar.bz2
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>
-rw-r--r--resolv/res_debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/resolv/res_debug.c b/resolv/res_debug.c
index dab5283..1b1f523 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);