Nick Kralevich
2ed1b29d00
FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc
...
The default compiler is clang. We need to explicitly indicate
that we should use gcc.
Change-Id: I37859c2e303f2a86a2565fe72eda1fda7c557a59
2015-11-12 15:55:13 -08:00
Chih-hung Hsieh
a2e9d90811
Merge "Still cannot compile with clang on arm64."
...
am: 7c10ee9473
* commit '7c10ee9473b5c46da733b2d3d24cf90fb8ac7672':
Still cannot compile with clang on arm64.
2015-11-12 20:51:05 +00:00
Chih-hung Hsieh
7c10ee9473
Merge "Still cannot compile with clang on arm64."
2015-11-12 20:45:48 +00:00
Chih-Hung Hsieh
c04647f8c2
Still cannot compile with clang on arm64.
...
When __cxa_thread_atexit_impl.cpp is compiled with clang on arm64,
Android cannot boot up.
BUG: 25662915
Change-Id: If997b544f43e956172ce605d86fe147d42fd39e0
2015-11-12 12:39:13 -08:00
Chih-hung Hsieh
c0116bd3db
Merge "Enable clang for modules failed with TLS."
...
am: 0c447053de
* commit '0c447053de4b87d50ebec260c7e1d949fe934065':
Enable clang for modules failed with TLS.
2015-11-12 01:09:37 +00:00
Chih-hung Hsieh
0c447053de
Merge "Enable clang for modules failed with TLS."
2015-11-12 01:04:51 +00:00
Elliott Hughes
fd57638117
Merge "Clean up pthread_gettid_np test."
...
am: dbc6398e95
* commit 'dbc6398e95df44a18715ce5ba19b8e1a93b969d4':
Clean up pthread_gettid_np test.
2015-11-12 01:04:38 +00:00
Elliott Hughes
dbc6398e95
Merge "Clean up pthread_gettid_np test."
2015-11-12 00:59:08 +00:00
Chih-Hung Hsieh
5058a005b8
Enable clang for modules failed with TLS.
...
New 3.8 clang/llvm can compile TLS code now.
* For x86_64, still disable clang due to f128 bug.
* For b/25643775, arm and arm64, disable clang in unit tests.
* Fix thread_local_test.cpp to compile with clang and
limit gcc workaround only to arm and aarch64.
BUG: 25643775
Change-Id: Iecd006bf1fc417dbcce2c63343a59c4bf1fa77ea
2015-11-11 16:22:38 -08:00
Josh Gao
504e3274a0
Merge "Add 100 column limit to .clang-format."
...
am: b03e6bf924
* commit 'b03e6bf9247bb36162b9f4c61d07e488a18e126c':
Add 100 column limit to .clang-format.
2015-11-11 22:25:42 +00:00
Josh Gao
b03e6bf924
Merge "Add 100 column limit to .clang-format."
2015-11-11 22:22:59 +00:00
Josh Gao
615f3aa8b4
Add 100 column limit to .clang-format.
...
Change-Id: I3c3fa5e61cfb2af7f2888dcee56229692ec1479c
2015-11-11 14:21:09 -08:00
Elliott Hughes
f208361b2b
Clean up pthread_gettid_np test.
...
Change-Id: I0fad26c7824981bfa3ad3a8a0b28a1984062dcd1
2015-11-11 13:32:28 -08:00
Elliott Hughes
2b1e258fec
Merge "Fix potential race condition on CTS TC pthread_gettid_np"
...
am: ffe5c24c86
* commit 'ffe5c24c8693f1f4fc8edb68075fb36df558b801':
Fix potential race condition on CTS TC pthread_gettid_np
2015-11-11 21:25:38 +00:00
Elliott Hughes
ffe5c24c86
Merge "Fix potential race condition on CTS TC pthread_gettid_np"
2015-11-11 21:21:33 +00:00
Junjie Hu
de1246202a
Fix potential race condition on CTS TC pthread_gettid_np
...
Root cause:
If start_routine thread exits before pthread_gettid_np is invokded, the "tid" field
will be cleared so that pthread_gettid_np will get "0" (which is cleared by kernel,
due to the flag "CLONE_CHILD_CLEARTID" is set while calling clone system call inside
pthread_create).
Proposed patch:
Use a mutex to guarantee pthread_gettid_np will be invoked and returned before the
start_routine exits
Signed-off-by: Junjie Hu <junjie.hu@mediatek.com>
Change-Id: I22411f1b0f7446d76a0373cef4ccec858fac7018
(cherry picked from commit 4f8010293506d4e08d184e66bf4af44ef3483611)
2015-11-11 21:21:21 +00:00
Nick Kralevich
8640233fef
Merge "libc_init_common.cpp: Clarify when environment stripping occurs"
...
am: 6209b99a73
* commit '6209b99a7351ed732ab25bb2ffa75465366b244f':
libc_init_common.cpp: Clarify when environment stripping occurs
2015-11-11 02:09:36 +00:00
Nick Kralevich
6209b99a73
Merge "libc_init_common.cpp: Clarify when environment stripping occurs"
2015-11-11 02:06:59 +00:00
Nick Kralevich
2fb02651c8
libc_init_common.cpp: Clarify when environment stripping occurs
...
The current comment implies that we only strip sensitive
environment variables on executing a setuid program. This is
true but incomplete. The AT_SECURE flag is set whenever a
security transition occurs, such as executing a setuid program,
SELinux security transition, executing a file with file capabilities,
etc...
Fixup the comments.
Change-Id: I30a73992adfde14d6e5f642b3a1ead2ee56726be
2015-11-10 16:45:49 -08:00
Tom Cherry
8e86f33690
Merge "Refactor prop_area into a class"
...
am: 2a7f1b335d
* commit '2a7f1b335dcd08a480c4acc948ba202bae1a0a1f':
Refactor prop_area into a class
2015-11-10 21:58:23 +00:00
Tom Cherry
2a7f1b335d
Merge "Refactor prop_area into a class"
2015-11-10 21:54:39 +00:00
Tom Cherry
926ebe1094
Refactor prop_area into a class
...
Bug 21852512
Change-Id: I432bf592f1a71a046c32616fc334ad77c220f0ca
2015-11-09 17:22:44 -08:00
Josh Gao
2fdaa6c599
Merge "Fix test failure."
...
am: 11b3916b83
* commit '11b3916b83e33fce9e3123659fe4e61ef84d39b5':
Fix test failure.
2015-11-10 00:10:20 +00:00
Josh Gao
11b3916b83
Merge "Fix test failure."
2015-11-10 00:08:09 +00:00
Josh Gao
09fac86ca3
Fix test failure.
...
Bug: http://b/25596173
Change-Id: I0cf8f550837d4a936d6a784063a0ec9509150358
2015-11-09 16:04:50 -08:00
Dan Willemsen
dcf501913d
Merge "Update Android.bp with latest Android.mk changes"
...
am: 704e048cbf
* commit '704e048cbfcb69b7906371f9f4cae4cb6357096e':
Update Android.bp with latest Android.mk changes
2015-11-09 22:31:50 +00:00
Dan Willemsen
704e048cbf
Merge "Update Android.bp with latest Android.mk changes"
2015-11-09 22:28:18 +00:00
Dan Willemsen
dc6b0a7b93
Update Android.bp with latest Android.mk changes
...
Change-Id: I45f6292fcc4d4559519d88f948b4478204b08f25
2015-11-09 14:03:46 -08:00
Yabin Cui
a74eb4dbf5
Merge "Add fileno_unlocked to support thread sanitizer."
...
am: 0e6542b75b
* commit '0e6542b75b2f3ca155b452782d2122f34f807485':
Add fileno_unlocked to support thread sanitizer.
2015-11-07 00:30:09 +00:00
Yabin Cui
0e6542b75b
Merge "Add fileno_unlocked to support thread sanitizer."
2015-11-07 00:24:52 +00:00
Yabin Cui
fb994f4c04
Add fileno_unlocked to support thread sanitizer.
...
Bug: 25392375
Change-Id: If3f92a0e08a53f4b59e01397e8efa307d8572349
2015-11-06 16:13:47 -08:00
Elliott Hughes
4eba804ca0
Merge "fix the mremap signature"
...
am: 8b5b2c4672
* commit '8b5b2c467281de502ba1c8ffbe447ef95fbf5219':
fix the mremap signature
2015-11-06 21:24:59 +00:00
Elliott Hughes
8b5b2c4672
Merge "fix the mremap signature"
2015-11-06 21:18:08 +00:00
Daniel Micay
4200e260d2
fix the mremap signature
...
The mremap definition was incorrect (unsigned long instead of int) and
it was missing the optional new_address parameter.
Change-Id: Ib9d0675aaa098c21617cedc9b2b8cf267be3aec4
2015-11-06 13:14:43 -08:00
Dimitry Ivanov
bc0b61e407
Merge "linker: cleanup solist after unsuccessful read"
...
am: 3482613685
* commit '3482613685342da365a7569220f8e6c27a1fe7e5':
linker: cleanup solist after unsuccessful read
2015-11-06 19:02:08 +00:00
Dimitry Ivanov
3482613685
Merge "linker: cleanup solist after unsuccessful read"
2015-11-06 19:00:24 +00:00
Dmitriy Ivanov
fd7a91e692
linker: cleanup solist after unsuccessful read
...
Bug: http://b/25560017
Change-Id: I03c5a1d7aed34c480d341aacfb3b1afdfa037b99
2015-11-06 10:44:37 -08:00
Dimitry Ivanov
2dc1e91dba
Merge "Fix linked_list::remove_if()"
...
am: 004fead6bc
* commit '004fead6bc55d1e65b4fb9ca1ac36646b99e5fdd':
Fix linked_list::remove_if()
2015-11-06 02:35:02 +00:00
Dimitry Ivanov
004fead6bc
Merge "Fix linked_list::remove_if()"
2015-11-06 02:32:34 +00:00
Dmitriy Ivanov
7a9311f7f1
Fix linked_list::remove_if()
...
When remove_if removes last element from the list
following push_back stops working.
Change-Id: Ia3e92763b83a2e172eaa10de7aecfb7a4be452d7
2015-11-05 17:41:05 -08:00
Colin Cross
10c6a7c7b9
Merge "Use cc_defaults"
...
am: ef5e647891
* commit 'ef5e647891f1a0aefeab4a87e9225e47087c6301':
Use cc_defaults
2015-11-05 02:00:22 +00:00
Colin Cross
ef5e647891
Merge "Use cc_defaults"
2015-11-05 01:56:58 +00:00
Josh Gao
824084ce76
Merge "Fix GNU/POSIX basename headers."
...
am: dd7dcfcfdb
* commit 'dd7dcfcfdbab3b38fc40551defdf81c3b734e336':
Fix GNU/POSIX basename headers.
2015-11-04 22:28:19 +00:00
Josh Gao
dd7dcfcfdb
Merge "Fix GNU/POSIX basename headers."
2015-11-04 22:26:13 +00:00
Josh Gao
eb9b925012
Fix GNU/POSIX basename headers.
...
Including glibc's <libgen.h> will result in the user getting the POSIX
version of basename always, regardless of when it is included relative
to <string.h>. Prior to this patch, our implementation would result in
the one that's included first winning.
Bug: http://b/25459151
Change-Id: Id4aaf1670dad317d6bbc05763a84ee87596e8e59
2015-11-04 14:19:55 -08:00
Colin Cross
50c21ab47d
Use cc_defaults
...
Use a cc_defaults module to reduce duplication.
Change-Id: Iaee6bf20b84123babcdc68d4feb06308f5f61a59
2015-11-03 17:25:36 -08:00
Dan Willemsen
021d959eba
Merge "Update Android.bp with arch-specific version scripts"
...
am: 4b920f042a
* commit '4b920f042ac4b35c4dd3ff51f7b8f164a22e3500':
Update Android.bp with arch-specific version scripts
2015-11-03 23:26:08 +00:00
Josh Gao
a59479434c
Merge "fix PTRDIFF_MAX check in the 32-bit mmap wrapper"
...
am: af909869d8
* commit 'af909869d868585a47914ab51536192da50935cb':
fix PTRDIFF_MAX check in the 32-bit mmap wrapper
2015-11-03 23:25:55 +00:00
Dan Willemsen
4b920f042a
Merge "Update Android.bp with arch-specific version scripts"
2015-11-03 22:38:23 +00:00
Dan Willemsen
9e6f98fe9d
Update Android.bp with arch-specific version scripts
...
Change-Id: I59b34f21b54e8a2084bb318a08c4092064f48083
2015-11-03 14:30:57 -08:00