This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
-Wl,<options> mechanism
- From: "Tal Agmon" <Tal dot Agmon at nsc dot com>
- To: gcc at gcc dot gnu dot org,gcc-help at gcc dot gnu dot org
- Date: Wed, 5 Nov 2003 17:52:19 +0200
- Subject: -Wl,<options> mechanism
Hi,
I'm using GCC version 3.3.2, the target is i686-pc-linux-gnu.
It seems that the -Wl,<options> command option is not working correctly :
My wish is to pass the linker an option which precedes (and by that
overrides) other options.
But when processing the '%X' spec option in LINK_COMMAND_SPEC,
there is no output of accumulated linker options, although specified in the
driver's command line.
I think that they are processed as explicit_link_files via the '%o' spec
option.
I noticed in gcc.c that %x{OPTION} records OPTION for %X to output, and not
-Wl,<option> as should be -
This is different than how accumulated assembler/preprocessor options are
handled.
Maybe i'm missing something here.
Can you explain the problem ?
Thanks,
Tal.