delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/19/11:01:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <42B58998.9ABB5D44@dessent.net>
Date: Sun, 19 Jun 2005 08:04:56 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Compiling memtest from sources on cygwin
References: <d93n2t$rpe$1 AT sea DOT gmane DOT org> <42B5789F DOT 70201 AT hones DOT org DOT uk> <d93v2c$c6v$1 AT sea DOT gmane DOT org>
X-Spam-Report: -5.9/5.0 ---- Start SpamAssassin results * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 0.0 AWL AWL: From: address is in the auto white-list ---- End SpamAssassin results
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

"alexeik AT nordlines DOT ru" wrote:

> And since cygwin works under Windows I suspect, that cygwin people setup
> the 'as' program to support windows loader. Now I am thinking -- should
> I go to linux, or stay with cygwin. Actually I need to write a small
> program, which works on bare metall w/o any o/s.

You could probably get what you want by building a cross-binutils.  Get
the binutils source and build with "./configure --host=i686-pc-cygwin
--target=i686-pc-linux".  Then build memtest with "./configure
--target=i686-pc-linux" which should cause it to use the
'i686-pc-linux-as' you just built instead of Cygwin's 'as' which doesn't
grok ELF.  If memtest has more than just assembly files (i.e. C code
too) you'd probably need to build a cross-gcc as well.  The whole
crosscompiler business is better covered elsewhere, as it's not
Cygwin-specific.

Brian

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

- Raw text -


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