delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <455A00A3.5090801@tiscali.it> |
Date: | Tue, 14 Nov 2006 18:45:07 +0100 |
From: | "Salvatore D'Angelo" <koala DOT gnu AT tiscali DOT it> |
User-Agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [Fwd: Re: ld: cannot perform PE operations on not PE files ...] |
References: | <01c401c70810$9a332310$a501a8c0 AT CAM DOT ARTIMI DOT COM> |
In-Reply-To: | <01c401c70810$9a332310$a501a8c0@CAM.ARTIMI.COM> |
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 |
Dave you're right. I forgot to add -r. Thanks a lot. Your solution work fine. The problem now is that I should change the Makefile in order to have two different behaviour in CYGWIN and linux. The solutions are: 1. use if statements in order to execute different statements on linux and cygwin. The question now is how I can do that. I mean what is the variable I have to check with ifdef? 2. Install binutils cross and set target i686-pc-linux. In this way I have to change only the name of tools used to compile and link. But I do not know how to do that. Could someone suggest me a link? PS please cc my address since I am not subscribed at the list Dave Korn ha scritto: >On 14 November 2006 13:28, Salvatore D'Angelo wrote: > > > >>sorry forgot to mention to put my address in cc since I am not >>subscribed to the list >> >> > > Sorry, I forgot and only answered the list! > > cheers, > DaveK > > > > ------------------------------------------------------------------------ > > Oggetto: > RE: ld: cannot perform PE operations on not PE files ... > Da: > "Dave Korn" <dave DOT korn AT artimi DOT com> > Data: > Tue, 14 Nov 2006 10:13:10 -0000 > A: > <cygwin AT cygwin DOT com> > > A: > <cygwin AT cygwin DOT com> > > >On 14 November 2006 09:58, Salvatore D'Angelo wrote: > > > > >>In the Dave solution I noticed the size of final image is 528 instead of >>512 (the size of the bootsector) as in Linux. Why? >> >> > > Seems like your bootsect.out ended up containing __CTOR_LIST__ and >__DTOR_LIST__. Are you /absolutely/ sure you remembered to give the '-r' >option to ld? > > cheers, > DaveK > > -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |