Skip to content

Commit d803102

Browse files
committed
Update man-page for -fpic, -fpie, and -fshared options.
1 parent 32272ff commit d803102

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

doc/ccomp.1

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,20 @@ Enabled by default.
203203
Turn on/off use of FP registers for some integer operations.
204204
Enabled by default.
205205
.
206+
.TP
207+
.BR \-fpic ", " \-fno\-pic
208+
Turn on/off position-independent code (PIC).
209+
Currently available only for AArch64, RISC-V and x86 64-bit target platforms.
210+
On other platforms, \fB-fpic\fP has no effect but emits a warning.
211+
Disabled by default.
212+
.
213+
.TP
214+
.BR \-fpie ", " \-fno\-pie
215+
Turn on/off position-independent executables (PIE).
216+
Currently available only for AArch64, RISC-V and x86 64-bit target platforms.
217+
On other platforms, \fB-fpie\fP has no effect but emits a warning.
218+
Enabled by default.
219+
.
206220
.SS
207221
Code Generation Options (PowerPC)
208222
.INDENT 0.0
@@ -303,10 +317,20 @@ Pass comma separated arguments in <args> to the driver program used for linking.
303317
Pass argument <arg> to the linker.
304318
.
305319
.TP
320+
.B \-pie
321+
Produce a position-independent executable (PIE).
322+
Default for AArch64, RISC-V and x86 64-bit target platforms.
323+
Use \fB-fno\-pie\fP to force the production of an absolute executable.
324+
.
325+
.TP
306326
.B \-s
307327
Remove all symbol table and relocation information from the executable.
308328
.
309329
.TP
330+
.B \-shared
331+
Produce a shared library (".so" file) instead of an executable.
332+
.
333+
.TP
310334
.B \-static
311335
Prevent linking with the shared libraries.
312336
.

0 commit comments

Comments
 (0)