tags:

views:

45

answers:

1

I used to set this at top of my source files to be able to grep -a "ID :" on my binaries :

#ident "\\n$@           ID : my_library.o v1.3 (25/08/07)@$\\n"

However, this is deprecated in GCC 4.3.3. Any suggestions ?

I came through __attributes__(section()), but not sure if this will get stripped, and anyway, I was guessing there was a more straightforward way.

Thank you

+1  A: 

The #ident directive (as well as #sccs) was undeprecated, so you should just keep it!

(see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41632)

Berendra Tusla