[PATCH] GDB: Fix detection of ELF support when configuring with -Werror
Nick Clifton
nickc@redhat.com
Fri Nov 13 12:09:24 GMT 2020
Hi Simon,
>> that's what I originally planned, but it seems like elf-bfd.h (and the
>> headers it includes) don't include any system headers. Since I'm not
>> familiar with any of this code I assumed this was intentional.
>>
>> Alex
>>
>
> Hi binutils@,
>
> Could you check the discussion above? Is there a reason elf-bfd.h
> doesn't include the header file it needs to use the functions it uses?
Essentially this is because elf-bfd.h is internal to the binutils
sources, and not expected to be used elsewhere. So any code that
includes it is also expected to include the sysdep.h header which
does then include the needed system headers.
The idea is that all of the configuration time decisions about which
system headers to include are confined to one file - sysdep.h - rather
than having to be copied into all header files.
Cheers
Nick
More information about the Binutils
mailing list