delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/05/00:14:34

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B19EFEA.7070502@gmail.com>
Date: Sat, 05 Dec 2009 05:30:18 +0000
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: nasm -- what format does cygwin use?
References: <4B19A77D DOT 3080704 AT tlinx DOT org> <4B19B12F DOT 7030707 AT aol DOT com>
In-Reply-To: <4B19B12F.7030707@aol.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Tim Prince wrote:
> Linda Walsh wrote:
>> I am trying to compile a program that use nasm and it thought that
>> gnuwin32 was a format for nasm (don't know if it used to be, but it's
>> not now).
>>
>> Does cygwin use standard linux format now 'elf', or is it using
>> win32?..or
>> something else)?
> If running inside cygwin, you let the cygwin developers make the choice,
> which the binutils as will select automatically (PE-i386?).

  Well, nasm != binutils, so in theory it could do things differently if it chose.

>  nasm might
> be used, I suppose, with mingw, as your comment almost implies, so
> becomes off topic for this list, if you refer to development for
> non-cygwin targets.

  Nope, it has nothing to do with that.  nasm is an assembler.  It generates
relocatable object files.  It has no concept of an ABI, or a system library,
or anything like that.

  Linda, my reading of the "nasm -hf" output suggests you'd want the win32
output format.  If you check the generated .o files it using "objdump -h" you
should see "file format pe-i386", which is right.  After you've got .o files,
you'll still need to link them; hopefully your makefiles will work with
cygwin's LD easily enough.

    cheers,
      DaveK


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019