Solaris linker flags mapping table.

There are several flags that the solaris linker does not support. Here we will write replacement options. Some of them can also be viewed by the ld -z help command.

Unrecognized option

Replacement

Example

Unrecognized option

Replacement

Example

--version-scripts

-M

-Wl,--version-script=/path/to/file =>

-Wl,-M,/path/to/file

--whole-archive | --no-whole-archive

-zallextract | -zdefaultextract

-Wl,--whole-archive =>

-Wl,-zallextract