From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23282 invoked by alias); 8 Feb 2010 17:01:06 -0000 Received: (qmail 23183 invoked by uid 22791); 8 Feb 2010 17:01:05 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.digium.com (HELO mail.digium.com) (216.207.245.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Feb 2010 17:01:01 +0000 Received: from zimbra.digium.internal ([10.24.55.203] helo=zimbra.hsv.digium.com) by mail.digium.com with esmtp (Exim 4.69) (envelope-from ) id 1NeWyo-0000ON-TT for binutils@sourceware.org; Mon, 08 Feb 2010 11:00:58 -0600 Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.hsv.digium.com (Postfix) with ESMTP id D965CD8024 for ; Mon, 8 Feb 2010 11:00:58 -0600 (CST) Received: from zimbra.hsv.digium.com ([127.0.0.1]) by localhost (zimbra.hsv.digium.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ulAyEszLrGf0 for ; Mon, 8 Feb 2010 11:00:58 -0600 (CST) Received: from [10.24.250.46] (unknown [10.24.250.46]) by zimbra.hsv.digium.com (Postfix) with ESMTPSA id 97F6DD8023 for ; Mon, 8 Feb 2010 11:00:58 -0600 (CST) Message-ID: <4B70434A.5090904@digium.com> Date: Mon, 08 Feb 2010 17:01:00 -0000 From: "Kevin P. Fleming" User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Binutils Subject: Odd behavior with symbol naming mismatch between x86 and bfin platforms using version scripts OpenPGP: id=05FB8DB2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00125.txt.bz2 One of our developers is running into an issue with version scripts not seeing symbols with the same naming scheme when code is built using GCC on an x86 platform vs. using the Blackfin tools (versions listed below). The attached files demonstrate the problem; when run as: $ CC=cc CFLAG="-fPIC" ./mk everything works as expected. when run as: $ CC=bfin-linux-uclibc-gcc CFLAG="-mfdpic " ./mk the test fails, because the 'testcallback' function appears in the dynamic symbol table as '_testcallback', and this the version script causes it to be filtered out. For x86 builds, we are using: > gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1 > GNU ld (GNU Binutils for Ubuntu) 2.20 For Blackfin builds: > bfin-linux-uclibc-gcc (ADI/svn-3473) 4.3.3 > GNU ld version 2.17 Is this a compiler bug, or a linker bug, or expected behavior? -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kpfleming@digium.com Check us out at www.digium.com & www.asterisk.org