This is the mail archive of the binutils@sourceware.cygnus.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]

Re: [PATCH]: ld/Makefile.am


   Date: Fri, 10 Mar 2000 16:52:32 +0100
   From: Andreas Schwab <schwab@suse.de>

   |> Executing a shell script does use a bit more memory, but only just
   |> enough for "/bin/sh" and the name of the script to execute.  If that
   |> is pushing H.J. over the memory limit, then he must have been
   |> extremely close to that limit to start with.

   It's not only this but also some additional --rpath options, which can
   carry along long file names.  Those are only passed when the lt-ld-new
   binary is linked, which could account for the push beyond the limit.

My point was that the error indicates that the problem is occurring
before the shell script is ever executed, as Alexandre also pointed
out.

   |> For that matter, I actually didn't think that the Linux kernel had an
   |> argument size limit.

   It has.  It is defined by MAX_ARG_PAGES (== 32, ie. 128kB w/4KB pages).
   And remember that this includes the environment as well.

128K is a lot for a program plus arguments plus environment.
Something is wrong, and we do not yet understand the real problem.

Ian

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