Commit graph

24109 commits

Author SHA1 Message Date
dimitry
ab0a1d5cd6 Merge "Fix dlopen_vdso test" am: 1d297d2654
am: c46b602403

Change-Id: I9e7ce728b318b609edcc069b6e4b705b5862a651
2017-10-11 19:30:45 +00:00
dimitry
c46b602403 Merge "Fix dlopen_vdso test"
am: 1d297d2654

Change-Id: I3651d5f5a200c42ca1d67a2db8e01fa602b45eb8
2017-10-11 19:26:56 +00:00
Treehugger Robot
1d297d2654 Merge "Fix dlopen_vdso test" 2017-10-11 19:17:10 +00:00
dimitry
b9555a9251 Fix dlopen_vdso test
arm32 is still missing vdso (at least on some kernels).
This commit adds explicit check for it and skip the test
if AT_SYSINFO_EHDR is not set.

Test: run 32bit bionic-unit-tests --gtest_filter=dlfcn.dlopen_vdso on angler
Change-Id: I7fae78c6a4f819601a4ac9e8e1da53ff07c833ff
2017-10-11 18:04:05 +02:00
Kazuhiro Inaba
a1933210ef Merge "Fix fcntrl#tee test to use the same expected/actual buffer size." am: a52555d356
am: 67c73cde0b

Change-Id: I88ae353aec590a61b296da587e98b08ca4bb7d53
2017-10-10 23:49:19 +00:00
Kazuhiro Inaba
67c73cde0b Merge "Fix fcntrl#tee test to use the same expected/actual buffer size."
am: a52555d356

Change-Id: Ia36fec06e3a88ade750999b544e28fed0ac80d5d
2017-10-10 23:45:40 +00:00
Treehugger Robot
a52555d356 Merge "Fix fcntrl#tee test to use the same expected/actual buffer size." 2017-10-10 23:32:52 +00:00
Dan Albert
7475c05b7b Merge "Fix "Add a legacy inline for mmap64"." am: 983c2da84c
am: 46db501b56

Change-Id: Ie3d116c47107d1e41c936060f7fea311d7013809
2017-10-07 01:10:11 +00:00
Dan Albert
46db501b56 Merge "Fix "Add a legacy inline for mmap64"."
am: 983c2da84c

Change-Id: Iafbe4682b9b56234c5c41fa8d708a437e7a584ae
2017-10-07 01:04:40 +00:00
Treehugger Robot
983c2da84c Merge "Fix "Add a legacy inline for mmap64"." 2017-10-07 00:56:41 +00:00
Dan Albert
8c2323c697 Fix "Add a legacy inline for mmap64".
Autosubmit fired before the CL was actually ready (forgot to hit "y"
on the repo upload).

Test: make checkbuild
Test: copied into the NDK and ran mmap64_fob64 test.
Bug: lots
Change-Id: I8c0400a703f319e8e230f7ba9178009ed7c88be0
2017-10-06 16:01:36 -07:00
Dan Albert
4edffaaca4 Merge "Add a legacy inline for mmap64." am: 3dacc47642
am: 9ba8f1a1f3

Change-Id: I247b2ea68ae05f8aa69d99aba61c47f52e1ab022
2017-10-06 22:34:22 +00:00
Dan Albert
9ba8f1a1f3 Merge "Add a legacy inline for mmap64."
am: 3dacc47642

Change-Id: I59effeef4a090a6ae60a53fb53125056f1a78780
2017-10-06 22:31:05 +00:00
Treehugger Robot
3dacc47642 Merge "Add a legacy inline for mmap64." 2017-10-06 22:20:54 +00:00
Christopher Ferris
01b47c2ab7 Merge "Add directives to force stop unwinding." am: e387c2f088
am: a5602823f4

Change-Id: Ife2f3ca03e6527fd8b78cf8463f7fabdb205b6a3
2017-10-06 17:13:59 +00:00
Christopher Ferris
a5602823f4 Merge "Add directives to force stop unwinding."
am: e387c2f088

Change-Id: I14af81eb40eafdbc93c98c7e14f42f79f61e465a
2017-10-06 17:11:56 +00:00
Christopher Ferris
e387c2f088 Merge "Add directives to force stop unwinding." 2017-10-06 17:08:34 +00:00
Dan Albert
a613d0df5c Add a legacy inline for mmap64.
While this was never an inline, this function alone has caused most of
the bug reports related to _FILE_OFFSET_BITS=64. Providing an inline
for it should allow a lot more code to build with _FILE_OFFSET_BITS=64
when targeting pre-L.

Test: make checkbuild
Test: built trivial cc_binary for LP32 against API 14 with
      _FILE_OFFSET_BITS=64 set
