delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/05/04:44:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B1A2B6E.90400@tlinx.org>
Date: Sat, 05 Dec 2009 01:44:14 -0800
From: Linda Walsh <cygwin AT tlinx DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.8.1.23) Gecko/20090812 Lightning/0.9 Thunderbird/2.0.0.23 ThunderBrowse/3.2.6.8 Mnenhy/0.7.6.666
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> <4B19EFEA DOT 7070502 AT gmail DOT com>
In-Reply-To: <4B19EFEA.7070502@gmail.com>
X-Stationery: 0.4.10
X-IsSubscribed: yes
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

Dave Korn wrote:
> Tim Prince wrote:
>> If running inside cygwin, you let the cygwin developers make the choice,
>> which the binutils as will select automatically (PE-i386?).
---
	They didn't choose, or I wouldn't be asking the question.
The util and build are using different names with 'flavors' for variations
on the basics.

>   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.
---
	win32 was my guess as well.  Since the prior choice when this thing
was build for cygwin was gnuwin, (gnu on windows), I was pretty sure that
has to be something like win32.

	I knew Eric Blakes answer was hopelessly unhelpful and just trying
to wind me up since PE-coff isn't even on the list (though coff is), but
that would be too generic if the previous name was something as specific as
gnuwin, but win32...well that give a win32 object.  Which is sorta what
cygwin links with I think...just not the win32 libraries.  For COFF, it
describes that as being used by DJGPP for DOS, and that just sounds way
different.

 	Well, all I can do as try, at least I have a reasoned plurality
at this point, which among programmers working with windows (let alone
a *nix environment on windows like cygwin...) is saying something...:-)
Who knows if it will work. 

I was jut trying to build the unix version
of 7z on cygwin, since the cygwin version I have installed doesn't work
due to a missing library -- dunno what happened to the file, but something
under a 'codec' subdir in /usr/lib/p7zip/Codecs was being referenced, and
that dir's empty.  But I also noticed I have the windows version in 
/prog64/7-zip, which has the added bonus of being notably faster as it's
64-bit native code.  But it would be nice to have the same utils on my linux
and cygwin.  

Thanks for the reasoned and thoughtful answer (whether it's right or 
wrong) :-)
-linda

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