OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 25, 2024 3:01 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Problem linking example
PostPosted: Sun Jul 22, 2001 11:00 pm 
Hey All,

I'm trying to build the example kernel under developer guides on this site, and I'm running into a problem...

I can get the C version of the kernel to build, and to link correctly, and the loader does what it's supposed to, but when I try to test the c/asm mix, or the asm by it self I get an error from ld (see below for version info) that says the .o file format is not recoginized.

I started with coff (as it says in the example), and also tried several other formats supported by nasm, all to no avail.

I'm doing all the building on a Linux system, with nasm 0.98 (latest src from kernel.org mirror) and ld version :
GNU ld 2.9.1
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
Supported emulations:
elf_i386
i386linux

Has anyone else run into this problem?

Thanks,
Wyldwolf


Top
  
 
 Post subject: RE:Problem linking example
PostPosted: Mon Jul 23, 2001 11:00 pm 
>On 2001-07-23 16:26:38, Wyldwolf wrote:
>Has anyone else run into this problem?

I haven't but most of the testing was done on Windoze.
I did pick the formats because they were supposted to work
on both platforms.

Does anyone else have A linux box that they could test this on?

I'll look into it as soon as possible if no one else gets a chance.


Top
  
 
 Post subject: RE:Problem linking example
PostPosted: Sat Jul 28, 2001 11:00 pm 
I've found the problem with using the example about mixing
C ans Assembly under Linux and have added the work around
to the guide. Sorry to cause anyone any headaches.

-Chase


Top
  
 
 Post subject: RE:Problem linking example
PostPosted: Sat Jul 28, 2001 11:00 pm 
Thanks,
I'll give the work-around a try on monday.

>On 2001-07-29 13:42:53, Chase wrote:
>I've found the problem with using the example about mixing
>C ans Assembly under Linux and have added the work around
>to the guide. Sorry to cause anyone any headaches.
>
>-Chase


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Majestic-12 [Bot], SemrushBot [Bot] and 262 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group