Re: Passing @file option to linker

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21 January 2015 at 09:23, Bert Wesarg wrote:
> Hi,
>
> in general there are two ways to pass linker options from the gcc
> compiler driver to the linker, either '-Wl,' or '-Xlinker'. Though
> when one wants to pass a @file option to the linker, than only
> -Wl,@file seems to work, because when using '-Xlinker @file', the
> driver already interprets @file and thus would only pass the first
> argument from the read file to the linker and the remaining arguments
> from the file are already recognized by the driver.
>
> Is this analysis correct? The documentation isn't very clear, that
> @file arguments are read immediately when encountered and regardless
> of an prior -Xlinker option:

That seems consistent with the statement "The options read are inserted in
 place of the original @file option."




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux