OSDN Git Service

Inline helpers need to be exported unmangled.
authorDan Albert <danalbert@google.com>
Tue, 7 Oct 2014 18:10:36 +0000 (11:10 -0700)
committerElliott Hughes <enh@google.com>
Wed, 8 Oct 2014 01:51:24 +0000 (18:51 -0700)
commit55ee845b8ec0861d09197b32fbb5f2d34320155d
tree69eb29683bfd94d7ca209ab06731d873377b3aa2
parentce92b41a00fb86656055eceab9648a858721c3b1
Inline helpers need to be exported unmangled.

__open_2() is used by the fortify implementation of open(2) in
fcntl.h, and as such needs an unmangled C name. For some reason
(inlining?), this doesn't cause problems at the default optimization
level, but does for -O0.

The rest of these didn't cause build failures, but they look suspect
and probably will, we just haven't caught them yet.

(cherry-pick of 658727e111ed6dee7be5239494f0764f7b1b02f8 with conflicts
in stdio.h and string.h.)

Bug: 17784968
Change-Id: I7391a7a8999ee204eaf6abd14a3d5373ea419d5b
libc/bionic/__fgets_chk.cpp
libc/bionic/__recvfrom_chk.cpp
libc/include/fcntl.h
libc/include/stdio.h
libc/include/string.h
libc/include/sys/select.h
libc/include/sys/socket.h
libc/include/sys/stat.h
libc/include/unistd.h