OSDN Git Service

android-x86/bionic.git
7 years agoOne NOTICE file to rule them all.
Dan Albert [Thu, 20 Oct 2016 22:16:30 +0000 (22:16 +0000)]
One NOTICE file to rule them all.
am: c30862fdbc

Change-Id: I0d6ee8f4b233f00268520804d751df99e5927cff

7 years agoMerge "Update our notice files as a pre-upload step."
Dan Albert [Thu, 20 Oct 2016 22:15:42 +0000 (22:15 +0000)]
Merge "Update our notice files as a pre-upload step."
am: 93a988debb

Change-Id: I49b3c30853b617cc7ca848366e035f8d4d739f92

7 years agoMerge "Update our notice files as a pre-upload step."
Treehugger Robot [Thu, 20 Oct 2016 22:07:55 +0000 (22:07 +0000)]
Merge "Update our notice files as a pre-upload step."

7 years agoMerge "Add missing host ldlibs"
Colin Cross [Thu, 20 Oct 2016 20:33:35 +0000 (20:33 +0000)]
Merge "Add missing host ldlibs"
am: 94b428c80a

Change-Id: Ic27234126a63b2c3719170a17a70f5233e52dc9b

7 years agoMerge "Add missing host ldlibs"
Colin Cross [Thu, 20 Oct 2016 20:26:09 +0000 (20:26 +0000)]
Merge "Add missing host ldlibs"

7 years agoMerge "Fix stdin/stdout/stderr for pre-M."
Dan Albert [Thu, 20 Oct 2016 19:43:02 +0000 (19:43 +0000)]
Merge "Fix stdin/stdout/stderr for pre-M."
am: edecce3ac2

Change-Id: I43fa5496c5be59aba6cd75777521b4b1b86da7ed

7 years agoMerge "Fix stdin/stdout/stderr for pre-M."
Treehugger Robot [Thu, 20 Oct 2016 19:34:56 +0000 (19:34 +0000)]
Merge "Fix stdin/stdout/stderr for pre-M."

7 years agoOne NOTICE file to rule them all.
Dan Albert [Thu, 20 Oct 2016 18:45:16 +0000 (11:45 -0700)]
One NOTICE file to rule them all.

Generate a single NOTICE file rather than one per library. All the
headers come from libc these days anyway.

Test: tools/update_notice.sh
Bug: None
Change-Id: I127da185fdabc2815042e19aea74c507ec108f46

7 years agoUpdate our notice files as a pre-upload step.
Dan Albert [Thu, 20 Oct 2016 17:34:47 +0000 (10:34 -0700)]
Update our notice files as a pre-upload step.

Also updates the license files, since apparently they're out of date.

Test: repo upload --cbr .
Bug: None
Change-Id: Ic8d855a7ee5185c4933da699292868e02ef79531

7 years agoAdd missing host ldlibs
Colin Cross [Thu, 20 Oct 2016 17:39:50 +0000 (10:39 -0700)]
Add missing host ldlibs

Host builds were compiling without -Wl,--no-undefined.  Add missing
host ldlibs so that -Wl,--no-undefined can be added again.

Test: m -j host
Bug: 32305815
Change-Id: I456098775ead2bddae3e61c7055b2bde3f6b38ff

7 years agoFix stdin/stdout/stderr for pre-M.
Dan Albert [Thu, 6 Oct 2016 22:46:45 +0000 (15:46 -0700)]
Fix stdin/stdout/stderr for pre-M.

This wasn't an array of pointers, it was an array of structs.
Unfortunately we need a complete type to index into the struct for
stdin/stdout/stderr, so add a phony struct that matches the size and
alignment of `struct __sFILE`. This property is guaranteed by the
static_asserts in libc/bionic/struct_file_test.cpp.

Test: mma
Bug: http://b/30465923
Change-Id: I8ce851dd64a261703bb44f9b5cd23b7caff4dd68

7 years agoMerge "Add regression test for http://b/31938693."
Elliott Hughes [Thu, 20 Oct 2016 16:40:52 +0000 (16:40 +0000)]
Merge "Add regression test for http://b/31938693."
am: 6901ca2799

Change-Id: I08432c98bfae0bf087b01b4901aa982e1e21d3fe

7 years agoMerge "Add regression test for http://b/31938693."
Elliott Hughes [Thu, 20 Oct 2016 16:30:05 +0000 (16:30 +0000)]
Merge "Add regression test for http://b/31938693."

7 years agoMerge "Add test for libraries with textrels"
Dimitry Ivanov [Thu, 20 Oct 2016 01:44:43 +0000 (01:44 +0000)]
Merge "Add test for libraries with textrels"
am: 2a2b41038f

