From d506c657a9ce952275bca1b5fb3854282561cfe0 Mon Sep 17 00:00:00 2001 From: Janne Peltonen Date: Thu, 22 Aug 2024 08:40:34 +0300 Subject: [PATCH] build: ignore x86_32 PIC related globals in check_globals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make the check_globals script of make check allow .*get_pc_thunk.* symbols that are used in PIC code in 32-bit x86. Signed-off-by: Janne Peltonen Reviewed-by: Jere Leppänen --- helper/Makefile.am | 2 +- platform/linux-generic/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/Makefile.am b/helper/Makefile.am index a732509df5..a44d7c9582 100644 --- a/helper/Makefile.am +++ b/helper/Makefile.am @@ -72,7 +72,7 @@ __LIB__libodphelper_la_LIBADD += $(LIBCLI_LIBS) lib_LTLIBRARIES = $(LIB)/libodphelper.la -CHECK_GLOBALS_REGEX = " (odph_|_deprecated_odph_|__odr_asan)" +CHECK_GLOBALS_REGEX = " (odph_|_deprecated_odph_|__odr_asan|__.*get_pc_thunk.*)" TESTS_ENVIRONMENT = \ LIBTOOL="$(LIBTOOL)" \ diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index d1d4828490..29ad1700db 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -492,7 +492,7 @@ if ODP_PKTIO_PCAP __LIB__libodp_linux_la_LIBADD += $(PCAP_LIBS) endif -CHECK_GLOBALS_REGEX = " (odp_|_odp_|_deprecated_odp_|miniz_|mz_|tdefl_|tinfl_|mp_hdlr_init_odp_pool_ops|__odr_asan)" +CHECK_GLOBALS_REGEX = " (odp_|_odp_|_deprecated_odp_|miniz_|mz_|tdefl_|tinfl_|mp_hdlr_init_odp_pool_ops|__odr_asan|__.*get_pc_thunk.*)" TESTS_ENVIRONMENT = \ LIBTOOL="$(LIBTOOL)" \