Why my 'ar.exe' and 'ld.exe' does not work with the inline parameter '@objectslistfile'

Ben Elliston bje@wasabisystems.com
Thu Jan 15 00:16:00 GMT 2004


Felix Lee <felix.1@canids.net> writes:

> since argv length is a hard limit imposed by an OS, a program that
> expects to iterate over the argv list will always be limited and the
> usual workaround is running the program multiple times (xargs) which
> isn't always appropriate.

I've written Makefiles in the past that use xargs(1) to build large
archive libraries.  I used something like this to append to the
archive on each xargs iteration:

        xargs -n 10 ar r foo.a < objlist        # ten should be safe

Ben



More information about the Binutils mailing list