To avoid the command line length limitation, you can split the list of object files into smaller groups. Use a batch script to process each group like this:
setlocal enabledelayedexpansion
set count=0
set max=100 REM Adjust this number as needed
pizza towerfor /f %%i in (obj.txt) do (
@echo $liblinker %%i >> file.txt
set /a count+=1
if !count! geq %max% (
set count=0
echo Processing next batch...
)
)
This way, you can write to file.txt without hitting the command line length limit.