This is the mail archive of the
mailing list for the binutils project.
Re: RFC: Collecting together binary file attributes into a single file.
- From: "Richard Earnshaw (home)" <richard dot earnshaw at buzzard dot freeserve dot co dot uk>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "aph at redhat dot com" <aph at redhat dot com>
- Date: Thu, 29 Sep 2011 10:51:50 +0100
- Subject: Re: RFC: Collecting together binary file attributes into a single file.
- References: <firstname.lastname@example.org>
On 29 Sep 2011, at 10:34, "Nick Clifton" <email@example.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
> 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.