From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) by sourceware.org (Postfix) with ESMTPS id 67BB6385F022 for ; Tue, 17 Mar 2020 08:35:52 +0000 (GMT) Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1jE7hW-0000IN-7L; Tue, 17 Mar 2020 08:35:50 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1jE7g7-0000NK-3I; Tue, 17 Mar 2020 09:34:23 +0100 From: Florian Weimer To: Lukasz Majewski Cc: libc-help@sourceware.org, Joseph Myers Subject: Re: Question regarding __clock_gettime symbol visibility across glibc build References: <20200317084724.6df11fb1@jawa> Date: Tue, 17 Mar 2020 09:34:23 +0100 In-Reply-To: <20200317084724.6df11fb1@jawa> (Lukasz Majewski's message of "Tue, 17 Mar 2020 08:47:24 +0100") Message-ID: <87fte7fkhc.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=0.0 required=5.0 tests=KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2020 08:35:53 -0000 * Lukasz Majewski: > However, I've checked how it looks on the installed glibc: > root@y2038arm:/opt# nm /opt/lib/libc.so.6 | grep clock_gettime > > 000702bc t __GI___clock_gettime > 00070264 t __GI___clock_gettime64 > 000702bc T __clock_gettime > 00070264 T __clock_gettime64 > 000702bc t __clock_gettime_2 > 000702bc T clock_gettime@@GLIBC_2.17 > 000702bc T clock_gettime@GLIBC_2.4 > > In the installed glibc the __clock_gettime64 is an external symbol. All exported glibc symbols are versioned. Chances are that nm does not look at the dynamic symbol table at all, so its output is misleading. I usually use eu-readelf --symbols=.dynsym instead.