tags:

views:

453

answers:

3

When I read the GCC's info manual, I found the link option -Wl,OPTION:

`-Wl,OPTION'
 Pass OPTION as an option to the linker.  If OPTION contains
 commas, it is split into multiple options at the commas.

But I could not find the definition of the OPTION. Who can tell me where to find it? I have google it, but nothing found.

+2  A: 

The linked is called ld. Googling for ld options gives e.g. http://sourceware.org/binutils/docs-2.16/ld/Options.html

laalto
ho, I found: "if the linker is being invoked indirectly, via a compiler driver (e.g. gcc) then all the linker command line options should be prefixed by -Wl". Thanks.
Cook Schelling
+1  A: 

It is linker options written like that (from my makefile) :

FLAGS += -Wl,--enable-auto-import,--enable-runtime-pseudo-reloc

The linker options are listed in detail in the linker man page : ld

neuro
+2  A: 

The options are for the ld linker, and are listed here.

anon