diff options
Diffstat (limited to 'ld/ld.1')
-rw-r--r-- | ld/ld.1 | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 |