This is the mail archive of the cygwin 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]
Other format: [Raw text]

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


I'm trying to compile a very basic kernel.? The source contains 2 files:
mckern.c
mckern_start.asm

These compile into *.o files fine. Here's how (in case it helps solve
the problem):
$ nasm -f aout mckern_start.asm -o mcks.o
$ 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

What's wrong, and how can I fix it?

--
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


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