This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 07.07.2011 19:29, Andreas Schwab wrote:I try another approach:Works for me.I try on Linux and FreeBSD host and get similar result (GOOD).
$ echo a=1 | as $ nm 00000001 a a
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.
$ gcc -c -o test.o -Wa,"-defsym,my=1" test.c $ objdump -t test.o [ 2](sec -1)(fl 0x00)(ty 0)(scl 3) (nx 0) 0x00000001 my
$ as -o test.o test.s; objdump -t test.o; nm test.o [ 8](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 my U my
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |