This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Felix Lee <felix.1@canids.net>:
> (should you be able to say @file within an @file?
>  my gut feeling is 'no'.
>  my other gut feeling is 'yes'.)

my non-gut-feeling is 'no', because @file is really just a simple
workaround for the inability to pass arbitrarily long argument
lists.  nesting/recursion would give the workaround too much
depth.  the shell already has this type of functionality.  adding
complicated arg handling to every program is as questionable as
adding file globbing to every program.  it's probably more
worthwhile to work on fixing the general arg list restriction.

(another thought: the shell and crt0 could collaborate on some
arg-passing convention that means "the real argv list should be
read from this file descriptor")

anyway, this is getting beyond the scope of binutils.
xargs is the traditional workaround, handles most cases.
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]