Change-Id: I76f947bcf19e87834e048bff5d1057b04af4090a

7 years agoMerge "Add test for libraries with textrels"
Treehugger Robot [Thu, 20 Oct 2016 01:37:19 +0000 (01:37 +0000)]
Merge "Add test for libraries with textrels"

7 years agoAdd regression test for http://b/31938693.
Elliott Hughes [Wed, 19 Oct 2016 23:02:31 +0000 (16:02 -0700)]
Add regression test for http://b/31938693.

Bug: http://b/31938693
Bug: https://code.google.com/p/android/issues/detail?id=225132
Test: this is a test
Change-Id: I858962a1dcd56d555a4836a7bfbdf92d5c3042f6

7 years agoMerge "Fix our _POSIX_* macros to declare barriers and spin locks."
Elliott Hughes [Wed, 19 Oct 2016 21:25:17 +0000 (21:25 +0000)]
Merge "Fix our _POSIX_* macros to declare barriers and spin locks."
am: 0759e7f5c1

Change-Id: I602b845f97ce26dbc22edff2124d075951eb941c

7 years agoAdd test for libraries with textrels
Dimitry Ivanov [Wed, 19 Oct 2016 18:00:28 +0000 (11:00 -0700)]
Add test for libraries with textrels

Make sure android fails to load them.

Bug: http://b/30795430
Test: bionic-unit-tests --gtest_filter=dlfcn.dlopen_invalid*
Test: cts-tradefed run singleCommand cts --skip-preconditions -m CtsBionicTestCases
Change-Id: Id0ebdf336b2f297007479ceb1bbccf778a7ca3f2

7 years agoMerge "Fix our _POSIX_* macros to declare barriers and spin locks."
Elliott Hughes [Wed, 19 Oct 2016 21:16:21 +0000 (21:16 +0000)]
Merge "Fix our _POSIX_* macros to declare barriers and spin locks."

7 years agoFix our _POSIX_* macros to declare barriers and spin locks.
Elliott Hughes [Wed, 19 Oct 2016 16:27:02 +0000 (09:27 -0700)]
Fix our _POSIX_* macros to declare barriers and spin locks.

We have these now.

Test: ran tests
Change-Id: Ie7b479061ecec19c8b35ea81e04debfd8323d94a

7 years agoMerge "Fix ifaddrs error handling."
Elliott Hughes [Fri, 14 Oct 2016 23:40:53 +0000 (23:40 +0000)]
Merge "Fix ifaddrs error handling."
am: d824421475

Change-Id: I1eb9d61522501a9e5c925a8d3b4976674169af97

7 years agoMerge "Fix ifaddrs error handling."
Treehugger Robot [Fri, 14 Oct 2016 23:35:52 +0000 (23:35 +0000)]
Merge "Fix ifaddrs error handling."

7 years agoFix ifaddrs error handling.
Elliott Hughes [Fri, 14 Oct 2016 19:15:32 +0000 (12:15 -0700)]
Fix ifaddrs error handling.

An NLMSG_ERROR packet includes an errno value that we should use. Also report
failures to create a socket immediately, rather than falling through to the
send and reporting EBADF.

Bug: http://b/32145516
Bug: http://b/31038971
Test: bionic ifaddr tests on ryu (with broken kernel) and flounder
Change-Id: I84c480c5b75077eb90d40426a9d66d7bffbd3d51

7 years agoMerge "Remove unused build targets" am: 49ef8c822f am: df4e844940
Dimitry Ivanov [Thu, 13 Oct 2016 00:06:04 +0000 (00:06 +0000)]
Merge "Remove unused build targets" am: 49ef8c822f am: df4e844940
am: 7e22b1317b

Change-Id: Ia012e4ee440c14150f8a70f631bf13d5820b6553

7 years agoMerge "Remove unused build targets" am: 49ef8c822f
Dimitry Ivanov [Wed, 12 Oct 2016 23:59:05 +0000 (23:59 +0000)]
Merge "Remove unused build targets" am: 49ef8c822f
am: df4e844940

Change-Id: I4129a4ff758552c0eb29b7ce4471a25f05e0286c

7 years agoMerge "Remove unused build targets"
Dimitry Ivanov [Wed, 12 Oct 2016 23:52:33 +0000 (23:52 +0000)]
Merge "Remove unused build targets"
am: 49ef8c822f

Change-Id: I68e8fd8ab0fd6f1fefd80e9e6a664be32ce3c593

7 years agoMerge "Remove unused build targets"
Treehugger Robot [Wed, 12 Oct 2016 23:46:40 +0000 (23:46 +0000)]
Merge "Remove unused build targets"

