Has anybody got the following from LD (Linux) before?
ld -T ldscript -s start.o kernel.o -o test
ld: test: Not enough room for program headers, try linking with -N
ld: final link failed: Bad value
Any ideas what would cause this, and how it could be corrected?
I just started fiddling with osDev again, and have incorporated a lot of test code from the multiboot example but it refuses to link correctly.
Also, there must be something analogous to --nostdlib -nostartfiles for ld, right? I can't find them anywhere in the man pages though! I don't want to be including crt0.o, but I know it's being included.
I can get rid of it using gcc to perform the linking, but then I get undefined symbols because I don't know how to provide a linker script to gcc! Is it possible?
Essentially, I'm looking for a linking method that will enable me to use my linker script AND remove any standard libs... it seems I can only have one or the other... and I hope I don't have to edit /usr/lib/gcc-lib/specs!
Thanks,
Jeff