From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11973 invoked by alias); 31 Aug 2006 15:56:53 -0000 Received: (qmail 11957 invoked by uid 22791); 31 Aug 2006 15:56:53 -0000 X-Spam-Check-By: sourceware.org Received: from e1.ny.us.ibm.com (HELO e1.ny.us.ibm.com) (32.97.182.141) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 31 Aug 2006 15:56:48 +0000 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e1.ny.us.ibm.com (8.13.8/8.12.11) with ESMTP id k7VFukon006584 for ; Thu, 31 Aug 2006 11:56:46 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay02.pok.ibm.com (8.13.6/8.13.6/NCO v8.1.1) with ESMTP id k7VFuk5g273384 for ; Thu, 31 Aug 2006 11:56:46 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k7VFuj3p000419 for ; Thu, 31 Aug 2006 11:56:45 -0400 Received: from d27mc103.rchland.ibm.com (d27mc103.rchland.ibm.com [9.10.229.52]) by d01av03.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k7VFujjj000407; Thu, 31 Aug 2006 11:56:45 -0400 In-Reply-To: <20060831153800.GQ4556@sunsite.mff.cuni.cz> Subject: Re: [PATCH] Fix tst-addr1 on ppc64 and ia64 To: Jakub Jelinek Cc: Ulrich Drepper , Glibc hackers , libc-hacker-owner@sourceware.org X-Mailer: Lotus Notes Release 7.0 HF144 February 01, 2006 Message-ID: From: Steve Munroe Date: Thu, 31 Aug 2006 15:56:00 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00038.txt.bz2 Jakub Jelinek wrote on 08/31/2006 10:38:00 AM: > Hi! > > On ppc64 and ia64 &printf is put into GOT, so the SHN_UNDEF printf > symbol has zero st_value and thus dladdr (&printf, ...) returns > a symbol in libc.so. But, unfortunately, in libc.so _IO_printf > is an alias to printf, both are global symbols and have the same > address and size. Which one comes first in the hash table depends > on the linker. > Thanks I have been scratching my head over that one :) Steven J. Munroe