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

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/ld.1.man.txt
          +++ new/usr/src/man/man1/ld.1.man.txt
↓ open down ↓ 22 lines elided ↑ open up ↑
  23   23         [-z guidance[=id1,id2...] [-z help ]
  24   24         [-z ignore | record] [-z initarray=function] [-z initfirst]
  25   25         [-z interpose] [-z lazyload | nolazyload]
  26   26         [-z ld32=arg1,arg2,...] [-z ld64=arg1,arg2,...]
  27   27         [-z loadfltr] [-z muldefs] [-z nocompstrtab] [-z nodefaultlib]
  28   28         [-z nodelete] [-z nodlopen] [-z nodump] [-z noldynsym]
  29   29         [-z nopartial] [-z noversion] [-z now] [-z origin]
  30   30         [-z preinitarray=function] [-z redlocsym] [-z relaxreloc]
  31   31         [-z rescan-now] [-z recan] [-z rescan-start ... -z rescan-end]]
  32   32         [-z target=sparc|x86] [-z text | textwarn | textoff]
       33 +       [-z type=exec|kmod|reloc|shared]
  33   34         [-z verbose] [-z wrap=symbol] filename...
  34   35  
  35   36  
  36   37  DESCRIPTION
  37   38         The link-editor, ld, combines relocatable object files by resolving
  38   39         symbol references to symbol definitions, together with performing
  39   40         relocations.  ld operates in two modes, static or dynamic, as governed
  40   41         by the -d option. In all cases, the output of ld is left in the file
  41   42         a.out by default. See NOTES.
  42   43  
↓ open down ↓ 1058 lines elided ↑ open up ↑
1101 1102             In dynamic mode only, allows relocations against all allocatable
1102 1103             sections, including non-writable ones. This mode is the default
1103 1104             when building a shared object.
1104 1105  
1105 1106  
1106 1107         -z textwarn
1107 1108  
1108 1109             In dynamic mode only, lists a warning if any relocations against
1109 1110             non-writable, allocatable sections remain. This mode is the default
1110 1111             when building an executable.
     1112 +
     1113 +
     1114 +       -z type=exec|kmod|reloc|shared
     1115 +
     1116 +           Specifies the type of object to create.
     1117 +
     1118 +
     1119 +           exec
     1120 +
     1121 +               Dynamic executable
     1122 +
     1123 +
     1124 +           reloc
     1125 +
     1126 +               Relocatable object
     1127 +
     1128 +
     1129 +           shared
     1130 +
     1131 +               Dynamic shared object
     1132 +
     1133 +
     1134 +           kmod
     1135 +
     1136 +               illumos kernel module
1111 1137  
1112 1138  
1113 1139         -z verbose
1114 1140  
1115 1141             This option provides additional warning diagnostics during a link-
1116 1142             edit.  Presently, this option conveys suspicious use of
1117 1143             displacement relocations. This option also conveys the restricted
1118 1144             use of static TLS relocations when building shared objects. In
1119 1145             future, this option might be enhanced to provide additional
1120 1146             diagnostics that are deemed too noisy to be generated by default.
↓ open down ↓ 205 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX