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


1109 
1110 .sp
1111 .ne 2
1112 .na
1113 \fB\fB-z\fR \fBhelp\fR\fR
1114 .ad
1115 .br
1116 .na
1117 \fB\fB--help\fR\fR
1118 .ad
1119 .sp .6
1120 .RS 4n
1121 Print a summary of the command line options on the standard output and exit.
1122 .RE
1123 
1124 .sp
1125 .ne 2
1126 .na
1127 \fB\fB-z\fR \fBignore\fR | \fBrecord\fR\fR
1128 .ad




1129 .sp .6
1130 .RS 4n
1131 Ignores, or records, dynamic dependencies that are not referenced as part of
1132 the link-edit. Ignores, or records, unreferenced \fBELF\fR sections from the
1133 relocatable objects that are read as part of the link-edit. By default,
1134 \fB-z\fR \fBrecord\fR is in effect.
1135 .sp
1136 If an \fBELF\fR section is ignored, the section is eliminated from the output
1137 file being generated. A section is ignored when three conditions are true. The
1138 eliminated section must contribute to an allocatable segment. The eliminated
1139 section must provide no global symbols. No other section from any object that
1140 contributes to the link-edit, must reference an eliminated section.
1141 .RE
1142 
1143 .sp
1144 .ne 2
1145 .na
1146 \fB\fB-z\fR \fBinitarray=\fR\fIfunction\fR\fR
1147 .ad
1148 .sp .6




1109 
1110 .sp
1111 .ne 2
1112 .na
1113 \fB\fB-z\fR \fBhelp\fR\fR
1114 .ad
1115 .br
1116 .na
1117 \fB\fB--help\fR\fR
1118 .ad
1119 .sp .6
1120 .RS 4n
1121 Print a summary of the command line options on the standard output and exit.
1122 .RE
1123 
1124 .sp
1125 .ne 2
1126 .na
1127 \fB\fB-z\fR \fBignore\fR | \fBrecord\fR\fR
1128 .ad
1129 .br
1130 .na
1131 \fB\fB--as-needed\fR | \fB--no-as-needed\fR\fR
1132 .ad
1133 .sp .6
1134 .RS 4n
1135 Ignores, or records, dynamic dependencies that are not referenced as part of
1136 the link-edit. Ignores, or records, unreferenced \fBELF\fR sections from the
1137 relocatable objects that are read as part of the link-edit. By default,
1138 \fB-z\fR \fBrecord\fR is in effect.
1139 .sp
1140 If an \fBELF\fR section is ignored, the section is eliminated from the output
1141 file being generated. A section is ignored when three conditions are true. The
1142 eliminated section must contribute to an allocatable segment. The eliminated
1143 section must provide no global symbols. No other section from any object that
1144 contributes to the link-edit, must reference an eliminated section.
1145 .RE
1146 
1147 .sp
1148 .ne 2
1149 .na
1150 \fB\fB-z\fR \fBinitarray=\fR\fIfunction\fR\fR
1151 .ad
1152 .sp .6