File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,21 @@ Changes to LLDB
182
182
183
183
Changes to Sanitizers
184
184
---------------------
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() { ... }
185
200
186
201
187
202
Other Changes
You can’t perform that action at this time.
0 commit comments