summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/tests/malloc_hooks_tests.cpp
diff options
context:
space:
mode:
authorLogan Chien <loganchien@google.com>2019-08-27 20:50:24 -0700
committerLogan Chien <loganchien@google.com>2019-08-30 10:17:36 -0700
commitb33952c777dc3068dbcdafcc14a58ed91064bd2d (patch)
tree7e4752b7a80e548e1d7b161f6477ba5fb622e53b /libc/malloc_hooks/tests/malloc_hooks_tests.cpp
parent235aad1981cf06525b35c9a3bbcbc9fbca6a8e60 (diff)
versioner: Fix bzero/bcopy fortify
This commit replaces `bzero` with `__bionic_bzero` and `bcopy` with `__bionic_bcopy` because `bzero` and `bcopy` are partially defined in `libc.map.txt`. Bionic versioner raises errors because versioner treats static inline functions as exported function definitions then it compares the availability with the information specified in `libc.map.txt`. This commit fixes the problem by replacing static inline functions into `__bionic_{bzero,bcopy}` and defining aliases for source-level compatibility. Test: PATH=$(pwd)/prebuilts/clang-tools/linux-x86/bin:$PATH \ bionic/tools/versioner/run_tests.py Bug: 140110040 Change-Id: I97f2f0dc0abccd0a9fcfe5bb02f4e918362d35cc
Diffstat (limited to 'libc/malloc_hooks/tests/malloc_hooks_tests.cpp')
0 files changed, 0 insertions, 0 deletions