I have been working on this and can't get it to work!
The thing is, I want to create a single library file containg all the kernel code from all the seperate files containing code for floppy,dma,video etc
But when i use AR to create an archieve KERNEL.lib ->
ar rsc kernel.lib *.o and then use this file with ld -> ld -T klink.ld -o kmain.bin kmain.o kernel.lib
i get the following error on my screen
Can anyone PLEASE show me how to create a library file with AR (or any other program) that will link with LD without causeing an error!
Exiting Due To Signal SIGSEGV
General Protection Fault at eip=0005b475
eax=eb0006b2 ebx=0000fd00 ecx=00000005 edx=0000001e
esi=cb7211a0 edi=0011f178 ebp=000f1e98 esp=000f 1e88 program=C:\Djgpp\bin\LD.exe
cs: sel=00af base=82c80000 limit=0012ffff
ds: sel=00b7 base=82c80000 limit=0012ffff
es: sel=00b7 base=82c80000 limit=0012ffff
fs: sel=0087 base=00000000 limit=0000ffff
gs: sel=00c7 base=82c80000 limit=0010ffff
ss: sel=00b7 base=82c80000 limit=0012ffff
App stack: [000f20a8.....000720a8]
Exception stacK: [00071ffc...000700bc]
Call Frame traceback EIPs:
0x0005b475
0x0002d208
0x0003d09a
0x0003e3db
0x00026903
0x0003e34f
0x0001353f
0x00013e40
0x00016c12
0x0001988f
0x0005adc8
Also I'd like to know if Djgpp outputs Elf files and How.
I'm using Djgpp version 3.03 and binutils!
Thanks.