Cross gcc Mailing List Archive

[Prev][Next][Index][Thread]

Re: ident problems using gnu tools



   Date: Sat, 5 Oct 1996 10:19:00 PDT
   From: "Marty Leisner" <leisner@sdsp.mc.xerox.com>

   I suppose it would be relatively straightforward to add an ident extension
   to gcc...then have a -fuse-ident?

Or one could use a macro and section attributes like

#define IDENT(foo) \
static const char ident[] __attribute__ ((section (".ident"))) = \
foo ## " GCC " ## __VERSION__

IDENT ("abc");

Whether the text ends up in ROM or not is up to the linker script (i.e. user).


References:

Home | Subject Index | Thread Index