Ryan Mansfield(deleted)
|
Re: use -s, use -i; usemsg -i
|
Ryan Mansfield(deleted)
02/05/2010 10:44 AM
post46684
|
Re: use -s, use -i; usemsg -i
Albert Andreu wrote:
> Hi,
>
> I am trying to use use -s with my executables and I am always getting "No info available in (...)"
>
> Does anybody know how to put the information into the file in order to make it appear when typing use -s myprogram?
use -s just dumps the .ident section so you can inject ident strings
into your binary using inline assembly. For example, we define a
__SRCVERSION macro in sys/srcversion.h which does the following:
#if defined(__QNXNTO__) && defined(__USESRCVERSION)
# define __SRCVERSION(__id) \
__asm__(".section .ident,\"SM\",%progbits,1; .asciz " #__id "; .previous");
#else
# define __SRCVERSION(__id)
#endif
and then at the bottom of our source files we have:
__SRCVERSION( "$URL: file:///svn/product/trunk/foo $ $Rev: 123456 $" )
Hope this helps.
Regards,
Ryan Mansfield
|
|
|