OSDN Git Service

Ignore all __weak_alias in OpenBSD libC.
authorChih-Hung Hsieh <chh@google.com>
Thu, 28 Aug 2014 18:47:48 +0000 (11:47 -0700)
committerChih-Hung Hsieh <chh@google.com>
Thu, 28 Aug 2014 22:10:01 +0000 (15:10 -0700)
commitb6b5cb53895a2d5e94368f14a25ccfaf807eacad
tree5ac04324d7b522369d8487ba142d6c59c9ed5406
parentfbe9d3dfeb0e09c0e4aa3221aace8249c0efe881
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
libc/include/sys/cdefs_elf.h
libc/upstream-netbsd/android/include/namespace.h
libc/upstream-openbsd/android/include/openbsd-compat.h