This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld manual and 3.4.2 Commands Dealing with Files
- From: Ian Lance Taylor <iant at google dot com>
- To: ali hagigat <hagigatali at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 29 Dec 2010 10:36:24 -0800
- Subject: Re: ld manual and 3.4.2 Commands Dealing with Files
- References: <AANLkTikggX-Qg6swvTaS53zhNQZKjhy=ynGBsOQuxArE@mail.gmail.com>
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