How define absolute local symbol by GNU as?

Oleksandr Gavenko gavenko@bifit.com.ua
Fri Jul 8 12:44:00 GMT 2011


On 07.07.2011 19:29, Andreas Schwab wrote:
> Works for me.
>
> $ echo a=1 | as
> $ nm
> 00000001 a a
>
I try on Linux and FreeBSD host and get similar result (GOOD).

But with Cygwin:

/usr/bin/as
/usr/bin/i686-pc-mingw32-as.exe
/usr/bin/i686-w64-mingw32-as.exe

with version:

GNU assembler (GNU Binutils) 2.20.51.20100410
GNU assembler (GNU Binutils) 2.21
GNU assembler (GNU Binutils) 2.21.51.20110605

   $ echo a=1 | i686-pc-mingw32-as
   $ nm
00000000 b .bss
00000000 d .data
00000000 t .text

I can not get same result. So this can be related to COFF format?

--keep-locals also have no effect.



More information about the Binutils mailing list