Skip to content

Commit 892a7b4

Browse files
authored
Merge pull request #6699 from apple/rsundahl/docweakswift5.9
Rsundahl/docweakswift5.9
2 parents 936295b + b5ae063 commit 892a7b4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

llvm/docs/ReleaseNotes.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,21 @@ Changes to LLDB
182182

183183
Changes to Sanitizers
184184
---------------------
185+
* For Darwin users that override weak symbols, note that the dynamic linker will
186+
only consider symbols in other mach-o modules which themselves contain at
187+
least one weak symbol. A consequence is that if your program or dylib contains
188+
an intended override of a weak symbol, then it must contain at least one weak
189+
symbol as well for the override to take effect.
190+
191+
Example:
192+
193+
.. code-block:: c
194+
195+
// Add this to make sure your override takes effect
196+
__attribute__((weak,unused)) unsigned __enableOverrides;
197+
198+
// Example override
199+
extern "C" const char *__asan_default_options() { ... }
185200
186201
187202
Other Changes

0 commit comments

Comments
 (0)