This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: .desc symbol directive ?
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: "K. Ahmed Feroz" <feroz at acmet dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: 01 Jun 2004 11:49:54 -0400
- Subject: Re: .desc symbol directive ?
- References: <001801c447ed$ec0e5500$7200a8c0@FEROZ>
"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