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
          +++ new/usr/src/man/man1/ld.1
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17  [\fB-D\fR \fItoken\fR,...] [\fB-e\fR \fIepsym\fR] [\fB-f\fR \fIname\fR | \fB-F\fR \fIname\fR] [\fB-G\fR] [\fB-h\fR \fIname\fR]
  18   18  [\fB-i\fR] [\fB-I\fR \fIname\fR] [\fB-l\fR \fIx\fR] [\fB-L\fR \fIpath\fR] [\fB-m\fR] [\fB-M\fR \fImapfile\fR]
  19   19  [\fB-N\fR \fIstring\fR] [\fB-o\fR \fIoutfile\fR] [\fB-p\fR \fIauditlib\fR] [\fB-P\fR \fIauditlib\fR]
  20   20  [\fB-Q\fR y | n] [\fB-R\fR \fIpath\fR] [\fB-s\fR] [\fB-S\fR \fIsupportlib\fR] [\fB-t\fR]
  21   21  [\fB-u\fR \fIsymname\fR] [\fB-V\fR] [\fB-Y P\fR\fI,dirlist\fR] [\fB-z\fR absexec]
  22   22  [\fB-z\fR allextract | defaultextract | weakextract ] [\fB-z\fR altexec64]
  23   23  [\fB-z\fR aslr[=\fIstate\fR]] [\fB-z\fR assert-deflib] [ \fB-z\fR assert-deflib=\fIlibname\fR]
  24   24  [\fB-z\fR combreloc | nocombreloc ] [\fB-z\fR defs | nodefs]
  25   25  [\fB-z\fR direct | nodirect] [\fB-z\fR endfiltee]
  26   26  [\fB-z\fR fatal-warnings | nofatal-warnings ] [\fB-z\fR finiarray=\fIfunction\fR]
  27      -[\fB-z\fR globalaudit] [\fB-z\fR groupperm | nogroupperm] 
       27 +[\fB-z\fR globalaudit] [\fB-z\fR groupperm | nogroupperm]
  28   28  [\fB-z\fR guidance[=\fIid1\fR,\fIid2\fR...] [\fB-z\fR help ]
  29   29  [\fB-z\fR ignore | record] [\fB-z\fR initarray=\fIfunction\fR] [\fB-z\fR initfirst]
  30   30  [\fB-z\fR interpose] [\fB-z\fR lazyload | nolazyload]
  31   31  [\fB-z\fR ld32=\fIarg1\fR,\fIarg2\fR,...] [\fB-z\fR ld64=\fIarg1\fR,\fIarg2\fR,...]
  32   32  [\fB-z\fR loadfltr] [\fB-z\fR muldefs] [\fB-z\fR nocompstrtab] [\fB-z\fR nodefaultlib]
  33   33  [\fB-z\fR nodelete] [\fB-z\fR nodlopen] [\fB-z\fR nodump] [\fB-z\fR noldynsym]
  34   34  [\fB-z\fR nopartial] [\fB-z\fR noversion] [\fB-z\fR now] [\fB-z\fR origin]
  35   35  [\fB-z\fR preinitarray=\fIfunction\fR] [\fB-z\fR redlocsym] [\fB-z\fR relaxreloc]
  36   36  [\fB-z\fR rescan-now] [\fB-z\fR recan] [\fB-z\fR rescan-start \fI\&...\fR \fB-z\fR rescan-end]]
  37   37  [\fB-z\fR target=sparc|x86] [\fB-z\fR text | textwarn | textoff]
       38 +[\fB-z\fR type=\fIexec\fR|\fIkmod\fR|\fIreloc\fR|\fIshared\fR]
  38   39  [\fB-z\fR verbose] [\fB-z\fR wrap=\fIsymbol\fR] \fIfilename\fR...
  39   40  .fi
  40   41  
  41   42  .SH DESCRIPTION
  42   43  .LP
  43   44  The link-editor, \fBld\fR, combines relocatable object files by resolving
  44   45  symbol references to symbol definitions, together with performing relocations.
  45   46  \fBld\fR operates in two modes, static or dynamic, as governed by the \fB-d\fR
  46   47  option. In all cases, the output of \fBld\fR is left in the file \fBa.out\fR by
  47   48  default. See NOTES.
↓ open down ↓ 1523 lines elided ↑ open up ↑
1571 1572  .sp
1572 1573  .ne 2
1573 1574  .na
1574 1575  \fB\fB-z\fR \fBtextwarn\fR\fR
1575 1576  .ad
1576 1577  .sp .6
1577 1578  .RS 4n
1578 1579  In dynamic mode only, lists a warning if any relocations against non-writable,
1579 1580  allocatable sections remain. This mode is the default when building an
1580 1581  executable.
     1582 +.RE
     1583 +
     1584 +.sp
     1585 +.ne 2
     1586 +.na
     1587 +\fB-z\fR \fBtype=exec|kmod|reloc|shared\fR
     1588 +.ad
     1589 +.sp .6
     1590 +.RS 4n
     1591 +Specifies the type of object to create.
     1592 +
     1593 +.sp
     1594 +.ne 2
     1595 +.na
     1596 +exec
     1597 +.ad
     1598 +.sp .6
     1599 +.RS 4n
     1600 +Dynamic executable
     1601 +.RE
     1602 +
     1603 +.sp
     1604 +.ne 2
     1605 +.na
     1606 +reloc
     1607 +.ad
     1608 +.sp .6
     1609 +.RS 4n
     1610 +Relocatable object
     1611 +.RE
     1612 +
     1613 +.sp
     1614 +.ne 2
     1615 +.na
     1616 +shared
     1617 +.ad
     1618 +.sp .6
     1619 +.RS 4n
     1620 +Dynamic shared object
     1621 +.RE
     1622 +
     1623 +.sp
     1624 +.ne 2
     1625 +.na
     1626 +kmod
     1627 +.ad
     1628 +.sp .6
     1629 +.RS 4n
     1630 +illumos kernel module
     1631 +.RE
1581 1632  .RE
1582 1633  
1583 1634  .sp
1584 1635  .ne 2
1585 1636  .na
1586 1637  \fB\fB-z\fR \fBverbose\fR\fR
1587 1638  .ad
1588 1639  .sp .6
1589 1640  .RS 4n
1590 1641  This option provides additional warning diagnostics during a link-edit.
↓ open down ↓ 286 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX