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" <[EMAIL PROTECTED]>
Data:
Tue, 14 Nov 2006 10:13:10 -0000
A:
<[email protected]>
A:
<[email protected]>
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/