This is the mail archive of the binutils@sourceware.org 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: [PATCH] Move 'enum bfd_endian' to a non-generated header


On 18 Feb 2016 15:15, Pedro Alves wrote:
> On 02/18/2016 02:59 PM, Nick Clifton wrote:
> >   Also - why create a new header file ?  Why not just add it to bfdlink.h ?
> > 
> 
> Unfortunately that wouldn't work, because bfdlink.h depends on types that
> depend on bfd being configured.  E.g., bfd_vma.

since bfd.h is already a generated header from multiple inputs, why not
create a new bfd-in-plain.h (or whatever) file that also gets gathered ?
then code in-tree can include that directly and out of tree users do not
need to change anything.

> >   (New header files are a pain for toolchain releases and distribution 
> >   packagers).

this is significant.  off the top of my head, there's a few places in
Gentoo i'd have to adjust, and do so dynamically (since we support old
versions too).
-mike

Attachment: signature.asc
Description: Digital signature


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