Wednesday, February 2, 2022

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

Issue

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?


Solution

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



Answered By - laalto
Answer Checked By - David Goodson (WPSolving Volunteer)