This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Fwd: Re: ld: cannot perform PE operations on not PE files ...]

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?

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!



RE: ld: cannot perform PE operations on not PE files ...
"Dave Korn" <>
Tue, 14 Nov 2006 10:13:10 -0000


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?


-- Unsubscribe info: Problem reports: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]