diff options
author | Dan Albert <danalbert@google.com> | 2018-01-08 14:44:42 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2018-01-08 14:44:42 -0800 |
commit | 4d1cc9df119e017abb4f71b9198e5024afd2d7ad (patch) | |
tree | d985346e036a46931b0c370ed6ed1524279116ba /linker/linker_libcxx_support.cpp | |
parent | 558a4f59237245916d93075eb60ed7d16cf55c42 (diff) |
Adapt to the new libc++/libc++abi update.
C++17 removed a handful of things that are used in the libclang
headers, which are used by the versioner. Enable the flag that
re-exposes these until we have a C++17 compatible libclang.
Add a stub posix_memalign to the linker. libc++abi uses posix_memalign
when allocating exceptions, which the linker does not use.
Test: make checkbuild
Bug: None
Change-Id: I32f9d0591ef99a610f27efed90a5c9fd150f0d3e
Diffstat (limited to 'linker/linker_libcxx_support.cpp')
-rw-r--r-- | linker/linker_libcxx_support.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linker/linker_libcxx_support.cpp b/linker/linker_libcxx_support.cpp index 41ed8bcd6..3d15b3398 100644 --- a/linker/linker_libcxx_support.cpp +++ b/linker/linker_libcxx_support.cpp @@ -35,3 +35,7 @@ void* __find_icu_symbol(const char* symbol_name __attribute__((__unused__))) { extern "C" int __cxa_type_match() { async_safe_fatal("__cxa_type_match is not implemented in the linker"); } + +int posix_memalign(void**, size_t, size_t) { + async_safe_fatal("posix_memalign is not implemented in the linker"); +} |