g++ compiler option Wl
-Wl
-Wl
Pass options as options to the linker. If the option contains a comma, split it into multiple options at the comma. You can use this syntax to pass parameter options. For example, -Wl,-Map,ouput.map
it is identified as -Map ouput.map
to the linker. When using the GNU linker, you can also use the = sign, for example -Wl, -Map=output.map
.
–start-group
---start-group a.o b.o c.o --end-group
The representatives are a.o b.o c.o
packed into a group, and can be correctly identified without order.
Reference
[1].链接: Using the GNU Compiler Collection.