Reputation: 12896
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
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
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