This is the mail archive of the binutils@sourceware.org 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: ld manual and 3.4.2 Commands Dealing with Files


ali hagigat <hagigatali@gmail.com> writes:

> 3.4.2 Commands Dealing with Files
> AS_NEEDED(file , file , ...)
> AS_NEEDED(file file ...)
> This construct essentially enables â--as-neededâ option for all the
> files listed inside of it and restores
> previous â--as-neededâ resp. â--no-as-neededâ setting afterwards.
> ------------------------------------------------------------------------------------------
> I have copied part of ld manual. I think the above sentence does not
> make sense and needs correction!
> "previous â--as-neededâ resp.", what is it saying?

That sentence is written terribly but it does make sense.  What it says
is that AS_NEEDED enables the --as-needed option for the files in the
list.  For files not in the list the previous setting of --as-needed is
used.  That previous setting may be either --as-needed or
--no-as-needed, depending on what was used on the command line.

Ian


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