This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Adding a new attribute to GCC


The new attribute will need to create a new section in the
ELF format  object file, and so need to be recognized by the
linker, loader etc.

I am unable to find any good documentation regarding the same.

Do you have any pointers ?

On 5/2/06, Mike Stump <mrs@apple.com> wrote:
On May 2, 2006, at 7:29 PM, Nihal D'Cunha wrote:
> I am interested in adding a new attribute to GCC.

> Any pointers to books/documents/websites that
> will help in this regard will be much appreciated.

Sure, figure out what existing attribute yours is most like, search
for that in the code, see how it is implemented and copy it.



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