Yantao Xie
Yantao Xie

Reputation: 12896

What is the OPTION in the GCC's option "-Wl,OPTION"?

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. Where can I find it?

Upvotes: 16

Views: 38653

Answers (4)

neuro
neuro

Reputation: 15180

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

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

The linker options are listed in detail on the linker man page: ld (the GNU linker)

Upvotes: 10

Bogi
Bogi

Reputation: 2598

On my linker (for sh4), you type sh4ld --help.

Upvotes: 2

laalto
laalto

Reputation: 152817

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

Upvotes: 12

anon
anon

Reputation:

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

Upvotes: 3

Related Questions