RFC: Collecting together binary file attributes into a single file.
Richard Earnshaw (home)
richard.earnshaw@buzzard.freeserve.co.uk
Thu Sep 29 09:51:00 GMT 2011
On 29 Sep 2011, at 10:34, "Nick Clifton" <nickc@redhat.com> wrote:
> Hi Guys,
>
> All I wanted to do was to make GCC's ARM assembler output slightly
> easier to read...
>
> I would like to propose a patch to create a new header file in the
> include/ directory. This file would contain enums describing the
> attributes that be can found in SHT_GNU_ATTRIBUTES sections. The
> purpose of the file is to provide a single place where these values
> are defined, and to share the information between GCC, BINUTILS and
> GDB.
>
> The patch also includes an update to readelf to make it use the
> enumerated values and an example of a patch to the ARM backend of GCC
> to include the attribute names in its assembler output.
>
>
> So - what do people think ? Any objections to this idea ?
>
I don't think it's a good idea to have the attributes of every CPU we support in a single file. That's going to get unmaintainable very quickly.
R
More information about the Binutils
mailing list