This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How define absolute local symbol by GNU as?
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.