7 years agoRemove unused build targets
Dimitry Ivanov [Wed, 12 Oct 2016 21:06:18 +0000 (14:06 -0700)]
Remove unused build targets

Test: mm
Change-Id: I4eadc40411a31a0e5fa910b0054c19f0dea6c1e2

7 years agoMerge "Allocate all arc4random data on the same page." am: 2eaba9343f am: a1a07174a1
Elliott Hughes [Tue, 11 Oct 2016 22:22:40 +0000 (22:22 +0000)]
Merge "Allocate all arc4random data on the same page." am: 2eaba9343f am: a1a07174a1
am: 9cc503d76e

Change-Id: If0a00f7076e6a29af1cdd316d30a4bff4e08c365

7 years agoMerge "Allocate all arc4random data on the same page." am: 2eaba9343f
Elliott Hughes [Tue, 11 Oct 2016 22:16:39 +0000 (22:16 +0000)]
Merge "Allocate all arc4random data on the same page." am: 2eaba9343f
am: a1a07174a1

Change-Id: Ic7ba1567e9807ef56edee95428f0ef9e1161b457

7 years agoMerge "Allocate all arc4random data on the same page."
Elliott Hughes [Tue, 11 Oct 2016 22:10:39 +0000 (22:10 +0000)]
Merge "Allocate all arc4random data on the same page."
am: 2eaba9343f

Change-Id: I7ff5a437db6ec403d269a530bf755c915ef0e601

7 years agoMerge "Allocate all arc4random data on the same page."
Treehugger Robot [Tue, 11 Oct 2016 22:05:41 +0000 (22:05 +0000)]
Merge "Allocate all arc4random data on the same page."

7 years agoAllocate all arc4random data on the same page.
Elliott Hughes [Tue, 11 Oct 2016 19:58:40 +0000 (12:58 -0700)]
Allocate all arc4random data on the same page.

Saves one dirty page per process.

