OSDN Git Service
Elliott Hughes [Wed, 30 Nov 2016 23:22:31 +0000 (23:22 +0000)]
Merge "Abort harder."
am:
68ddf5cad3
Change-Id: I7eee73e41bf2c64efe2a840f4770808782629dee
Elliott Hughes [Wed, 30 Nov 2016 23:06:26 +0000 (23:06 +0000)]
Merge "Abort harder."
Evgenii Stepanov [Wed, 30 Nov 2016 21:50:33 +0000 (21:50 +0000)]
Merge changes Iade6a185,Iab3050bd
am:
f347046f2d
Change-Id: I804f5f0eca2baa6fd4135f6fdfa8def543751a5a
Evgenii Stepanov [Wed, 30 Nov 2016 21:50:31 +0000 (21:50 +0000)]
Cleanup: replace sanitize:never with address:false.
am:
bc232b9f34
Change-Id: I1e1ed64c25672646d7a3a465e7edf3356d3163eb
Josh Gao [Wed, 30 Nov 2016 21:50:26 +0000 (21:50 +0000)]
Add __libc_arc4random_unlimited_entropy.
am:
585fc3e554
Change-Id: Ie14370e99ced180f5031c7a9bb1ac938184fc094
Evgenii Stepanov [Wed, 30 Nov 2016 21:34:04 +0000 (21:34 +0000)]
Merge changes Iade6a185,Iab3050bd
* changes:
Cleanup: replace sanitize:never with address:false.
Add __libc_arc4random_unlimited_entropy.
Dan Albert [Wed, 30 Nov 2016 19:55:45 +0000 (19:55 +0000)]
Merge "Ship all the UAPI bits."
am:
f563ae89be
Change-Id: I1465164f5a9498c8962dca5bae89cea977c1dea0
Treehugger Robot [Wed, 30 Nov 2016 19:43:29 +0000 (19:43 +0000)]
Merge "Ship all the UAPI bits."
Josh Gao [Wed, 30 Nov 2016 19:34:17 +0000 (19:34 +0000)]
Merge "Correct the return types of readv and writev."
am:
04a3b24d7e
Change-Id: Ifb0bab889ecb0847cf7b5af97bf706bd00eb3f99
Treehugger Robot [Wed, 30 Nov 2016 19:26:05 +0000 (19:26 +0000)]
Merge "Correct the return types of readv and writev."
Neil Fuller [Wed, 30 Nov 2016 11:25:22 +0000 (11:25 +0000)]
Merge "Update timezone data to 2016j"
am:
fa1a85d003
Change-Id: Icd6dd33712ee1ba21d2c6fcc7cd9b69232f6d140
Neil Fuller [Wed, 30 Nov 2016 11:16:38 +0000 (11:16 +0000)]
Merge "Update timezone data to 2016j"
Elliott Hughes [Wed, 30 Nov 2016 00:59:26 +0000 (16:59 -0800)]
Abort harder.
Some PoS internal system can't cope with more than 4 stack frames,
so the fact that our abort(3) implementation takes 4 frames by itself
makes it useless.
Re-reading POSIX, it only says "behaves as if", so the previous
implementation chain wasn't mandatory and we can just go straight to
calling tgkill...
Before:
#00 pc
0000000000069be4 /system/lib64/libc.so (tgkill+8)
#01 pc
0000000000066d50 /system/lib64/libc.so (pthread_kill+64)
#02 pc
0000000000028110 /system/lib64/libc.so (raise+24)
#03 pc
000000000001d4ec /system/lib64/libc.so (abort+52)
After:
#00 pc
0000000000069bc8 /system/lib64/libc.so (tgkill+8)
#01 pc
000000000001d4c8 /system/lib64/libc.so (abort+80)
#02 pc
0000000000001494 /system/xbin/crasher64 (_ZL9do_actionPKc+872)
#03 pc
00000000000010e0 /system/xbin/crasher64 (main+88)
This is less useful on 32-bit ARM because there there's an extra trampoline
from an assembler abort(3) implementation, so you'll still only get one
meaningful stack frame. But every other architecture will now get two!
But wait!
It turns out that the assembler hack isn't needed any more. Here we are
unwinding just fine all the way through the 32-bit ARM crasher:
Before (with direct call to tgkill but still using the assembler):
#00 pc
00049e7c /system/lib/libc.so (tgkill+12)
#01 pc
00019c6f /system/lib/libc.so (__libc_android_abort+50)
#02 pc
000181f8 /system/lib/libc.so (abort+4)
#03 pc
00001025 /system/xbin/crasher (_ZL9do_actionPKc+656)
#04 pc
00017721 /system/lib/libc.so (__libc_init+48)
#05 pc
00000b38 /system/xbin/crasher (_start+96)
After:
#00 pc
00049e6c /system/lib/libc.so (tgkill+12)
#01 pc
00019c5f /system/lib/libc.so (abort+50)
#02 pc
00001025 /system/xbin/crasher (_ZL9do_actionPKc+656)
#03 pc
00017721 /system/lib/libc.so (__libc_init+48)
#04 pc
00000b38 /system/xbin/crasher (_start+96)
(As you can see, the fact that we see __libc_init rather than main was true
with the assembler stub too, so that's not a regression even if it does seem
odd...)
Bug: N/A
Test: ran crasher64
Change-Id: I9dd5b214c495604c8b502c7ec0de3631080d8c29
Elliott Hughes [Wed, 30 Nov 2016 05:54:41 +0000 (05:54 +0000)]
Merge "Fix getpriority/setpriority types."
am:
609880c12f
Change-Id: I33de9bd9710164a4b56c30491fd51b20ac5c34f8
Elliott Hughes [Wed, 30 Nov 2016 05:54:28 +0000 (05:54 +0000)]
Merge "Fix return type of sync(2)."
am:
3b6b2f7c2d
Change-Id: I56f6dc1e6a9a454f6691d71ea6f03b0fd6a034e2
Treehugger Robot [Wed, 30 Nov 2016 05:49:03 +0000 (05:49 +0000)]
Merge "Fix getpriority/setpriority types."
Treehugger Robot [Wed, 30 Nov 2016 05:42:53 +0000 (05:42 +0000)]
Merge "Fix return type of sync(2)."
Dan Willemsen [Wed, 30 Nov 2016 05:37:56 +0000 (05:37 +0000)]
Merge "Enable libc/libdl/libm/linker for host bionic"
am:
b99b6762b4
Change-Id: I5484525abac921f00ce6e01d0aef4c3a4c9a656a
Dan Willemsen [Wed, 30 Nov 2016 05:32:06 +0000 (05:32 +0000)]
Merge "Enable libc/libdl/libm/linker for host bionic"
Evgenii Stepanov [Wed, 23 Nov 2016 01:36:25 +0000 (17:36 -0800)]
Cleanup: replace sanitize:never with address:false.
Bug:
33091541
Test: NFC
Change-Id: Iade6a1852e7b1f34e06c26ccadcc17bac5d81c14
Josh Gao [Fri, 11 Nov 2016 00:26:44 +0000 (16:26 -0800)]
Add __libc_arc4random_unlimited_entropy.
Let the caller know when libc has an entropy source and arc4random is safe.
This is useful for the callers that want entropy, but don't absolutely need it.
Bug: http://b/
27729263
Test: booted angler-userdebug w/ safestack
Change-Id: Iab3050bd19f23518e1676629573eebc656ba1090
Elliott Hughes [Tue, 29 Nov 2016 23:16:08 +0000 (15:16 -0800)]
Fix return type of sync(2).
Bug: N/A
Test: builds
Change-Id: Ie93f1e8609baf2939c809f673b96248a384695ee
Elliott Hughes [Tue, 29 Nov 2016 23:15:02 +0000 (23:15 +0000)]
Merge "Use icu4c to implement <wctype.h>."
am:
bd734f0716
Change-Id: Id46c588eb1e3502d02f5b7e8bf6a46ad69047fe5
Elliott Hughes [Tue, 29 Nov 2016 23:10:29 +0000 (15:10 -0800)]
Fix getpriority/setpriority types.
Bug: N/A
Test: builds
Change-Id: Ica099bae04a0260871783452811a54672094ba4a
Elliott Hughes [Tue, 29 Nov 2016 23:05:31 +0000 (23:05 +0000)]
Merge "Use icu4c to implement <wctype.h>."
Josh Gao [Tue, 29 Nov 2016 22:26:15 +0000 (14:26 -0800)]
Correct the return types of readv and writev.
readv and writev should return ssize_t, not int.
Bug: none
Test: `m checkbuild` on bullhead
Change-Id: I934c2e8cb7bf76384b63cedfeab88e2f6b65971a
Dan Willemsen [Tue, 29 Nov 2016 01:02:25 +0000 (17:02 -0800)]
Enable libc/libdl/libm/linker for host bionic
Disables debuggerd integration unless building for android.
Bug:
31559095
Test: Diff out/soong/build.ninja before/after, only change is moving
linker's libdebuggerd_client static lib to the beginning of the
list.
Test: lunch aosp_arm64-eng; mmma -j bionic
Change-Id: I62e725f7a9b98b7fe31637d0a835fd5846b0aff0
Elliott Hughes [Tue, 29 Nov 2016 19:25:48 +0000 (19:25 +0000)]
Merge "Implement <langinfo.h>."
am:
86841573ed
Change-Id: I1897be912644f66f2c73865b4d93bf2d0beabf60
Elliott Hughes [Fri, 18 Nov 2016 02:18:08 +0000 (18:18 -0800)]
Use icu4c to implement <wctype.h>.
Pretty useless, because the POSIX APIs are useless for actually
internationalization, but it lets us put this to bed for good.
Bug: http://b/
18492914
Test: bionic tests
Change-Id: I4dd0aff66c44b5547039be3ffea806c865b9014a
Dan Albert [Tue, 29 Nov 2016 19:09:12 +0000 (11:09 -0800)]
Ship all the UAPI bits.
Test: make ndk
Bug: None
Change-Id: I24507846fb62b5844e06d7a424497a5ffc0357d1
Elliott Hughes [Tue, 29 Nov 2016 19:16:08 +0000 (19:16 +0000)]
Merge "Implement <langinfo.h>."
Neil Fuller [Tue, 29 Nov 2016 14:46:05 +0000 (14:46 +0000)]
Update timezone data to 2016j
IANA changes:
Briefly: Saratov, Russia moves from +03 to +04 on 2016-12-04.
Changes to future time stamps
Saratov, Russia switches from +03 to +04 on 2016-12-04 at 02:00.
This hives off a new zone Europe/Saratov from Europe/Volgograd.
(Thanks to Yuri Konotopov and Stepan Golosunov.)
Changes to past time stamps
The new zone Asia/Atyrau for Atyraƫ Region, Kazakhstan, is like
Asia/Aqtau except it switched from +04/+05 to +05/+06 in spring
1999, not fall 1994. (Thanks to Stepan Golosunov.)
Changes to past time zone abbreviations
Asia/Gaza and Asia/Hebron now use "EEST", not "EET", to denote
summer time before 1948. The old use of "EET" was a typo.
Bug:
33136357
Change-Id: I6875bfa35b5d28839b6f4c3272fd9a1715b17aba
Test: CtsLibcoreTestCases / CtsBionicTestCases
Dimitry Ivanov [Mon, 28 Nov 2016 23:09:14 +0000 (23:09 +0000)]
Merge "Fix bionic-unit-tests-glibc"
am:
11b362d284
Change-Id: I0d4ac9cbf001cbc49e35964a7ca607419283a0a4
Treehugger Robot [Mon, 28 Nov 2016 23:01:54 +0000 (23:01 +0000)]
Merge "Fix bionic-unit-tests-glibc"
Christopher Ferris [Mon, 28 Nov 2016 22:43:30 +0000 (22:43 +0000)]
Merge "Add cortex-a7 specific routines."
am:
8c8cd2f3be
Change-Id: I61878678e1007b554f0c6e0a36f1a5e5cb7736e9
Christopher Ferris [Mon, 28 Nov 2016 22:34:28 +0000 (22:34 +0000)]
Merge "Add cortex-a7 specific routines."
Dimitry Ivanov [Fri, 25 Nov 2016 20:23:11 +0000 (12:23 -0800)]
Fix bionic-unit-tests-glibc
Also add another test for dlsym(RTLD_NEXT, ..)
Bug: http://b/
33106624
Test: run bionic-unit-tests-glibc and bionic-unit-tests
Change-Id: I340165d66bf2360b0e3273d3561a08cb5e7bd025
Christopher Ferris [Mon, 28 Nov 2016 19:09:49 +0000 (11:09 -0800)]
Add cortex-a7 specific routines.
Test: Changed angler target to use cortex-a7 and I compiled.
Test: Booted this version on angler and ran bionic-unit-tests.
Change-Id: Ice7f6ea38a2569582161a8e659d7877918c1a45a
Wei Wang [Thu, 24 Nov 2016 04:29:29 +0000 (04:29 +0000)]
Merge "bionic: make NONBLOCK call to getrandom"
am:
1eb0ecb596
Change-Id: Ia993ead6dc380e517686feb0587d5595b252f3a1
Treehugger Robot [Thu, 24 Nov 2016 04:23:01 +0000 (04:23 +0000)]
Merge "bionic: make NONBLOCK call to getrandom"
Wei Wang [Wed, 23 Nov 2016 18:41:35 +0000 (10:41 -0800)]
bionic: make NONBLOCK call to getrandom
By default getrandom() blocks if the entropy pool has not yet been initialized.
This will be an issue when init was first executed in some kernels.
This CL makes a check of getrandom readyness, by adding the GRND_NONBLOCK flag.
In such case, getrandom() does not block returns -1 with errno set to EAGAIN.
Test: on M/S devices
Bug:
33059407
Change-Id: I2a2ba8372a5e1c336852ba2ab77cdaac03c90389
Yabin Cui [Wed, 23 Nov 2016 18:21:19 +0000 (18:21 +0000)]
Merge "Remove CLONE_NEWNS for gettid and getpid cache tests."
am:
d39380cc4d
Change-Id: I1f6da5f7d6717e80c067828241723ba62465d6a6
Yabin Cui [Wed, 23 Nov 2016 18:15:31 +0000 (18:15 +0000)]
Merge "Remove CLONE_NEWNS for gettid and getpid cache tests."
Yabin Cui [Wed, 23 Nov 2016 01:18:10 +0000 (17:18 -0800)]
Remove CLONE_NEWNS for gettid and getpid cache tests.
Using CLONE_NEWNS flag is not related to the tests, and it make
the tests unavailable in cts tests. So remove the flag.
Bug: http://b/
33089743
Test: run CtsBionicTestCases --gtest_filter=unistd*.
Change-Id: I4bda39c6a0c41c9973d275202a3a7f7a1e9bbba3
Dimitry Ivanov [Tue, 22 Nov 2016 01:41:11 +0000 (01:41 +0000)]
Merge "Log call to elf-constructors"
am:
0dafdd4306
Change-Id: I321192705d99952bc9318e33069ab92742c275e3
Treehugger Robot [Tue, 22 Nov 2016 01:27:23 +0000 (01:27 +0000)]
Merge "Log call to elf-constructors"
Josh Gao [Tue, 22 Nov 2016 00:56:22 +0000 (00:56 +0000)]
Merge "versioner: extract strict warnings out of -v into its own flag."
am:
9f9200c2ee
Change-Id: I11126bf948c71cce3c0cd08ddeec1fe1b94570fd
Josh Gao [Tue, 22 Nov 2016 00:56:21 +0000 (00:56 +0000)]
versioner: extract strict warnings out of -v into its own flag.
am:
acc3d80edf
Change-Id: I2bfed6bfb316cda894edec3b944c3440c5fb49c3
Josh Gao [Tue, 22 Nov 2016 00:56:08 +0000 (00:56 +0000)]
Merge "versioner: use a single work queue."
am:
2796894c98
Change-Id: I32ff5aa349d22586e3938896c962870e06efe2a6
Josh Gao [Tue, 22 Nov 2016 00:51:14 +0000 (00:51 +0000)]
Merge "versioner: extract strict warnings out of -v into its own flag."
Josh Gao [Tue, 22 Nov 2016 00:50:58 +0000 (00:50 +0000)]
Merge "versioner: use a single work queue."
Dimitry Ivanov [Mon, 21 Nov 2016 18:44:35 +0000 (10:44 -0800)]
Log call to elf-constructors
Log call to constructors when dlopen logging is enabled.
Bug: http://b/
29458203
Test: bionic-unit-tests --gtest_filter=dl*:Dl*
Change-Id: I0cd591bf147f8f910ae9def1ac4089ef44099aff
Elliott Hughes [Sat, 19 Nov 2016 00:27:29 +0000 (16:27 -0800)]
Implement <langinfo.h>.
POSIX locale only, as usual.
The GNU YESSTR and NOSTR extensions return the empty string in the C locale,
so I haven't bothered supporting them.
Bug: http://b/
1401872
Test: bionic tests
Change-Id: I6846839e4f9f1812344ed5dce0b93f83c0c20eb3
Elliott Hughes [Sat, 19 Nov 2016 00:55:03 +0000 (00:55 +0000)]
Merge "Document more dynamic linker changes."
am:
5fabe02757
Change-Id: I706fa3635c31b8520fcb4ba57245de0b4d926d33
Treehugger Robot [Sat, 19 Nov 2016 00:49:38 +0000 (00:49 +0000)]
Merge "Document more dynamic linker changes."
Elliott Hughes [Fri, 18 Nov 2016 20:28:01 +0000 (12:28 -0800)]
Document more dynamic linker changes.
Based on https://plus.google.com/+ElliottHughes/posts/dtguP8BWkc7?sfc=false.
Bug: http://b/
33001640
Change-Id: I9efedaf1c17a38d4426f030dd252446e4dfbc1cb
Christopher Ferris [Fri, 18 Nov 2016 21:39:17 +0000 (21:39 +0000)]
Merge "Enable malloc debug using environment variables"
am:
c2395be74a
Change-Id: I9d9cfebc646895aaf49fdcffd20ac3ddb098deba
Christopher Ferris [Fri, 18 Nov 2016 21:33:17 +0000 (21:33 +0000)]
Merge "Enable malloc debug using environment variables"
Josh Gao [Fri, 18 Nov 2016 02:59:28 +0000 (02:59 +0000)]
Merge "Add note about pid_max to host test documentation."
am:
a7e74f09b8
Change-Id: I2d000a8bfc7b697a50bd5f268b32d8c2d3380d85
Josh Gao [Fri, 18 Nov 2016 02:55:31 +0000 (02:55 +0000)]
Merge "Add note about pid_max to host test documentation."
Josh Gao [Fri, 18 Nov 2016 02:52:09 +0000 (18:52 -0800)]
Add note about pid_max to host test documentation.
Bug: none
Test: none
Change-Id: I3e446744076131329201543fa29b71fc4f843728
Josh Gao [Thu, 10 Nov 2016 02:22:44 +0000 (18:22 -0800)]
versioner: extract strict warnings out of -v into its own flag.
Bug: None
Test: versioner -v; versioner -s
Change-Id: I8f6ac7064c6f05de0811677f7fcfce929a2568c1
Josh Gao [Thu, 10 Nov 2016 02:01:41 +0000 (18:01 -0800)]
versioner: use a single work queue.
Previously, each thread was assigned a fixed list of work, and the main
thread would block until every thread was finished, leading to most
cores sitting idle for the last few hundred milliseconds while a few
particularly long running threads would keep working. Use a single work
queue to evenly distribute load across the threads.
Bug: http://b/
32748936
Test: python run_tests.py
Change-Id: I80e231ece3b95e2721a32f658905841b89a8dc3b
Josh Gao [Fri, 18 Nov 2016 02:09:53 +0000 (02:09 +0000)]
Merge "versioner: ignore non-header files."
am:
348eaa6480
Change-Id: I8654cb3532cb23f5a1280fc84e11f483d23481a8
Treehugger Robot [Fri, 18 Nov 2016 02:04:24 +0000 (02:04 +0000)]
Merge "versioner: ignore non-header files."
Dimitry Ivanov [Fri, 18 Nov 2016 00:27:43 +0000 (00:27 +0000)]
Merge "Improve dlerror_concurrent test"
am:
ada292531e
Change-Id: I7f33d654dafc319305edabf44b6bc43b3aa6eb6b
Treehugger Robot [Fri, 18 Nov 2016 00:07:41 +0000 (00:07 +0000)]
Merge "Improve dlerror_concurrent test"
Dimitry Ivanov [Thu, 17 Nov 2016 20:38:09 +0000 (12:38 -0800)]
Improve dlerror_concurrent test
Add a test to check if result is thread-local, not only buffer.
Test: run bionic-unit-tests
Change-Id: Ia95f88c0d76aa86f7f439836393abd67a57dd396
Tamas Berghammer [Fri, 26 Aug 2016 14:54:59 +0000 (15:54 +0100)]
Enable malloc debug using environment variables
Previously malloc debug can be enabled only using global settings
accessible to the root user only. This CL adds a new option to enable
it using environment variables making it possible to use it with pure
native (shell) applications on production builds (from shell user) and
prepares it for using it from logwrapper on production devices.
Remove the old environment variable and property since they are not
necessary.
Test: Enable malloc debug using environment variable and verify
Test: that it only affects the commands launched from the shell.
Test: Enable malloc debug using the property variable and verify
Test: that it affects all commands.
Test: Run all unit tests in 32 bit and 64 bit.
Change-Id: Iecb75a3471552f619f196ad550c5f41fcd9ce8e5
Christopher Ferris [Thu, 17 Nov 2016 20:14:21 +0000 (20:14 +0000)]
Merge "Fix iswlower/iswupper."
am:
a5c16983a6
Change-Id: I9e00bcfdb4365f7a4438570181deead6e371df12
Christopher Ferris [Thu, 17 Nov 2016 20:06:05 +0000 (20:06 +0000)]
Merge "Fix iswlower/iswupper."
Dimitry Ivanov [Thu, 17 Nov 2016 05:30:26 +0000 (05:30 +0000)]
Merge "Relax ELF header checks - warn for apps targeting pre-O"
am:
3613c20c59
Change-Id: Ib5757e7b2821529f02e1fc972a42cd86f202974d
Dimitry Ivanov [Thu, 17 Nov 2016 05:21:41 +0000 (05:21 +0000)]
Merge "Relax ELF header checks - warn for apps targeting pre-O"
Dimitry Ivanov [Thu, 17 Nov 2016 02:58:18 +0000 (02:58 +0000)]
Merge "Remove unused includes/externals"
am:
585838ba32
Change-Id: I2d7496310bd64822a90f9cb3dca2ba27ce24b00e
Treehugger Robot [Thu, 17 Nov 2016 02:48:41 +0000 (02:48 +0000)]
Merge "Remove unused includes/externals"
Elliott Hughes [Thu, 17 Nov 2016 02:43:18 +0000 (02:43 +0000)]
Merge "Add and use constants for the Android API levels."
am:
60ba60dd25
Change-Id: I83b38008d8ba734b303cae6b270534ee11afebe6
Dimitry Ivanov [Wed, 16 Nov 2016 20:29:37 +0000 (12:29 -0800)]
Relax ELF header checks - warn for apps targeting pre-O
Bug: http://b/
32581440
Test: bionic-unit-tests --gtest_filter=dl*:Dl*
Change-Id: I2fe356c67eb9665c671758117679a29b207219e4
Treehugger Robot [Thu, 17 Nov 2016 02:37:37 +0000 (02:37 +0000)]
Merge "Add and use constants for the Android API levels."
Dimitry Ivanov [Thu, 17 Nov 2016 01:04:40 +0000 (01:04 +0000)]
Merge "Add original prebuilt test libraries"
am:
2880754368
Change-Id: I80a1c62d81baf96256d8901059026f8b18ea13fc
Josh Gao [Thu, 17 Nov 2016 01:01:57 +0000 (17:01 -0800)]
versioner: ignore non-header files.
Don't try to compile non-headers (vim swap files, etc.) that happen to
be in the header directory.
Bug: none
Test: manually created a file in libc/include
Change-Id: I2c1647ec7174dc617898dc2f07c9a80a08b69c72
Elliott Hughes [Wed, 16 Nov 2016 19:35:43 +0000 (11:35 -0800)]
Add and use constants for the Android API levels.
Test: bionic tests still pass
Change-Id: If1b619cfc9db1d3f5d91f14f2ace71058dca0c4a
Dimitry Ivanov [Thu, 17 Nov 2016 00:52:40 +0000 (00:52 +0000)]
Merge "Add original prebuilt test libraries"
Dimitry Ivanov [Wed, 16 Nov 2016 23:23:37 +0000 (15:23 -0800)]
Remove unused includes/externals
Test: mm
Change-Id: I4b88602b7d0a18664cbeddfa9854e589c2886e1a
Elliott Hughes [Wed, 16 Nov 2016 23:19:08 +0000 (15:19 -0800)]
Fix iswlower/iswupper.
The previous conditions were just plain wrong.
Test: bionic tests
Change-Id: Ia6d98207b1ff98ea4c6f619912e4bcdb8a7fdd24
Dimitry Ivanov [Wed, 16 Nov 2016 21:41:36 +0000 (13:41 -0800)]
Add original prebuilt test libraries
This is the library used to produce invalid prebuilt libraries
for loader tests.
Bug: http://b/
30795430
Test: not necessary - these are added for reference
Change-Id: I06e681bf826e59a76da9b49d84d26dee34920d49
Elliott Hughes [Wed, 16 Nov 2016 19:08:28 +0000 (19:08 +0000)]
Merge "Downgrade W+E load segments to a warning unless targeting O."
am:
8945d5e43a
Change-Id: I9e3c5b16ed24ec263519435c43e18b9e700238b7
Christopher Ferris [Wed, 16 Nov 2016 19:08:15 +0000 (19:08 +0000)]
Merge "Fix uninitialized variable usage."
am:
bd15515cfc
Change-Id: I8822c72b24572a07ef4c813df8b750cf8428e4b8
Elliott Hughes [Wed, 16 Nov 2016 19:04:17 +0000 (19:04 +0000)]
Merge "Downgrade W+E load segments to a warning unless targeting O."
Christopher Ferris [Wed, 16 Nov 2016 18:59:02 +0000 (18:59 +0000)]
Merge "Fix uninitialized variable usage."
Christopher Ferris [Tue, 15 Nov 2016 22:04:16 +0000 (14:04 -0800)]
Fix uninitialized variable usage.
If the dladdr call fails, then info.dli_fname will be unitialized.
Make sure that this can't happen.
Bug:
32907235
Test: Enabled malloc debug on an angler and verified that function names
Test: still work.
Change-Id: I738e66d9f37bce07bc4c10f1f9bac11fbfdae2c7
Martijn Coenen [Wed, 16 Nov 2016 09:59:31 +0000 (09:59 +0000)]
Merge "Fix deprecated range_x() calls."
am:
7afafce831
Change-Id: Ie930f4ebc7167b755bdea3cd6c9535f90ebcfa08
Martijn Coenen [Wed, 16 Nov 2016 09:48:30 +0000 (09:48 +0000)]
Merge "Fix deprecated range_x() calls."
Wei Wang [Wed, 16 Nov 2016 03:32:20 +0000 (03:32 +0000)]
Merge "Fix getrandom syscall checking"
am:
5a073a18f3
Change-Id: I0300bdb1257c77c8c5820f9bef19932d99fe5632
Treehugger Robot [Wed, 16 Nov 2016 03:23:43 +0000 (03:23 +0000)]
Merge "Fix getrandom syscall checking"
Elliott Hughes [Wed, 16 Nov 2016 00:54:16 +0000 (16:54 -0800)]
Downgrade W+E load segments to a warning unless targeting O.
I don't think we're getting any value from more dupes of the same dodgy
middleware, and I worry that we're hiding other, more subtle, compatibility
issues behind this one.
Test: bionic tests
Change-Id: I556cf36eac96c90976bae32621d1c133bbb8fcc7
Wei Wang [Wed, 16 Nov 2016 00:42:53 +0000 (16:42 -0800)]
Fix getrandom syscall checking
Test: angler
Bug:
32838381
(cherry-picked from commit
46289b4c0211fc48d8719b385a7e56d765510ebd)
Change-Id: I102ffa26d7f39a8d3572b31f04b66ae31a9e752c
Colin Cross [Tue, 15 Nov 2016 23:49:37 +0000 (23:49 +0000)]
Merge "Don't pack relocations in libc.so"
am:
d5aa03600e
Change-Id: I384080d14ca3415a4cf604d836161efaf58c9137
Colin Cross [Tue, 15 Nov 2016 23:38:01 +0000 (23:38 +0000)]
Merge "Don't pack relocations in libc.so"
Colin Cross [Tue, 15 Nov 2016 21:15:43 +0000 (13:15 -0800)]
Don't pack relocations in libc.so
Ic9125cc1bc4c9ba9eb20d030de72e3ce1fb86fa6 disabled relocation packing
in libc.so, but the flag was dropped when we switched to Android.bp
in Ib0ba2d28bff88483b505426ba61606da314e03ab.
Bug:
20645321
Bug:
20655855
Bug:
32750616
Test: builds
Test: inspect out/build-aosp_angler.ninja
Test: run app that crashes with packed libc.so
Change-Id: Ib0630f2e342afa543bb88303fec8f9695ac583e9
Elliott Hughes [Tue, 15 Nov 2016 19:23:51 +0000 (19:23 +0000)]
Merge "Differentiate the wctype functions we need to improve."
am:
f97b27a9c0
Change-Id: I078de2d9b7c8e58640c9d2847a88dbea970c893d