1.7.x:ld linker error with *.o files

Greg Chicares gchicares@sbcglobal.net
Mon Sep 13 04:12:00 GMT 2010


On 2010-09-12 22:19Z, matthew caswell wrote:
> 
> $ nasm -f aout mckern_start.asm -o mcks.o
         ^^^^^^^
Try      -f win32
or       -f gnuwin32

http://sourceware.org/ml/cygwin/2010-07/msg00259.html

> $ gcc -c mckern.c -o mckern.o
> 
> But when I run the linker with my link.ld file:
> $ ld -T link.ld -o mckern.bin mcks.o mckern.o
> mcks.o: file not recognized: File format not recognized

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list