This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: .desc symbol directive ?


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]