elftoolchain update?
Will Andrews
will at firepipe.net
Fri Sep 26 17:32:23 UTC 2014
Hi,
I've created a git-svn clone of the current elftoolchain, and applied
some fixes in a branch:
https://github.com/wca/elftoolchain/tree/freebsd
Any objections if I update the copy in head using this branch? I've
heard nothing from either Kai or Joseph.
I'm not done testing yet -- it looks like there are some more bugfixes
needed to get ctfconvert to at least run against C++ object files
without bailing. Just wanted to know if there are any specific
concerns that people might have.
A related review involves an update for the ELF headers:
https://reviews.freebsd.org/D844
I haven't finished testing this either (need to do an universe build
to check for conflicts), but my goal here is to achieve header parity
with <elfdefinitions.h> from elftoolchain, which is largely duplicate.
The elftoolchain header exports many more symbols that are used by its
userland programs. This would include arch-specific interpretations
of some ELF structures. I believe it's appropriate to export these on
a global basis, given that userland programs can legitimately be run
on object files built for architectures other than the system they're
running on.
Thanks!
--Will.
On Wed, Sep 17, 2014 at 5:01 PM, Will Andrews <will at freebsd.org> wrote:
> Hi,
>
> I see there have been a lot of updates & fixes to elftoolchain since
> the last import into FreeBSD/head nearly 8 months ago. Are there any
> plans to update the import?
>
> I'm asking because it appears that ctfconvert currently crashes
> (specifically, due to a bug in dwarf_attrval_unsigned()), if you try
> to use it on C++ object files.
>
> This is easily demonstrated by applying this patch to FreeBSD/head and
> building sbin/devd with WITH_CTF=1:
> http://people.freebsd.org/~will/add-ctfconvert-to-cpp-object-files.diff
>
> Justin Gibbs (cc'd) posted about this issue in February, and it's
> still a problem:
> http://lists.freebsd.org/pipermail/freebsd-toolchain/2014-February/001121.html
>
> Thanks,
> --Will.
More information about the freebsd-toolchain
mailing list