Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Mar 2013 19:52:34 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        freebsd-hackers@FreeBSD.org
Subject:   Re: clang generated code sometimes confuses fbt
Message-ID:  <51323C62.4040506@FreeBSD.org>
In-Reply-To: <5132387E.8010808@FreeBSD.org>
References:  <5132387E.8010808@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51323C62.4040506>