This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

-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.





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