.desc symbol directive ?

Ian Lance Taylor ian@wasabisystems.com
Tue Jun 1 15:50:00 GMT 2004


"K. Ahmed Feroz" <feroz@acmet.com> writes:

> ".desc symbol, abs-expression"
> 
> This directive sets the descriptor of the symbol (see Symbol Attributes)
> to the low 16 bits of an absolute expression."
> 
> Does the above description means the following
> 
> .....
> .desc func 0x102ff
> .....
> 
> After the assembler output
> 
> 'st_value' field of symbol_table should hold the value '0x02ff'
> 
> Is my understanding correct?

No.  The "descriptor" field, and the .desc pseudo-op, is specific to
the a.out and b.out object file formats.

To set st_value, just use .set or =.

Ian



More information about the Binutils mailing list