mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
mtrace: Add attribute nocommon to mallwatch
Avoid compilation errors GCC versions that do not default to
-fno-common, e.g. GCC <= 9.
Fixes commit 00d28960c5
("mtrace:
Deprecate mallwatch and tr_break").
Suggested-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Suggested-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
@ -59,7 +59,7 @@ __libc_lock_define_initialized (static, lock);
|
||||
case some applications ended up linking against them but they don't actually
|
||||
do anything anymore; not that they did much before anyway. */
|
||||
|
||||
void *mallwatch;
|
||||
void *mallwatch __attribute__ ((nocommon));
|
||||
compat_symbol (libc, mallwatch, mallwatch, GLIBC_2_0);
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user