This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: preprocessor macro to identify binutils version?

On Fri, 2013-08-02 at 12:42 -0700, Burlen Loring wrote:
> On 08/02/2013 11:46 AM, Andrew Pinski wrote:
> > Won't it be better to use libdwarf and not use bfd?
> > BFD is not designed to be used outside of binutils/gdb.  Any use
> > outside of it I consider it a bug.
> That's fairly discouraging news. I was not aware of the intention to 
> keep libbfd use internal to binutils/gdb. I will look into porting to 
> libdwarf.  However, if there's a reliable way to identify binutils 
> versions it would be helpful. I'd like to make use of this code during 
> the port.

The problem with using libbfd outside of binutils/gdb, is that by
design, the libbfd API is not fixed and can change from release
to release, even day by day.  That means your use of libbfd
would have to track those changes.  Either that, or do as some
OSS projects do, and import a copy of the libbfd source into your
project... with the requisite issues with OSS licenses etc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]