| delorie.com/archives/browse.cgi | search | 
| X-Recipient: | archive-cygwin AT delorie DOT com | 
| X-SWARE-Spam-Status: | No, hits=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL | 
| X-Spam-Check-By: | sourceware.org | 
| MIME-Version: | 1.0 | 
| Date: | Sun, 12 Sep 2010 15:19:04 -0700 | 
| Message-ID: | <AANLkTikFJzNtZSDD+WBvezg0GQioEq-uk8DXb4M=0JG0@mail.gmail.com> | 
| Subject: | 1.7.x:ld linker error with *.o files | 
| From: | matthew caswell <caswellrienzo AT gmail DOT com> | 
| To: | cygwin AT cygwin DOT com | 
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm | 
| List-Id: | <cygwin.cygwin.com> | 
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> | 
| List-Archive: | <http://sourceware.org/ml/cygwin/> | 
| List-Post: | <mailto:cygwin AT cygwin DOT com> | 
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> | 
| Sender: | cygwin-owner AT cygwin DOT com | 
| Mail-Followup-To: | cygwin AT cygwin DOT com | 
| Delivered-To: | mailing list cygwin AT cygwin DOT com | 
I'm trying to compile a very basic kernel.=A0 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
| webmaster | delorie software privacy | 
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |