Print this page
4843 add --as-needed and --no-as-needed to ld

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/ld.1
          +++ new/usr/src/man/man1/ld.1
↓ open down ↓ 1118 lines elided ↑ open up ↑
1119 1119  .sp .6
1120 1120  .RS 4n
1121 1121  Print a summary of the command line options on the standard output and exit.
1122 1122  .RE
1123 1123  
1124 1124  .sp
1125 1125  .ne 2
1126 1126  .na
1127 1127  \fB\fB-z\fR \fBignore\fR | \fBrecord\fR\fR
1128 1128  .ad
     1129 +.br
     1130 +.na
     1131 +\fB\fB--as-needed\fR | \fB--no-as-needed\fR\fR
     1132 +.ad
1129 1133  .sp .6
1130 1134  .RS 4n
1131 1135  Ignores, or records, dynamic dependencies that are not referenced as part of
1132 1136  the link-edit. Ignores, or records, unreferenced \fBELF\fR sections from the
1133 1137  relocatable objects that are read as part of the link-edit. By default,
1134 1138  \fB-z\fR \fBrecord\fR is in effect.
1135 1139  .sp
1136 1140  If an \fBELF\fR section is ignored, the section is eliminated from the output
1137 1141  file being generated. A section is ignored when three conditions are true. The
1138 1142  eliminated section must contribute to an allocatable segment. The eliminated
↓ open down ↓ 729 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX