X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org X-Yahoo-SMTP: mjD.OBqswBAPbVUxYJaYPvc61jLEnpq8VnBwJGdbEJOPA9xw Message-ID: <4C8D639D.90007@sbcglobal.net> Date: Sun, 12 Sep 2010 23:34:53 +0000 From: Greg Chicares User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: 1.7.x:ld linker error with *.o files References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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