From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27543 invoked by alias); 5 Aug 2002 22:11:56 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 27527 invoked from network); 5 Aug 2002 22:11:56 -0000 Received: from unknown (HELO perdition.linnaean.org) (66.31.43.253) by sources.redhat.com with SMTP; 5 Aug 2002 22:11:56 -0000 Received: by perdition.linnaean.org (Postfix, from userid 5281) id C64591BA1B; Mon, 5 Aug 2002 18:11:55 -0400 (EDT) From: Roland McGrath MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Jakub Jelinek Cc: Ulrich Drepper , Glibc hackers Subject: Re: [PATCH] Nuke another 21 .plt slots In-Reply-To: Jakub Jelinek's message of Mon, 5 August 2002 23:54:31 +0200 <20020805235431.N20867@sunsite.ms.mff.cuni.cz> X-Windows: it could be worse, but it'll take time. Message-Id: <20020805221155.C64591BA1B@perdition.linnaean.org> Date: Mon, 05 Aug 2002 15:11:00 -0000 X-SW-Source: 2002-08/txt/msg00079.txt.bz2 Thanks! I put those in. However, my PLT count does not match yours. I get 169 in a build with TLS support, and I think that is only one more than without TLS. I have been counting using this script (it gives a list of symbols; pipe it to wc -l), which counts only PLT slots for symbols defined in libc itself, and omits the malloc functions that are explicit exceptions. That count is now 121. #!/bin/sh goodones='__libc_free __libc_malloc __libc_memalign __libc_realloc free calloc malloc realloc' readelf -rW libc.so | awk '/JUMP_SLOT/ && $4 != "00000000" { print $5 }' | fgrep -vx "$goodones" | sort