diff options
author | Chih-Hung Hsieh <chh@google.com> | 2014-08-28 11:47:48 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2014-08-28 15:10:01 -0700 |
commit | b6b5cb53895a2d5e94368f14a25ccfaf807eacad (patch) | |
tree | 5ac04324d7b522369d8487ba142d6c59c9ed5406 /libc/upstream-netbsd | |
parent | fbe9d3dfeb0e09c0e4aa3221aace8249c0efe881 (diff) | |
download | bionic-b6b5cb53895a2d5e94368f14a25ccfaf807eacad.zip bionic-b6b5cb53895a2d5e94368f14a25ccfaf807eacad.tar.gz bionic-b6b5cb53895a2d5e94368f14a25ccfaf807eacad.tar.bz2 |
Ignore all __weak_alias in OpenBSD libC.
GCC assembler allows xyz to be redeclared as weak,
by __weak_alias(xyz, _xyz), while _xyz is undefined.
Clang does not like that but silently generates no code.
It will reject its own .s file if the assembly code is saved first.
Since we have no reason to define xyz or _xyz as weak symbol now,
and _xyz is a macro to xyz, we simplify libC to have only
xyz defined as global.
BUG: 17186746
Change-Id: I24b154425838683cae69248cc750c59e26fd5467
Diffstat (limited to 'libc/upstream-netbsd')
-rw-r--r-- | libc/upstream-netbsd/android/include/namespace.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libc/upstream-netbsd/android/include/namespace.h b/libc/upstream-netbsd/android/include/namespace.h index 5df543c..630ea9b 100644 --- a/libc/upstream-netbsd/android/include/namespace.h +++ b/libc/upstream-netbsd/android/include/namespace.h @@ -17,11 +17,6 @@ #ifndef _BIONIC_NETBSD_NAMESPACE_H_included #define _BIONIC_NETBSD_NAMESPACE_H_included -// NetBSD uses __weak_alias on a lot of functions. We don't want that. -#if defined(__weak_alias) -#undef __weak_alias -#endif - __LIBC_HIDDEN__ int __res_enable_mt(void); __LIBC_HIDDEN__ int __res_disable_mt(void); |