Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-pair-Authenticated: 217.4.27.61 Message-ID: <3D2EE7DB.471B@multimediaware.com> Date: Fri, 12 Jul 2002 16:29:47 +0200 From: Wolfgang Hesseler MIME-Version: 1.0 To: egor duda Subject: Re: Bug: BSS segment in COFF files References: <3D2EA2E2 DOT 2881 AT multimediaware DOT com> <8772121004 DOT 20020712145134 AT logos-m DOT ru> <3D2EBFC2 DOT 6973 AT multimediaware DOT com> <9975891676 DOT 20020712155424 AT logos-m DOT ru> <3D2EC616 DOT 19DA AT multimediaware DOT com> <9382195250 DOT 20020712173928 AT logos-m DOT ru> <3D2EE0C2 DOT 78D6 AT multimediaware DOT com> <17484095953 DOT 20020712181108 AT logos-m DOT ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > $ 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/