delorie.com/archives/browse.cgi | search |
> $ cat x.c > int a; > static int b[10000]; > $ gcc -fno-common -save-temps -c x.c > $ cat x.s > .file "x.i" > .globl _a > .bss > .align 4 > _a: > .space 4 > .lcomm _b,40000 > $ objdump --section-headers x.o > Idx Name Size VMA LMA File off Algn > 0 .text 00000000 00000000 00000000 00000000 2**2 > ALLOC, LOAD, CODE > 1 .data 00000000 00000000 00000000 00000000 2**2 > ALLOC, LOAD, DATA > 2 .bss 00009c48 00000000 00000000 00000000 2**2 > ALLOC Right. But the whole Cygwin wouldn't work if its programs wouldn't recognize its own object code properly. My problem is that Cygwin produces some non-standard COFF object files. I will do some experiments with objcopy and see if that helps to solve the problem. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |