• Home
  • Raw
  • Download

Lines Matching full:symbols

32 to fall back to the system (Glibc) symbols.
35 `use_allocator: none`, always use the allocator symbols coming from Android's
38 The actual implementation backing malloc symbols in Bionic is up to the board
90 On most platform, Chrome overrides the malloc / operator new symbols (and
95 symbols in different places of the codebase. The unified allocator shim is
109 | symbols definition | | implementation | | allocator |
111 | - libc symbols (malloc, | | - Security checks | | - tcmalloc |
113 | - C++ symbols (operator | | that can intercept | | - Android |
115 | - glibc weak symbols | | allocations | | - WinHeap |
120 **1. malloc symbols definition**
121 This stage takes care of overriding the symbols `malloc`, `free`,
126 *On Linux/CrOS*: the allocator symbols are defined as exported global symbols
130 This enables proper interposition of malloc symbols referenced by the main
133 Additionally, when tcmalloc is the default allocator, some extra glibc symbols
142 `dlopen()` (symbols from `dlopen()`-ed libraries get a different resolution
147 - All references to allocator symbols in the Chrome codebase to be rewritten as
148 references to `__wrap_malloc` and friends. The `__wrap_malloc` symbols are
151 - The reference to the original `malloc` symbols (which typically is defined by
153 friends symbols (which will be relocated, at load time, against `malloc`).
156 undefined symbol references to malloc symbols.
157 These symbols will be resolved against libc.so as usual.
177 **How does the Windows shim layer replace the malloc symbols?**
180 free as weak symbols. Because of this, they cannot be overridden. To work