Bug: lots
Change-Id: I8479d34af4da358c11423bee43d45b59e9d4143e
2017-10-05 23:41:47 -07:00
Elliott Hughes
f19357a158 Merge "More POSIX limits cleanup." am: 7181e53cfe
am: 0b071dfeed

Change-Id: I3f1178ee76943f8bffbdb2eab0265aa19f37b9eb
2017-10-06 02:26:11 +00:00
Elliott Hughes
0b071dfeed Merge "More POSIX limits cleanup."
am: 7181e53cfe

Change-Id: I5e66807d3bf2aeb3cd747965e4cc31f317b0fd99
2017-10-06 02:22:33 +00:00
Elliott Hughes
7181e53cfe Merge "More POSIX limits cleanup." 2017-10-06 02:17:26 +00:00
Elliott Hughes
aaf83e8051 More POSIX limits cleanup.
http://man7.org/linux/man-pages/man7/posixoptions.7.html is a very useful
quick reference to what these are supposed to mean.

Bug: http://b/32776472
Test: ran tests
Change-Id: Icea6812d6075e663885844d7424aa6cf73d6284a
2017-10-05 16:18:10 -07:00
Christopher Ferris
93ea09f65c Add directives to force stop unwinding.
On aarch64/x86/x86_64 add a macro that inserts a cfi directive that will
stop unwinding.

For arm, clang doesn't allow emitting .cantunwind, so add a comment and
leave it the same as it current is.

Add this macro to __libc_init and __start_thread.

Also, remove duplicate compilation of libc_init_static.cpp that already
includes the static library that includes that file.

Bug: 15469122

Test: Did unwinds using new unwinder tool (unwind) and debuggerd -b
Test: and verified new unwinder works on aarch64/x86/x86_64.
Test: Verified that it works on old unwinder for aarch64/x86, but
Test: x86_64 doesn't work properly, but as well as before.
Change-Id: I77302e8f6c7ba1549d98a4a164106ee82c9ecadc
2017-10-05 15:18:47 -07:00
Dimitry Ivanov
4f6f747fb2 Merge "Make libdl symbols weak." am: dd53eca085
am: 7bc161758f

Change-Id: I138333b4b9b10ed0df4e59fa7cf97da6fdb3cc7b
2017-10-05 21:51:50 +00:00
Dimitry Ivanov
7bc161758f Merge "Make libdl symbols weak."
am: dd53eca085

Change-Id: Ib8cd38bddc6dd2da3505f3732129b031f17c3bdd
2017-10-05 21:49:09 +00:00
Dimitry Ivanov
dd53eca085 Merge "Make libdl symbols weak." 2017-10-05 21:40:24 +00:00
Elliott Hughes
4fc3146765 Merge "POSIX clock cleanup." am: 0a451314b0
am: 71830bea01

Change-Id: Ie9df0f6b0db3e93a608df383381dcf72be42d835
2017-10-05 20:57:11 +00:00
Elliott Hughes
71830bea01 Merge "POSIX clock cleanup."
am: 0a451314b0

Change-Id: I6e99b5d8374991d8dcf4a3f2bcd454d8a459b80a
2017-10-05 20:53:07 +00:00
Elliott Hughes
0a451314b0 Merge "POSIX clock cleanup." 2017-10-05 20:45:39 +00:00
Elliott Hughes
3a8f75d8b0 POSIX clock cleanup.
The newest of these clocks was added in Linux 2.6.12, so no need for runtime
checks.

Add CTS tests that we can actually use the various clocks.

Bug: http://b/67458266
Test: ran tests
Change-Id: I3cfd7982043d6f8d4ebdc2b29e8722334f443ce5
2017-10-05 10:33:18 -07:00
dimitry
c5ea3ebd71 Make libdl symbols weak.
Also make a static library which can be used to override these symbols
in other implementations of libdl.so

Test: make
Change-Id: Id433bb07ecbfc4955c3fb7591ace971c2cda7862
2017-10-05 18:27:00 +02:00
Dan Willemsen
ce5514d287 Merge "Make bionic tests build for linux_bionic" am: 7c6784061d
am: 0b537c2773

Change-Id: I597f84c5db99bfa28527db347d4eec2b54049749
2017-10-04 20:48:40 +00:00
Dan Willemsen
0b537c2773 Merge "Make bionic tests build for linux_bionic"
am: 7c6784061d

Change-Id: I9c1e6624fcf91ef896d07c8f2d183d31af5a0543
2017-10-04 20:38:37 +00:00
Treehugger Robot
7c6784061d Merge "Make bionic tests build for linux_bionic" 2017-10-04 20:13:33 +00:00
Jiyong Park
ab0ed22e66 Merge "Revert "linker: disable ld.config.txt in ASAN mode"" am: 3e8584d4a7
am: 5a437c52b7

Change-Id: I1b18c39a6bf8195033df25706441dcf44bc4d0c4
2017-10-04 00:47:24 +00:00
Jiyong Park
5a437c52b7 Merge "Revert "linker: disable ld.config.txt in ASAN mode""
am: 3e8584d4a7

Change-Id: Ibd59bae623157bfddc6f57514a2bfca5dedba065
2017-10-04 00:44:09 +00:00
Treehugger Robot
3e8584d4a7 Merge "Revert "linker: disable ld.config.txt in ASAN mode"" 2017-10-04 00:32:47 +00:00
Elliott Hughes
bdfb4de423 Merge "Sync internal and external master." am: 42f3bd0ffc
am: e8f384c61b

Change-Id: Idb78988c7e808bd0d111c19bae612128e56fb7c1
2017-10-04 00:22:37 +00:00
Elliott Hughes
fb88ac00df Merge "Fix pthread_leak test flakiness." am: 11dfca4c4a
am: 8863421ad1

Change-Id: I4660803a77a74fade58cd952b6203edd8e6563dc
2017-10-04 00:22:11 +00:00
Elliott Hughes
e8f384c61b Merge "Sync internal and external master."
am: 42f3bd0ffc

Change-Id: I949286a4a4ceb597de82f6309d728595cf6b3c25
2017-10-04 00:15:54 +00:00
Elliott Hughes
8863421ad1 Merge "Fix pthread_leak test flakiness."
am: 11dfca4c4a

Change-Id: I9a0243d825adde0affaa0d8ac7c9913f6c0f4b7e
2017-10-04 00:15:18 +00:00
Treehugger Robot
42f3bd0ffc Merge "Sync internal and external master." 2017-10-04 00:10:31 +00:00
Elliott Hughes
11dfca4c4a Merge "Fix pthread_leak test flakiness." 2017-10-04 00:04:59 +00:00
Dan Willemsen
268ae362cd Make bionic tests build for linux_bionic
Adds a necessary library, and disables the glibc host tests when
building for bionic host.

Bug: 31559095
Test: mmma bionic
Change-Id: Ie825db59a21bf8e9b4dbdadc63ff14bf8da23087
2017-10-03 16:30:21 -07:00
Jiyong Park
2af16265a7 Merge "Don't run exec_with_ld_config_file* tests on non-production devices" am: ec6c3975ff
am: a3906161fa

Change-Id: I047acb4dc6927a3365d9ba75d0fd185668ca60fd
2017-10-03 23:25:28 +00:00
Jiyong Park
a3906161fa Merge "Don't run exec_with_ld_config_file* tests on non-production devices"
am: ec6c3975ff

Change-Id: Iebd56c6c0f9c916a7b298c170575cac546e55079
2017-10-03 23:22:34 +00:00
Treehugger Robot
ec6c3975ff Merge "Don't run exec_with_ld_config_file* tests on non-production devices" 2017-10-03 23:17:15 +00:00
Jiyong Park
1a524d6248 Revert "linker: disable ld.config.txt in ASAN mode"
This reverts commit 81b175747d.

Reason: 02586a2a34 fixed the bug that
prevented us from using LD_PRELOAD with multiple namespaces.

Bug: 38114603
Test: 1. ./external/compiler-rt/lib/asan/scripts/asan_device_setup --lib
prebuilts/clang/host/linux-x86/clang-stable/lib64/clang/5.0/lib/linux
2. enable talkback shortcut
3. in the home screen, hold vol-up/down together
4. device does not reboots and talkback shortcut is toggled
Test: bionic-unit-tests and linker-unit-tests successful

(cherry picked from commit 6ab40bbf53)

Merged-In: I25a05927ffbb28b9fa72303652893f43918ccec6
Change-Id: If264f0ce5d7187816d3acc790b6e31d479b628ee
2017-10-04 07:32:28 +09:00
Elliott Hughes
71fb19589b Merge "Pre-size the vector in the pthread_create ENOMEM test." am: 48fbf91672
am: c56d884b97

Change-Id: Ie251cf2eb25da9e7bd1a49b9fe7fb82a3e702cbb
2017-10-03 22:30:46 +00:00
Elliott Hughes
c56d884b97 Merge "Pre-size the vector in the pthread_create ENOMEM test."
am: 48fbf91672

Change-Id: Ided7a949a3d5f9f8cf8ae7aa123b4aac64758fbe
2017-10-03 22:23:56 +00:00