LD limit?

Programming, for all ages and all languages.
Post Reply
User avatar
BASICFreak
Member
Member
Posts: 284
Joined: Fri Jan 16, 2009 8:34 pm
Location: Louisiana, USA

LD limit?

Post by BASICFreak »

I seem to have hit a limit on the max object files on LD here is a copy of CMD minus the path

Code: Select all

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

cd \current\PMODE\KERNEL

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O CMOS.O DMA.O
The system cannot execute the specified program.

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O CMOS.O

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O CMOS.O dma.o
The system cannot execute the specified program.

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O DMA.O
MAIN.O:MAIN.c:(.text+0x56a): undefined reference to `_readCMOS'
MAIN.O:MAIN.c:(.text+0x648): undefined reference to `_CMOS_Floppy_Decode'
MAIN.O:MAIN.c:(.text+0x661): undefined reference to `_CMOS_Floppy_Decode'

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O CMOS.O kern.o
The system cannot execute the specified program.

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O CMOS.O wtf.o
The system cannot execute the specified program.

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O anything.o GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O CMOS.O
The system cannot execute the specified program.
seems I am unable to add any more files, and no manuals say LD has a limit. windows XP has 2048 char limit(source unverified) so seems to be with LD

so how do I get around this?

I got around this last time by merging code and I cannot keep doing that!
BOS Source Thanks to GitHub
BOS Expanded Commentary
Both under active development!
Sortie wrote:
  • Don't play the role of an operating systems developer, be one.
  • Be truly afraid of undefined [behavior].
  • Your operating system should be itself, not fight what it is.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: LD limit?

Post by Combuster »

You violated point 1 of the Posting Checklist.

I'm guessing it's DJGPP because of the DOS limit on commands.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply