This is the mail archive of the cygwin@cygwin.com 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]

Problems with ld


Greetings,

I have a kernel project going on, and I usually use a native Linux machine
to compile the kernel with. It's written in C++ and assembler, so after installing
NASM on cygwin (that part was easy enough), it could compile with no problems.
However, the linker distributed with cygwin seems not to support the --oformat
or something else is wrong, since I get the following error:
ld: PE operations on non PE file.
My ld command line looks like this:
ld -Ttext 0x80020130 --oformat binary -Map kernel.map -o kernel mainstub.o
main_test.o [more objects...] x386/x386.a

Anyone know how to make the linker produce plain binary images? Or what else
I could do under cygwin?

Thanks in advance,
Sune Foldager.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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