Skip to content

Commit 9b2b327

Browse files
committed
[LLD] [ELF] Fix up a comment regarding the --wrap option. NFC.
Add missing leading underscores to the __wrap_<symbol> and __real_<symbol> names. Differential Revision: https://reviews.llvm.org/D89008
1 parent b4ffc40 commit 9b2b327

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lld/ELF/Driver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,9 +1837,9 @@ template <class ELFT> void LinkerDriver::compileBitcodeFiles() {
18371837

18381838
// The --wrap option is a feature to rename symbols so that you can write
18391839
// wrappers for existing functions. If you pass `-wrap=foo`, all
1840-
// occurrences of symbol `foo` are resolved to `wrap_foo` (so, you are
1841-
// expected to write `wrap_foo` function as a wrapper). The original
1842-
// symbol becomes accessible as `real_foo`, so you can call that from your
1840+
// occurrences of symbol `foo` are resolved to `__wrap_foo` (so, you are
1841+
// expected to write `__wrap_foo` function as a wrapper). The original
1842+
// symbol becomes accessible as `__real_foo`, so you can call that from your
18431843
// wrapper.
18441844
//
18451845
// This data structure is instantiated for each -wrap option.

0 commit comments

Comments
 (0)