From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 2 17:52:38 2013 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B259A9B9; Sat, 2 Mar 2013 17:52:38 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9978F9FF; Sat, 2 Mar 2013 17:52:37 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA21821; Sat, 02 Mar 2013 19:52:36 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1UBqbr-000Avp-KX; Sat, 02 Mar 2013 19:52:35 +0200 Message-ID: <51323C62.4040506@FreeBSD.org> Date: Sat, 02 Mar 2013 19:52:34 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130220 Thunderbird/17.0.3 MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org Subject: Re: clang generated code sometimes confuses fbt References: <5132387E.8010808@FreeBSD.org> In-Reply-To: <5132387E.8010808@FreeBSD.org> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=x-viet-vps Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2013 17:52:38 -0000 on 02/03/2013 19:35 Andriy Gapon said the following: > Now, I am not quite sure why ctfconvert skips bpobj_iterate_impl in the > clang-generated code. Seems like some sort of a bug in ctfconvert. It seems that gcc and clang put different names for symbol of type FILE: clang: readelf -a -W /usr/obj/usr/src/sys/TRANT/bpobj.o| fgrep -w FILE 1: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/bpobj.c gcc: readelf -a -W /usr/obj/usr/src/sys/ODYSSEY/bpobj.o| fgrep -w FILE 1: 0000000000000000 0 FILE LOCAL DEFAULT ABS bpobj.c ctfconvert seems to compare this value with "bpobj.c" and so in the clang case it doesn't recognize the static symbols. Does my analysis seem reasonable? -- Andriy Gapon