This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Bug: BSS segment in COFF files
> $ 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/