diff options
| author | Alexander Qi <xdqi@users.noreply.github.com> | 2024-07-11 09:38:52 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-10 18:38:52 -0700 |
| commit | 1b3e376ec0a77f7d7d20d0d32047678dafa142ae (patch) | |
| tree | 4f9babf228110f6652e7865ed65f6712f40d77d5 /lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp | |
| parent | 80ff3acd364810ec11efd45c2ce98a1bf9ce0f73 (diff) | |
[lld][ELF] --wrap: Make X weak when __real_X is to avoid undefined symbol errors (#98297)
Fix #98294.
When you specify --wrap=foo, sometimes foo is undefined in any context.
If you declare __real_foo as weak, GNU ld will not attempt to find the
strong symbol foo, instead, it generates a weak undefined symbol.
This pull request imitates this behavior by copying the binding
attribute from __real_foo to foo.
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp')
0 files changed, 0 insertions, 0 deletions
