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?
Specifies linker command-line options to pass to the linker when a link step is being performed after compilation. See the armlink Command-line Options for information about available linker options.
In computing, rpath designates the run-time search path hard-coded in an executable file or library. Dynamic linking loaders use the rpath to find required libraries. Specifically, it encodes a path to shared libraries into the header of an executable (or another shared library).
The CRT lib directory includes several small object files that enable specific CRT features without any code change. These object files are called "link options" since you only have to add them to the linker command line to use them.
-Xlinker option. Pass option as an option to the linker. You can use this to supply system-specific linker options that GCC does not recognize. If you want to pass an option that takes a separate argument, you must use -Xlinker twice, once for the option and once for the argument.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With