I am creating a libc.a file for my OS and am trying to link it in with a my kernel to test it. I am asking in this forum as this seems more of a general C rather than an OS dev issue.
Every time I try to link it, I get the message:
Code: Select all
libc.a: could not read symbols: Memory Exhausted.
I am building the library with DJGPP, using:
Code: Select all
gcc -Wall -c *.c
Code: Select all
ar rvs libc.a *.o
Code: Select all
ld -T link.ld -o bin\caracal.sys asm\kernel.o bin\*.o lib\*.o lib\*.a
Does anyone have any ideas where I am going wrong?
Thanks,
Adam