public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Wolfgang Hesseler <qv@multimediaware.com>
To: egor duda <cygwin@cygwin.com>
Subject: Re: Bug: BSS segment in COFF files
Date: Fri, 12 Jul 2002 06:56:00 -0000	[thread overview]
Message-ID: <3D2EBFC2.6973@multimediaware.com> (raw)
In-Reply-To: <8772121004.20020712145134@logos-m.ru>

> If you run gcc with '--save-temps' flag, and then look into
> 'yourfile.s' file, you'll see that uninitialized data is tagged as
> "common" (using '.comm' directive) and is put to bss only by linker
> when final executable is created. To turn this feature off, use
> '-fno-common' flag when compiling your object file.

This works, however only if the variables are non-static. If a 
variable is static the .comm directive is still used.
 
> Not sure if it's all that needed to link gcc-produced object files
> with watcom linker, though. For instance, for function 'func ()' gcc
> uses _func as symbol name in object files while watcom uses 'func_'.

The only problem is that some functions call external functions 
like _log10. Is the cygwin1.dll source code of that function available?
I did a quick search in CVS but couldn't find it.


--
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/

  reply	other threads:[~2002-07-12 11:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-12  6:05 Wolfgang Hesseler
2002-07-12  6:49 ` egor duda
2002-07-12  6:56   ` Wolfgang Hesseler [this message]
2002-07-12  6:59     ` egor duda
2002-07-12  7:05       ` Wolfgang Hesseler
2002-07-12  7:52         ` egor duda
2002-07-12  8:21           ` Wolfgang Hesseler
2002-07-12  8:30             ` egor duda
2002-07-12  8:39               ` Wolfgang Hesseler
2002-07-12  8:43                 ` egor duda
2002-07-12 11:17                   ` Wolfgang Hesseler
2002-07-12  8:22           ` egor duda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D2EBFC2.6973@multimediaware.com \
    --to=qv@multimediaware.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).