...
If given to a compiler driver instead of directly to ld some of these options need to be prefaced with "-Wl,". However a series of options can be given following a signle single preface, e.g., "-Wl,-soname=foo,--hash-style-=gnu,-zcombreloc".
Option | Needs -Wl, |
---|---|
-shared | |
-fpic or -fPIC | |
-e (optional) | |
-soname | |
--as-needed | |
--no-add-needed | |
-zcombreloc | |
--zmax-page-size=4K | |
--hash-style=gnu | |
-l: (instead of -l) |
...