Perhaps I should clarify.
Assume that I don't have the source code - I can't compile extra info into the executable. I only have the binary.
There are various sections in the ELF headers - and after some research I thought that the best place to append strings would be the string tables. But, I'm not sure if it's possible to edit the binary - tho there is a tool called
elfedit, written by a sun dev, which does exactly this (well, he modifies the runtime paths), but I can't find its source code. So - I'm assuming this behaviour is exposed in the API via libelf.
Some references -
http://people.freebsd.org/~jkoshy/download/libelf/article.html
Linker and Libraries Guide
Any ideas, guys?