From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114223 invoked by alias); 3 Jan 2019 12:52:38 -0000 Mailing-List: contact libc-stable-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: List-Archive: Sender: libc-stable-owner@sourceware.org Received: (qmail 114203 invoked by uid 89); 3 Jan 2019 12:52:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.1 required=5.0 tests=BAYES_00,GIT_PATCH_2,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=und, H*UA:16.0, H*x:16.0, UD:pl X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,GIT_PATCH_2,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: smtpo53.poczta.onet.pl Received: from smtpo62.poczta.onet.pl (HELO smtpo53.poczta.onet.pl) (141.105.16.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 03 Jan 2019 12:52:35 +0000 Received: from DESKTOPRJ21ONS (unknown [94.75.102.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marekzmyslowski@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 43VnrD5Fxcz1XxnMd for ; Thu, 3 Jan 2019 13:52:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1546519948; bh=Arox4qUdB5Zf8esPkgrGITi7RimpYJfNq+jxGQ+vPI8=; h=From:To:Subject:Date:From; b=a6xZ72RvjeNaoRHnE/rMDozQnr7HKb3S6WNKtcKSXT8WvR+JRmfbFKRAULocDHvZA LFrJ4FhE/n2RWbPJXCDbMA1UEXEmhwRRIANLSeTjHUXxgPyElcLdhv6JTdmQtUWMm7 9ZWbaY0sAqtlwM/dCv45+yspk8HDt+B7XO9pcsBA= From: To: Subject: Compile GLIBC without AVX support Date: Tue, 01 Jan 2019 00:00:00 -0000 Message-ID: <001b01d4a363$2fa4db50$8eee91f0$@poczta.onet.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdSjYysFGJofqCvwQK+KTU3edIfFOg== Content-Language: en-us X-ONET_PL-MDA-SEGREGATION: 0 X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00008.txt.bz2 Hi, I'm trying to compile the glibc 2.28 version without AVX support. However, whatever option I used, AVX files are still compiled and used.=20 I need this to use gdb record/replay tool. Here is the configure command I used: ../configure --enable-mathvec=3Dno --prefix=3D/work/bin libc_cv_asm_avx512= =3Dno libc_cv_asm_avx512dq=3Dno libc_cv_cc_avx512=3Dno=A0 libc_cv_cc_sse2avx=3Dno --disable-avx2=A0 --disable-avx512 --disable-avx-128-fma After make the result is following: root@d93e9cc876c3:/work/glibc/build# readelf -Ws libc.so | grep avx =A0 1194: 0000000000000000=A0=A0=A0=A0 0 FILE=A0=A0=A0 LOCAL=A0 DEFAULT=A0 = ABS strcasecmp_l-avx.os =A0 1198: 0000000000000000 =A0=A0=A0=A00 FILE=A0=A0=A0 LOCAL=A0 DEFAULT=A0 = ABS strncase_l-avx.os =A0 3257: 0000000000159070=A0=A0 337 FUNC=A0=A0=A0 LOCAL=A0 DEFAULT=A0=A0 13 __memset_avx512_unaligned_erms =A0 3272: 0000000000158a40=A0=A0=A0=A0 9 FUNC=A0=A0=A0 LOCAL=A0 DEFAULT=A0= =A0 13 __mempcpy_chk_avx512_unaligned =A0 3276: 000000000014f1d0=A0 1288 FUNC=A0=A0=A0 LOCAL=A0 DEFAULT=A0=A0 13 = __strncmp_avx2 =2E ---------------------------------------------------------------------------- ------------------------------------------------------------- root@d93e9cc876c3:/work/glibc/build# readelf -Ws libc.a | grep avx readelf: Warning: unable to apply unsupported reloc type 21 to section .debug_info =A0=A0=A0 15: 0000000000000000=A0=A0=A0=A0 0 NOTYPE=A0 GLOBAL HIDDEN=A0=A0 = UND __strchr_avx2 =A0=A0=A0 15: 0000000000000000=A0=A0=A0=A0 0 NOTYPE=A0 GLOBAL HIDDEN=A0=A0 = UND __strcmp_avx2 =A0=A0=A0 15: 0000000000000000=A0=A0=A0=A0 0 NOTYPE=A0 GLOBAL HIDDEN=A0=A0 = UND __strlen_avx2 =A0=A0=A0 15: 0000000000000000=A0=A0=A0=A0 0 NOTYPE=A0 GLOBAL HIDDEN=A0=A0 = UND __strnlen_avx2 =A0=A0=A0 15: 0000000000000000=A0=A0=A0=A0 0 NOTYPE=A0 GLOBAL HIDDEN=A0=A0 = UND __strncmp_avx2 =A0=A0=A0 15: 0000000000000000=A0=A0=A0=A0 0 NOTYPE=A0 GLOBAL HIDDEN=A0=A0 = UND __strrchr_avx2 =A0=A0=A0 15: 0000000000000000=A0=A0=A0=A0 0 NOTYPE=A0 GLOBAL HIDDEN=A0=A0 = UND __memchr_avx2 =2E =A0=A0=A0 25: 0000000000000000=A0=A0=A0=A0 0 NOTYPE=A0 GLOBAL HIDDEN=A0=A0 = UND __memcpy_avx_unaligned =A0=A0=A0 15: 0000000000000000=A0=A0=A0=A0 0 NOTYPE=A0 GLOBAL HIDDEN=A0=A0 = UND __rawmemchr_avx2 =A0=A0=A0 15: 0000000000000000=A0=A0=A0=A0 0 NOTYPE=A0 GLOBAL HIDDEN=A0=A0 = UND __strchrnul_avx2 =A0=A0=A0 15: 0000000000000000=A0=A0=A0=A0 0 NOTYPE=A0 GLOBAL HIDDEN=A0=A0 = UND __memrchr_avx2 File: libc.a(strcmp-avx2.o) =A0=A0=A0 12: 0000000000000000=A0 1087 FUNC=A0=A0=A0 GLOBAL DEFAULT=A0=A0= =A0 4 __strcmp_avx2 File: libc.a(strncmp-avx2.o) =A0=A0=A0 12: 0000000000000000=A0 1288 FUNC=A0=A0=A0 GLOBAL DEFAULT=A0=A0= =A0 4 __strncmp_avx2 File: libc.a(memchr-avx2.o) =A0=A0=A0 12: 0000000000000000=A0=A0 717 FUNC=A0=A0=A0 GLOBAL DEFAULT=A0=A0= =A0 4 __memchr_avx2 File: libc.a(rawmemchr-avx2.o) =A0=A0=A0 12: 0000000000000000=A0=A0 317 FUNC=A0=A0=A0 GLOBAL DEFAULT=A0=A0= =A0 4 __rawmemchr_avx2 =2E Later, when I build test app : xxx:/work/example$ gcc -nodefaultlibs -g test.c=A0 -O0 -o test -static /work/glibc/build/libc.a -lgcc -lgcc_eh /work/glibc/build/libc.a xxx:/work/example$ readelf -Ws test | grep avx =A0=A0 875: 000000000042a4c0=A0 1851 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memcpy_avx512_no_vzeroupper =A0=A0 897: 00000000004325e0=A0=A0 548 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __strchr_avx2 =A0=A0 908: 000000000042a4b0=A0=A0=A0=A0 9 FUNC=A0=A0=A0 GLOBAL DEFAULT=A0= =A0=A0 6 __memcpy_chk_avx512_no_vzeroupper =A0=A0 929: 0000000000439fa0=A0=A0=A0 19 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0= =A0=A0 6 __memset_avx512_erms =A0=A0 946: 000000000041def0=A0=A0 980 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memcmp_avx2_movbe =A0=A0 965: 000000000041d9b0=A0=A0 317 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __rawmemchr_avx2 =A0=A0 971: 000000000042a4c0=A0 1851 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memmove_avx512_no_vzeroupper =A0 1084: 0000000000418ed0=A0 1087 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0=A0 = 6 __strcmp_avx2 =A0 1104: 0000000000430b50=A0 5718 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0=A0 6 __strcasecmp_l_avx =A0 1107: 0000000000460240=A0=A0 418 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __wcslen_avx2 =A0 1117: 0000000000432810=A0=A0 493 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __strchrnul_avx2 =A0 1198: 00000000004392d0=A0=A0=A0=A0 8 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0= =A0=A0 6 __mempcpy_avx_unaligned =A0 1259: 00000000004603f0=A0=A0 834 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __wcsnlen_avx2 =A0 1271: 000000000041d2a0=A0 1288 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0=A0 = 6 __strncmp_avx2 =A0 1275: 0000000000439e30=A0=A0 267 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memset_avx2_unaligned_erms =A0 1312: 0000000000439760=A0 1244 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0=A0 6 __memmove_avx512_unaligned_erms =A0 1315: 0000000000439710=A0=A0=A0 58 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memmove_avx512_unaligned =A0 1349: 0000000000439dc0=A0=A0=A0 18 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __wmemset_avx2_unaligned =A0 1364: 000000000046a4d0 =A01139 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0=A0 6 _dl_runtime_profile_avx512 =A0 1398: 0000000000439760=A0 1244 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0=A0 6 __memcpy_avx512_unaligned_erms =A0 1427: 000000000042a4b0=A0=A0=A0=A0 9 FUNC=A0=A0=A0 GLOBAL DEFAULT=A0=A0= =A0 6 __memmove_chk_avx512_no_vzeroupper =A0 1476: 00000000004392e0=A0=A0=A0 47 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memcpy_avx_unaligned =A0 1498: 0000000000439e10=A0=A0=A0 19 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memset_avx2_erms =A0 1510: 0000000000439de0=A0=A0=A0 42 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memset_avx2_unaligned =A0 1526: 000000000042a490=A0=A0=A0=A0 9 FUNC=A0=A0=A0 GLOBAL DEFAULT=A0=A0= =A0 6 __mempcpy_chk_avx512_no_vzeroupper =A0 1544: 0000000000439f60=A0=A0=A0 55 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memset_avx512_unaligned =A0 1546: 0000000000432ba0=A0=A0 398 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __strlen_avx2 =A0 1577: 000000000042a4a0=A0=A0=A0=A0 8 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0= =A0=A0 6 __mempcpy_avx512_no_vzeroupper =A0 1595: 0000000000439700=A0=A0=A0=A0 8 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0= =A0=A0 6 __mempcpy_avx512_unaligned =A0 1598: 0000000000439310=A0=A0=A0=A0 8 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0= =A0=A0 6 __mempcpy_avx_unaligned_erms =A0 1629: 0000000000439750=A0=A0=A0=A0 8 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0= =A0=A0 6 __mempcpy_avx512_unaligned_erms =A0 1645: 00000000004392e0=A0=A0=A0 47 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memmove_avx_unaligned =A0 1682: 0000000000438ca0=A0=A0=A0=A0 9 FUNC=A0=A0=A0 GLOBAL DEFAULT=A0=A0= =A0 6 __memset_chk_avx512_no_vzeroupper =A0 1688: 000000000046a950=A0 1141 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0=A0 6 _dl_runtime_profile_avx =A0 1759: 0000000000439fc0=A0=A0 337 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memset_avx512_unaligned_erms =A0 1770: 000000000045e900=A0=A0 717 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memchr_avx2 =A0 1779: 000000000045f2b0=A0=A0 798 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __strnlen_avx2 =A0 1855: 0000000000439f40=A0=A0=A0 24 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __wmemset_avx512_unaligned =A0 1858: 0000000000439320=A0=A0 980 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memcpy_avx_unaligned_erms =A0 1864: 0000000000430b40=A0=A0=A0 16 FUNC=A0=A0=A0 GLOBAL DEFAULT=A0=A0= =A0 6 __strcasecmp_avx =A0 1884: 0000000000439710=A0=A0=A0 58 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memcpy_avx512_unaligned =A0 1891: 000000000045eec0=A0=A0 454 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __strrchr_avx2 =A0 1957: 0000000000439320=A0=A0 980 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memmove_avx_unaligned_erms =A0 1978: 0000000000438cb0=A0=A0 624 FUNC=A0=A0=A0 GLOBAL HIDDEN=A0=A0=A0= =A0 6 __memset_avx512_no_vzeroupper Regards Marek Zmys=B3owski