Page 1 of 1

Get the assembly position with GAS

Posted: Wed Aug 25, 2010 4:43 am
by 0000
Hi,

I wonder if there is something similar to the special token $$ supported by NASM which can get the assembly position at the beginning of the current section with Gnu Assembler ?

Re: Get the assembly position with GAS

Posted: Wed Aug 25, 2010 10:52 am
by tharkun
0000 wrote:Hi,

I wonder if there is something similar to the special token $$ supported by NASM which can get the assembly position at the beginning of the current section with Gnu Assembler ?
No, unfortunately there isn't. You'll have to place a label at the start of each section.

Re: Get the assembly position with GAS

Posted: Thu Aug 26, 2010 7:02 am
by 0000
Damn, it's pity :/
thanks for reply.