diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-03-12 23:39:18 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-03-12 23:39:18 +0000 |
commit | e3d73386d704f9fdd4c3c2bd87531cbc5f4e28d6 (patch) | |
tree | 3315be13f078607db0e3279c8a1b64bd8f3d09bc /ld/ld.1 | |
parent | 8881b321e06d93be5b37a5504359347b0e104bf0 (diff) | |
download | gdb-e3d73386d704f9fdd4c3c2bd87531cbc5f4e28d6.zip gdb-e3d73386d704f9fdd4c3c2bd87531cbc5f4e28d6.tar.gz gdb-e3d73386d704f9fdd4c3c2bd87531cbc5f4e28d6.tar.bz2 |
* lexsup.c (parse_args): Handle --wrap.
* ldmain.c (main): Initialize link_info.wrap_hash.
* ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
and NAME cases.
* ld.texinfo, ld.1: Document --wrap.
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 |