Problem linking example

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Wyldwolf

Problem linking example

Post by Wyldwolf »

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
Chase

RE:Problem linking example

Post by Chase »

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

RE:Problem linking example

Post by Chase »

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
Wyldwolf

RE:Problem linking example

Post by Wyldwolf »

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