Get the assembly position with GAS

Programming, for all ages and all languages.
Post Reply
0000
Posts: 9
Joined: Tue Jul 06, 2010 6:44 pm

Get the assembly position with GAS

Post 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 ?
tharkun
Member
Member
Posts: 51
Joined: Sat Mar 21, 2009 1:29 pm
Location: Ireland

Re: Get the assembly position with GAS

Post 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.
0000
Posts: 9
Joined: Tue Jul 06, 2010 6:44 pm

Re: Get the assembly position with GAS

Post by 0000 »

Damn, it's pity :/
thanks for reply.
Post Reply