Page 1 of 1

Problem linking example

Posted: Sun Jul 22, 2001 11:00 pm
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

RE:Problem linking example

Posted: Mon Jul 23, 2001 11:00 pm
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.

RE:Problem linking example

Posted: Sat Jul 28, 2001 11:00 pm
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

RE:Problem linking example

Posted: Sat Jul 28, 2001 11:00 pm
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