aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.1
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ld.1')
-rw-r--r--ld/ld.116
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/ld.1 b/ld/ld.1
index 802926c..ccc47dd 100644
--- a/ld/ld.1
+++ b/ld/ld.1
@@ -123,6 +123,9 @@ ld \- the GNU linker
.RB "[\|" \-warn\-once "\|]"
.RB "[\|" \-\-whole\-archive "\|]"
.RB "[\|" \-\-no\-whole\-archive "\|]"
+.RB "[\|" "\-\-wrap\ "\c
+.I symbol\c
+\&\|]
.RB "[\|" \-X "\|]"
.RB "[\|" \-x "\|]"
.ad b
@@ -934,6 +937,19 @@ Turn off the effect of the
option for archives which appear later on the command line.
.TP
+.BI "--wrap " "symbol"
+Use a wrapper function for
+.I symbol.
+Any undefined reference to
+.I symbol
+will be resolved to
+.BI "__wrap_" "symbol".
+Any undefined reference to
+.BI "__real_" "symbol"
+will be resolved to
+.I symbol.
+
+.TP
.B \-X
Delete all temporary local symbols. For most targets, this is all local
symbols whose names begin with `\|\c