1libc {
2  GLIBC_2.0 {
3    # global variables
4    _obstack;
5
6    # interface of malloc functions
7    __libc_calloc; __libc_free; __libc_mallinfo; __libc_malloc;
8    __libc_mallopt; __libc_memalign; __libc_pvalloc; __libc_realloc;
9    __libc_valloc;
10    __malloc_initialize_hook; __free_hook; __malloc_hook; __realloc_hook;
11    __memalign_hook; __after_morecore_hook;
12    __default_morecore; __morecore;
13
14    # functions used in inline functions or macros
15    _obstack_allocated_p; _obstack_begin; _obstack_begin_1;
16    _obstack_free; _obstack_memory_used; _obstack_newchunk;
17
18    # variables in normal name space
19    mallwatch; obstack_alloc_failed_handler; obstack_exit_failure;
20
21    # c*
22    calloc; cfree;
23
24    # f*
25    free;
26
27    # m*
28    mallinfo; malloc; malloc_stats;
29    malloc_trim; malloc_usable_size; mallopt; mcheck; memalign; mprobe; mtrace;
30    muntrace;
31
32    # o*
33    obstack_free;
34
35    # p*
36    pvalloc;
37
38    # r*
39    realloc;
40
41    # t*
42    tr_break;
43
44    # v*
45    valloc;
46  }
47  GLIBC_2.1 {
48    # Special functions.
49    __libc_freeres;
50  }
51  GLIBC_2.2 {
52    # m*
53    mcheck_check_all; mcheck_pedantic;
54
55    # p*
56    posix_memalign;
57  }
58  GLIBC_2.10 {
59    malloc_info;
60  }
61  GLIBC_2.16 {
62    aligned_alloc;
63  }
64  GLIBC_2.26 {
65    reallocarray;
66  }
67  GLIBC_2.33 {
68    mallinfo2;
69  }
70  GLIBC_PRIVATE {
71    # Internal startup hook for libpthread.
72    __libc_malloc_pthread_startup;
73
74    # Internal destructor hook for libpthread.
75    __libc_thread_freeres;
76
77    # struct scratch_buffer support
78    __libc_scratch_buffer_dupfree;
79    __libc_scratch_buffer_grow;
80    __libc_scratch_buffer_grow_preserve;
81    __libc_scratch_buffer_set_array_size;
82
83    # Internal name for reallocarray
84    __libc_reallocarray;
85
86    # dynarray support
87    __libc_dynarray_at_failure;
88    __libc_dynarray_emplace_enlarge;
89    __libc_dynarray_finalize;
90    __libc_dynarray_resize;
91    __libc_dynarray_resize_clear;
92
93    # struct alloc_buffer support
94    __libc_alloc_buffer_alloc_array;
95    __libc_alloc_buffer_allocate;
96    __libc_alloc_buffer_copy_bytes;
97    __libc_alloc_buffer_copy_string;
98    __libc_alloc_buffer_create_failure;
99  }
100}
101
102# Keep in sync with symbols in libc.
103libc_malloc_debug {
104  GLIBC_2.0 {
105    calloc;
106    free;
107    malloc;
108    memalign;
109    pvalloc;
110    realloc;
111    valloc;
112
113    __free_hook;
114    __malloc_hook;
115    __memalign_hook;
116    __realloc_hook;
117
118    mcheck;
119    mprobe;
120    mtrace;
121    muntrace;
122
123    mallinfo;
124    malloc_get_state;
125    malloc_set_state;
126    malloc_stats;
127    malloc_trim;
128    malloc_usable_size;
129    mallopt;
130  }
131  GLIBC_2.2 {
132    mcheck_check_all;
133    mcheck_pedantic;
134    posix_memalign;
135  }
136  GLIBC_2.10 {
137    malloc_info;
138  }
139  GLIBC_2.16 {
140    aligned_alloc;
141  }
142  GLIBC_2.33 {
143    mallinfo2;
144  }
145}
146