Test: bionic unit tests, reboot, manual check of /proc/*/maps
Change-Id: Ibbcafa955d60e43f4cb735fa484c6868aa357cd5

7 years agoMerge "Remove obsolete -std request." am: 0e6aa81999 am: 5e76352cc3
Elliott Hughes [Tue, 11 Oct 2016 18:35:54 +0000 (18:35 +0000)]
Merge "Remove obsolete -std request." am: 0e6aa81999 am: 5e76352cc3
am: aab356acef

Change-Id: I95d7de76179069323077067f175306c01a93355a

7 years agoMerge "Remove obsolete -std request." am: 0e6aa81999
Elliott Hughes [Tue, 11 Oct 2016 18:30:24 +0000 (18:30 +0000)]
Merge "Remove obsolete -std request." am: 0e6aa81999
am: 5e76352cc3

Change-Id: Iddf239acbf665466505a625314be7c312323476a

7 years agoMerge "Remove obsolete -std request."
Elliott Hughes [Tue, 11 Oct 2016 18:24:54 +0000 (18:24 +0000)]
Merge "Remove obsolete -std request."
am: 0e6aa81999

Change-Id: I84df5bdc9d37ca2df7e2c9a2675c23b8275bca11

7 years agoMerge "Remove obsolete -std request."
Elliott Hughes [Tue, 11 Oct 2016 18:13:07 +0000 (18:13 +0000)]
Merge "Remove obsolete -std request."

7 years agoMerge "Migrate libstdc++ to ndk_library." am: 2c8a26d8bf am: 090e27556a
Dan Albert [Tue, 11 Oct 2016 06:20:10 +0000 (06:20 +0000)]
Merge "Migrate libstdc++ to ndk_library." am: 2c8a26d8bf am: 090e27556a
am: 4adc5710e9

Change-Id: Ic6b645666d762b8c017c566bfbd79adfd50c2011

7 years agoMerge "Migrate libstdc++ to ndk_library." am: 2c8a26d8bf
Dan Albert [Tue, 11 Oct 2016 06:14:39 +0000 (06:14 +0000)]
Merge "Migrate libstdc++ to ndk_library." am: 2c8a26d8bf
am: 090e27556a

Change-Id: I72fe1bac44e440f2a526538caeb6ab79ba49f86f

7 years agoMerge "Migrate libstdc++ to ndk_library."
Dan Albert [Tue, 11 Oct 2016 06:08:39 +0000 (06:08 +0000)]
Merge "Migrate libstdc++ to ndk_library."
am: 2c8a26d8bf

Change-Id: Icd01cea8c7390daf081f26d8d7aadcb9fb329cf9

7 years agoMerge "Migrate libstdc++ to ndk_library."
Treehugger Robot [Tue, 11 Oct 2016 06:01:17 +0000 (06:01 +0000)]
Merge "Migrate libstdc++ to ndk_library."

7 years agoMerge "Fix Mac build." am: e89385743e am: cbe7d68916
Elliott Hughes [Tue, 11 Oct 2016 04:12:01 +0000 (04:12 +0000)]
Merge "Fix Mac build." am: e89385743e am: cbe7d68916
am: 76d8f51256

Change-Id: I0f93ba5cd644eff7661392353263398e96b483c8

7 years agoMerge "Fix Mac build." am: e89385743e
Elliott Hughes [Tue, 11 Oct 2016 04:06:03 +0000 (04:06 +0000)]
Merge "Fix Mac build." am: e89385743e
am: cbe7d68916

Change-Id: I689671c08773b0d9e7f5a3bb1990d72d17e28ecc

7 years agoMerge "Fix Mac build."
Elliott Hughes [Tue, 11 Oct 2016 04:00:31 +0000 (04:00 +0000)]
Merge "Fix Mac build."
am: e89385743e

Change-Id: Ie5feeb3e2834b8dd2bba868fbf66dbb98b6d23de

7 years agoMerge "Fix Mac build."
Elliott Hughes [Tue, 11 Oct 2016 03:50:26 +0000 (03:50 +0000)]
Merge "Fix Mac build."

7 years agoFix Mac build.
Elliott Hughes [Tue, 11 Oct 2016 01:34:27 +0000 (18:34 -0700)]
Fix Mac build.

Test: builds on Linux (I don't have a Mac)
Change-Id: I049e1d6420b0d169e727680da9c3d97e0b8aa3d2

7 years agoMerge changes I5667e991,I9d2a873e am: c3e09e1ff0 am: 676196c1e2
Dimitry Ivanov [Tue, 11 Oct 2016 00:53:56 +0000 (00:53 +0000)]
Merge changes I5667e991,I9d2a873e am: c3e09e1ff0 am: 676196c1e2
am: 209dd35443

Change-Id: I0072c18ed9e7940739422474d5c12aa07ab0f8ec

7 years agobionic-unit-tests: remove dependency on ANDROID_DATA am: 927877c7d3 am: 474da5a6d4
Dimitry Ivanov [Tue, 11 Oct 2016 00:53:53 +0000 (00:53 +0000)]
bionic-unit-tests: remove dependency on ANDROID_DATA am: 927877c7d3 am: 474da5a6d4
am: dde2ec372b

Change-Id: I394bdb0e53af24c075f95946efcfa75d534c03b6

7 years agobionic-unit-tests: Create symlinks in runtime am: 708589f5e8 am: dbad17c928
Dimitry Ivanov [Tue, 11 Oct 2016 00:53:49 +0000 (00:53 +0000)]
bionic-unit-tests: Create symlinks in runtime am: 708589f5e8 am: dbad17c928
am: 56f4114322

Change-Id: I491aaf15a2bf292ea52a4137cb18b08a29c4e2c0

7 years agoMerge changes I5667e991,I9d2a873e am: c3e09e1ff0
Dimitry Ivanov [Tue, 11 Oct 2016 00:48:27 +0000 (00:48 +0000)]
Merge changes I5667e991,I9d2a873e am: c3e09e1ff0
am: 676196c1e2

Change-Id: I0eba8e67c507ffd9614594e51855f1d707abdf3e

7 years agobionic-unit-tests: remove dependency on ANDROID_DATA am: 927877c7d3
Dimitry Ivanov [Tue, 11 Oct 2016 00:48:23 +0000 (00:48 +0000)]
bionic-unit-tests: remove dependency on ANDROID_DATA am: 927877c7d3
am: 474da5a6d4

Change-Id: I5c8816296a341971317775d9682ac6d5bf92f446

7 years agobionic-unit-tests: Create symlinks in runtime am: 708589f5e8
Dimitry Ivanov [Tue, 11 Oct 2016 00:48:19 +0000 (00:48 +0000)]
bionic-unit-tests: Create symlinks in runtime am: 708589f5e8
am: dbad17c928

Change-Id: I37fbe821391d5461fd14eaea51b0b063e5859a63

7 years agoMerge changes I5667e991,I9d2a873e
Dimitry Ivanov [Tue, 11 Oct 2016 00:42:55 +0000 (00:42 +0000)]
Merge changes I5667e991,I9d2a873e
am: c3e09e1ff0

Change-Id: I1fa7770646c90e42dda53bcf08a19ab6c6ab97c2

7 years agobionic-unit-tests: remove dependency on ANDROID_DATA
Dimitry Ivanov [Tue, 11 Oct 2016 00:42:54 +0000 (00:42 +0000)]
bionic-unit-tests: remove dependency on ANDROID_DATA
am: 927877c7d3

Change-Id: Icbebb8309d5f6a6fa3173b5d844c1d75915bc7e3

7 years agobionic-unit-tests: Create symlinks in runtime
Dimitry Ivanov [Tue, 11 Oct 2016 00:42:49 +0000 (00:42 +0000)]
bionic-unit-tests: Create symlinks in runtime
am: 708589f5e8

Change-Id: I0074677cb1561ce5924f4b9bf32501d57a31b0bd

7 years agoMerge changes I5667e991,I9d2a873e
Treehugger Robot [Tue, 11 Oct 2016 00:30:53 +0000 (00:30 +0000)]
Merge changes I5667e991,I9d2a873e

* changes:
  bionic-unit-tests: remove dependency on ANDROID_DATA
  bionic-unit-tests: Create symlinks in runtime

7 years agoMerge "Use STDERR_FILENO instead of opening /dev/stderr." am: e0505ab0fb am: 8efd55b774
Josh Gao [Mon, 10 Oct 2016 21:49:06 +0000 (21:49 +0000)]
Merge "Use STDERR_FILENO instead of opening /dev/stderr." am: e0505ab0fb am: 8efd55b774
am: 12e1498fa6

Change-Id: I5427033c4e00f14321873a23f9b6305105fe6e12

7 years agoMerge "Use STDERR_FILENO instead of opening /dev/stderr." am: e0505ab0fb
Josh Gao [Mon, 10 Oct 2016 21:43:37 +0000 (21:43 +0000)]
Merge "Use STDERR_FILENO instead of opening /dev/stderr." am: e0505ab0fb
am: 8efd55b774

Change-Id: I5898e427a4f875af5e4dbe0b5c9401ce479ea3fb

7 years agoMerge "Use STDERR_FILENO instead of opening /dev/stderr."
Josh Gao [Mon, 10 Oct 2016 21:38:05 +0000 (21:38 +0000)]
Merge "Use STDERR_FILENO instead of opening /dev/stderr."
am: e0505ab0fb

Change-Id: I3918867ec5806ae57f77e5d03a1b80fbc8fc143b

7 years agoMerge "Use STDERR_FILENO instead of opening /dev/stderr."
Treehugger Robot [Mon, 10 Oct 2016 21:19:05 +0000 (21:19 +0000)]
Merge "Use STDERR_FILENO instead of opening /dev/stderr."

7 years agobionic-unit-tests: remove dependency on ANDROID_DATA
Dimitry Ivanov [Wed, 21 Sep 2016 18:17:13 +0000 (11:17 -0700)]
bionic-unit-tests: remove dependency on ANDROID_DATA

Replace references to ANDROID_DATA enviroment variable with references
to g_testlib_root.

Bug: http://b/22182538
Test: build and run bionic-unit-tests --gtest_filter=dl*:Dl*
Test: make cts && cts-tradefed run singleCommand cts --skip-preconditions -m CtsBionicTestCases
Change-Id: I5667e991551cec55b9b664f2f0063039671ff34b

7 years agobionic-unit-tests: Create symlinks in runtime
Dimitry Ivanov [Mon, 19 Sep 2016 17:50:28 +0000 (10:50 -0700)]
bionic-unit-tests: Create symlinks in runtime

Instead of creating symlinks in build time and then relying
on usage of adb sync (adb push follows symlinks) - create
them in test run time.

Test: mm && run bionic-unit-tests --gtest_filter=dl*:Dl*
Bug: http://b/22182538
Change-Id: I9d2a873e3ba303533c14ba5e3b779e4a67925462

7 years agoMerge "Document a post-N dynamic linker change." am: 1c45e6fa47 am: a38fd57a0b
Elliott Hughes [Sat, 8 Oct 2016 20:58:03 +0000 (20:58 +0000)]
Merge "Document a post-N dynamic linker change." am: 1c45e6fa47 am: a38fd57a0b
am: 61cd6b977f

Change-Id: I0f35bb50e8f4ee2194de0cd084e009fec440429c

7 years agoMerge "Document a post-N dynamic linker change." am: 1c45e6fa47
Elliott Hughes [Sat, 8 Oct 2016 20:53:33 +0000 (20:53 +0000)]
Merge "Document a post-N dynamic linker change." am: 1c45e6fa47
am: a38fd57a0b

Change-Id: I92e3efb634d7912fcc37b3c54a46cac43bf2826a

7 years agoMerge "Document a post-N dynamic linker change."
Elliott Hughes [Sat, 8 Oct 2016 20:48:31 +0000 (20:48 +0000)]
Merge "Document a post-N dynamic linker change."
am: 1c45e6fa47

Change-Id: I9107e734f1796a5570d171cd6dcbe9225a5411c2

7 years agoMerge "Document a post-N dynamic linker change."
Treehugger Robot [Sat, 8 Oct 2016 20:41:27 +0000 (20:41 +0000)]
Merge "Document a post-N dynamic linker change."

7 years agoMerge "Turn the recent blog post into markdown docs." am: a3745834f2 am: f9e330bbc8
Elliott Hughes [Fri, 7 Oct 2016 23:12:32 +0000 (23:12 +0000)]
Merge "Turn the recent blog post into markdown docs." am: a3745834f2 am: f9e330bbc8
am: 83b211bc16

Change-Id: I27347d859f437b82324b23cf176a602a792aa9fd

7 years agoTurn the recent blog post into markdown docs. am: c45380d20c am: 277864c3d1
Elliott Hughes [Fri, 7 Oct 2016 23:12:22 +0000 (23:12 +0000)]
Turn the recent blog post into markdown docs. am: c45380d20c am: 277864c3d1
am: c962852a5d

Change-Id: I2f2832c6c7f9aa542da8ad7d0251d5ea9668ffd0

7 years agoMerge "Turn the recent blog post into markdown docs." am: a3745834f2
Elliott Hughes [Fri, 7 Oct 2016 23:08:33 +0000 (23:08 +0000)]
Merge "Turn the recent blog post into markdown docs." am: a3745834f2
am: f9e330bbc8

Change-Id: I4225830fe3a51c09369eab8e7c2b79b999d59523

7 years agoTurn the recent blog post into markdown docs. am: c45380d20c
Elliott Hughes [Fri, 7 Oct 2016 23:08:23 +0000 (23:08 +0000)]
Turn the recent blog post into markdown docs. am: c45380d20c
am: 277864c3d1

Change-Id: I414c4cdf9f31c05c264e5cbf8fb4905ad7013d89

7 years agoMerge "Turn the recent blog post into markdown docs."
Elliott Hughes [Fri, 7 Oct 2016 23:03:27 +0000 (23:03 +0000)]
Merge "Turn the recent blog post into markdown docs."
am: a3745834f2

Change-Id: I221adde4dde21cec911fe0537f72f39f7f2b13e7

7 years agoTurn the recent blog post into markdown docs.
Elliott Hughes [Fri, 7 Oct 2016 23:03:26 +0000 (23:03 +0000)]
Turn the recent blog post into markdown docs.
am: c45380d20c

Change-Id: I3559e1ae5e2c4fd9d7a4687fab39d9678d557234

7 years agoDocument a post-N dynamic linker change.
Elliott Hughes [Fri, 7 Oct 2016 22:59:58 +0000 (15:59 -0700)]
Document a post-N dynamic linker change.

Test: N/A
Change-Id: I37f3ccccd81c29a4ffe400fc2177bbe082195ade

7 years agoMerge "Turn the recent blog post into markdown docs."
Elliott Hughes [Fri, 7 Oct 2016 22:56:32 +0000 (22:56 +0000)]
Merge "Turn the recent blog post into markdown docs."

7 years agoUse STDERR_FILENO instead of opening /dev/stderr.
Josh Gao [Fri, 7 Oct 2016 20:21:03 +0000 (13:21 -0700)]
Use STDERR_FILENO instead of opening /dev/stderr.

/dev/stderr is a symlink to /proc/self/fd/2, so this only has different
behavior when we're out of file descriptors, or when STDERR_FILENO is in
a different state (it's not at the end, it's not writable, etc.).

Test: mma
Change-Id: Ie99688d810218eca8482ff060373e88c4e001824

7 years agoRemove obsolete -std request.
Elliott Hughes [Fri, 7 Oct 2016 17:43:30 +0000 (10:43 -0700)]
Remove obsolete -std request.

Bug: http://b/32019064
Test: builds
Change-Id: Id662a63f08054634721750d26e0dcd3c366ed2e6

7 years agoTurn the recent blog post into markdown docs.
Elliott Hughes [Wed, 5 Oct 2016 21:35:00 +0000 (14:35 -0700)]
Turn the recent blog post into markdown docs.

Originally http://android-developers.blogspot.com/2016/06/android-changes-for-ndk-developers.html

Test: N/A
Change-Id: I7ab75bcf9d518310fdf4e752929ba71c286fa242

7 years agoFix a linking error in bionic/tests am: 3656958a16 -s ours
Tianjie Xu [Fri, 7 Oct 2016 04:42:46 +0000 (04:42 +0000)]
Fix a linking error in bionic/tests am: 3656958a16  -s ours
am: a9813616da

Change-Id: If53938714dd238ffe0d14af216cf383d9f8de323

7 years agoFix a linking error in bionic/tests am: 3656958a16 am: 0893380bed am: b2b0460c5b
Tianjie Xu [Fri, 7 Oct 2016 04:38:47 +0000 (04:38 +0000)]
Fix a linking error in bionic/tests am: 3656958a16 am: 0893380bed am: b2b0460c5b
am: 8c94feaa09  -s ours

Change-Id: I2af80b2c17dcc82aac169958744f93f15f8f3ccb

7 years agoFix a linking error in bionic/tests
Tianjie Xu [Fri, 7 Oct 2016 04:38:46 +0000 (04:38 +0000)]
Fix a linking error in bionic/tests
am: 3656958a16  -s ours

Change-Id: I5eb11248a4f76abd0e5ba937edb79b56bfec40fa

7 years agoFix a linking error in bionic/tests am: 3656958a16 am: 0893380bed
Tianjie Xu [Fri, 7 Oct 2016 04:30:14 +0000 (04:30 +0000)]
Fix a linking error in bionic/tests am: 3656958a16 am: 0893380bed
am: b2b0460c5b

Change-Id: I049b57acdb89e2e841e46120ce06616b0bc65922

7 years agoFix a linking error in bionic/tests am: 3656958a16
Tianjie Xu [Fri, 7 Oct 2016 04:26:44 +0000 (04:26 +0000)]
Fix a linking error in bionic/tests am: 3656958a16
am: 0893380bed

Change-Id: I462b022e42676ec6ceba39ece3933dc4cc6237d0

7 years agoFix a linking error in bionic/tests
Tianjie Xu [Fri, 7 Oct 2016 04:22:45 +0000 (04:22 +0000)]
Fix a linking error in bionic/tests
am: 3656958a16

Change-Id: I5636ecc4e0a5ff4e1ee0a6cd0f1d182d444e63f9

7 years agoFix a linking error in bionic/tests
Tianjie Xu [Fri, 7 Oct 2016 02:23:05 +0000 (19:23 -0700)]
Fix a linking error in bionic/tests

Fix the following linking error by adding liblog in the makefile:
"system/core/libziparchive/zip_archive.cc:277: error: undefined reference to
'__android_log_error_write'"

The error happens because libziparchive has dependency on liblog. This
error affects the downstream branches of nyc-dev.

Bug: 31251826
Test: mma -j32
Change-Id: Ia42909bbbd150ae0ca9f6aa6b14372f2e0aedccf

7 years agoMigrate libstdc++ to ndk_library.
Dan Albert [Thu, 6 Oct 2016 22:50:41 +0000 (15:50 -0700)]
Migrate libstdc++ to ndk_library.

Test: make checkbuild
Bug: http://b/30465923
Change-Id: I3b75b4e7fa652c83846c5978f9908e8b32d43aa7

7 years agoFix for default library path "/vendor/lib" am: 8995c3876b
neo.chae [Wed, 5 Oct 2016 16:32:31 +0000 (16:32 +0000)]
Fix for default library path "/vendor/lib" am: 8995c3876b
am: faaf582f60

Change-Id: Id2757c6d6f7dab7831e6ddf5d1dc362896cbf598

7 years agoMerge changes Ie6777e2b,Iaed834be am: e35872605b am: 4be70a368b
Dimitry Ivanov [Wed, 5 Oct 2016 16:30:14 +0000 (16:30 +0000)]
Merge changes Ie6777e2b,Iaed834be am: e35872605b am: 4be70a368b
am: cd4bb629fa

Change-Id: I6af03b9b51e14ca16fe7e806e7e9068aebe9db35

7 years agoFix for default library path "/vendor/lib" am: 2589f9de64 am: 6769c98fdb
neo.chae [Wed, 5 Oct 2016 16:30:09 +0000 (16:30 +0000)]
Fix for default library path "/vendor/lib" am: 2589f9de64 am: 6769c98fdb
am: f047b1dbbb

Change-Id: Ieeed7fd4d3244e992c03be0919686660723fd574

7 years agoFix bionic-unit-tests am: d11d1e4a97 am: 1a4e213bce
Dimitry Ivanov [Wed, 5 Oct 2016 16:30:02 +0000 (16:30 +0000)]
Fix bionic-unit-tests am: d11d1e4a97 am: 1a4e213bce
am: ec7a2273c6

Change-Id: Iecf8f9499e4c5a495800a159cdfdea0ba4120824

7 years agoFix for default library path "/vendor/lib"
neo.chae [Wed, 5 Oct 2016 16:30:00 +0000 (16:30 +0000)]
Fix for default library path "/vendor/lib"
am: 8995c3876b

Change-Id: I06cfc0106ce5a9de3ec97a7aae2495bde6ddc87d

7 years agoMerge changes Ie6777e2b,Iaed834be am: e35872605b
Dimitry Ivanov [Wed, 5 Oct 2016 16:27:10 +0000 (16:27 +0000)]
Merge changes Ie6777e2b,Iaed834be am: e35872605b
am: 4be70a368b

Change-Id: I6ca5ebf4b09757606810fb37da13b7b94e32f361

7 years agoFix for default library path "/vendor/lib" am: 2589f9de64
neo.chae [Wed, 5 Oct 2016 16:27:06 +0000 (16:27 +0000)]
Fix for default library path "/vendor/lib" am: 2589f9de64
am: 6769c98fdb

Change-Id: I4236b7446893e43d85ff11fe0a07d32980cd14cd

7 years agoFix bionic-unit-tests am: d11d1e4a97
Dimitry Ivanov [Wed, 5 Oct 2016 16:27:01 +0000 (16:27 +0000)]
Fix bionic-unit-tests am: d11d1e4a97
am: 1a4e213bce

Change-Id: Ib45d577d3cb7a3e3333d9fd2d51eaf4477aaaa06

7 years agoMerge changes Ie6777e2b,Iaed834be
Dimitry Ivanov [Wed, 5 Oct 2016 16:24:35 +0000 (16:24 +0000)]
Merge changes Ie6777e2b,Iaed834be
am: e35872605b

Change-Id: I29f7da2e449d0182aef7cbd123355c3868619c39

7 years agoFix for default library path "/vendor/lib"
neo.chae [Wed, 5 Oct 2016 16:24:33 +0000 (16:24 +0000)]
Fix for default library path "/vendor/lib"
am: 2589f9de64

Change-Id: Iedd66e5461cb7148f0864a3f759c7cad4f3fc898

7 years agoFix bionic-unit-tests
Dimitry Ivanov [Wed, 5 Oct 2016 16:24:30 +0000 (16:24 +0000)]
Fix bionic-unit-tests
am: d11d1e4a97

Change-Id: I920d980a75d27ca0df86b90f30ad261845f4bd52

7 years agoMerge changes Ie6777e2b,Iaed834be
Dimitry Ivanov [Wed, 5 Oct 2016 16:20:44 +0000 (16:20 +0000)]
Merge changes Ie6777e2b,Iaed834be

* changes:
  Fix for default library path "/vendor/lib"
  Fix bionic-unit-tests

7 years agoFix for default library path "/vendor/lib"
neo.chae [Tue, 4 Oct 2016 02:00:27 +0000 (11:00 +0900)]
Fix for default library path "/vendor/lib"

Android N restrict which libraries C/C++ code
can link against at runtime.

If device has a vendor partition
then /system/vendor symlink to /vendor.
Otherwise /vendor symlink to /system/vendor.

But is_system_library() is only checking /vendor/lib.
It will return false for /system/vendor/lib path.
It is need to add a real path to default library path.

Similarily, default ld library path is already checking.
parse_LD_LIBRARY_PATH()->parse_path()->resolve_paths()

Test: build bionic and run bionic-unit-tests
Bug: http://b/31919547
Change-Id: Ie6777e2b02729948ce77a94de32343d40358bf2c
Signed-off-by: Hyangseok Chae <neo.chae@lge.com>
(cherry picked from commit 2589f9de6473a2030594e2c5e95541f00eb2dc7a)

7 years agoFix for default library path "/vendor/lib"
neo.chae [Tue, 4 Oct 2016 02:00:27 +0000 (11:00 +0900)]
Fix for default library path "/vendor/lib"

Android N restrict which libraries C/C++ code
can link against at runtime.

If device has a vendor partition
then /system/vendor symlink to /vendor.
Otherwise /vendor symlink to /system/vendor.

But is_system_library() is only checking /vendor/lib.
It will return false for /system/vendor/lib path.
It is need to add a real path to default library path.

Similarily, default ld library path is already checking.
parse_LD_LIBRARY_PATH()->parse_path()->resolve_paths()

Test: build bionic and run bionic-unit-tests
Bug: http://b/31919547
Change-Id: Ie6777e2b02729948ce77a94de32343d40358bf2c
Signed-off-by: Hyangseok Chae <neo.chae@lge.com>
7 years agoFix bionic-unit-tests
Dimitry Ivanov [Wed, 5 Oct 2016 09:51:17 +0000 (02:51 -0700)]
Fix bionic-unit-tests

Fix rpath value for libraries after build system update

Bug: http://b/31221587
Test: run bionic-unit-tests --gtest_filter=dl*:Dl*:*atexit*
Change-Id: Iaed834bef830fd0b252b5de82e27634bafc92d8b