Print this page
10366 ld(1) should support GNU-style linker sets
10581 ld(1) should know kernel modules are a thing

@@ -28,10 +28,11 @@
        [-z nodelete] [-z nodlopen] [-z nodump] [-z noldynsym]
        [-z nopartial] [-z noversion] [-z now] [-z origin]
        [-z preinitarray=function] [-z redlocsym] [-z relaxreloc]
        [-z rescan-now] [-z recan] [-z rescan-start ... -z rescan-end]]
        [-z target=sparc|x86] [-z text | textwarn | textoff]
+       [-z type=exec|kmod|reloc|shared]
        [-z verbose] [-z wrap=symbol] filename...
 
 
 DESCRIPTION
        The link-editor, ld, combines relocatable object files by resolving

@@ -1108,10 +1109,35 @@
            In dynamic mode only, lists a warning if any relocations against
            non-writable, allocatable sections remain. This mode is the default
            when building an executable.
 
 
+       -z type=exec|kmod|reloc|shared
+
+           Specifies the type of object to create.
+
+
+           exec
+
+               Dynamic executable
+
+
+           reloc
+
+               Relocatable object
+
+
+           shared
+
+               Dynamic shared object
+
+
+           kmod
+
+               illumos kernel module
+
+
        -z verbose
 
            This option provides additional warning diagnostics during a link-
            edit.  Presently, this option conveys suspicious use of
            displacement relocations. This option also conveys the restricted