This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: libctf linking against different libbfd builds, but using the same soname
- From: Alan Modra <amodra at gmail dot com>
- To: Nick Alcock <nick dot alcock at oracle dot com>
- Cc: Matthias Klose <doko at ubuntu dot com>, binutils <binutils at sourceware dot org>
- Date: Sat, 23 Nov 2019 08:03:40 +1030
- Subject: Re: libctf linking against different libbfd builds, but using the same soname
- References: <476c20f0-89fb-169a-0a87-e9361390df20@ubuntu.com> <87imnb94k7.fsf@esperi.org.uk>
On Fri, Nov 22, 2019 at 05:58:00PM +0000, Nick Alcock wrote:
> The only thing we use libbfd for in libctf is to read .ctf sections out
> of BFD-readable objects, and tie them up with likely-relevant string and
> symbol tables in the enclosing object. As long as the native BFD can
> read the relevant objects, nothing bad would happen if you used the
> native one rather than the cross one.
The thing to keep in mind is that we make no promise to keep the
libbfd ABI stable from one day to the next. It's also quite easy to
break compatibility between builds using the same source, just by
configuring a little differently, although BFD_INIT_MAGIC helps with
that.
--
Alan Modra
Australia Development Lab, IBM