[mingw - C/C++] Is it MinGW's error?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[mingw - C/C++] Is it MinGW's error?

SourceForge.net

Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3207899
By: huangxiangkui

I am a middle school student in China.
When I use MinGW to build something,I found something is wrong on my ld.

My code is below.

/* boot.s start*/

.code16
.text

.global _start

_start:
        jmp _start

/*boot.s start*/

My commend is below.

gcc -traditional -c -nostdinc -o boot.o boot.s
ld -e _start -Ttext 0x0000 -s --oformat binary -o boot boot.o

But the ld doesn't work.It tell me what is below.

ld: PE operations on non PE file.

I don't know what wrong with the file.

I can use Djgpp to build it.I can use GCC on Linux to build it.But I can't use
MinGW or Cygwin to build it.

Who can help me?

If you can write on Chinese,it is best.If not ,you also can use English.

That's all.

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=286529


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users