Click here to Skip to main content
15,886,860 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Cygwin to link my kernel written in c. I successfully create
two object files, one from nasm and other with gcc. How do i link it? when
i tried, it give me output:

ld: cannot perform PE operations on non-PE file format.


What I have tried:

I tried to link with

ld -o bin/kern32.sys -Ttext 0x4000 bin/kern32.obj bin/universal.obj --oformat binary
Posted
Comments
Jochen Arndt 21-Apr-17 3:03am    
Just feed the error message to your favorite search engine:
http://stackoverflow.com/questions/25128579/ld-cannot-perform-pe-operations-on-non-pe-output-file-error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900