OSDN Git Service

android-x86/bionic.git
8 years agoMerge "Mandate optimized assembler for x86-64 __memset_chk." am: ff9bda7201
Elliott Hughes [Thu, 3 Mar 2016 22:36:22 +0000 (22:36 +0000)]
Merge "Mandate optimized assembler for x86-64 __memset_chk." am: ff9bda7201
am: a8dc8e601b

* commit 'a8dc8e601b13158e9112262cdefe1b917c93188b':
  Mandate optimized assembler for x86-64 __memset_chk.

8 years agoMerge "Mandate optimized assembler for x86-64 __memset_chk."
Elliott Hughes [Thu, 3 Mar 2016 22:23:25 +0000 (22:23 +0000)]
Merge "Mandate optimized assembler for x86-64 __memset_chk."
am: ff9bda7201

* commit 'ff9bda720194f3596c9096eb8648ef92d9337c7e':
  Mandate optimized assembler for x86-64 __memset_chk.

8 years agoMerge "Mandate optimized assembler for x86-64 __memset_chk."
Elliott Hughes [Thu, 3 Mar 2016 22:18:45 +0000 (22:18 +0000)]
Merge "Mandate optimized assembler for x86-64 __memset_chk."

8 years agolibdl: Rename LIBC_PRIVATE to LIBC_PLATFORM
Dimitry Ivanov [Thu, 3 Mar 2016 22:10:39 +0000 (22:10 +0000)]
libdl: Rename LIBC_PRIVATE to LIBC_PLATFORM
am: 6b80e0b4bb

* commit '6b80e0b4bbfa51ef72c1446683a943ddbfc26784':
  libdl: Rename LIBC_PRIVATE to LIBC_PLATFORM

8 years agoModify android_dlwarning function to use a callback
Dimitry Ivanov [Thu, 3 Mar 2016 22:10:28 +0000 (22:10 +0000)]
Modify android_dlwarning function to use a callback
am: 6be6ef563e

* commit '6be6ef563e15cec05ea758f76b493b63c760923c':
  Modify android_dlwarning function to use a callback

8 years agoMerge changes I17c22dc2,I9989e2ea am: 19ca2fe82f
Josh Gao [Thu, 3 Mar 2016 22:06:35 +0000 (22:06 +0000)]
Merge changes I17c22dc2,I9989e2ea am: 19ca2fe82f
am: 6e7e53af2d

* commit '6e7e53af2d5a3474194ec3ecd3833eba5bf67d34':
  Add a checksum to jmp_buf on AArch64.
  Add a checksum to jmp_buf on ARM.

8 years agoMerge changes I17c22dc2,I9989e2ea
Josh Gao [Thu, 3 Mar 2016 22:04:45 +0000 (22:04 +0000)]
Merge changes I17c22dc2,I9989e2ea
am: 19ca2fe82f

* commit '19ca2fe82fe05dd7565ce294841bd6425e84bb3d':
  Add a checksum to jmp_buf on AArch64.
  Add a checksum to jmp_buf on ARM.

8 years agoMerge changes I17c22dc2,I9989e2ea
Josh Gao [Thu, 3 Mar 2016 22:02:37 +0000 (22:02 +0000)]
Merge changes I17c22dc2,I9989e2ea

* changes:
  Add a checksum to jmp_buf on AArch64.
  Add a checksum to jmp_buf on ARM.

8 years agolibdl: Rename LIBC_PRIVATE to LIBC_PLATFORM
Dimitry Ivanov [Wed, 2 Mar 2016 19:41:22 +0000 (11:41 -0800)]
libdl: Rename LIBC_PRIVATE to LIBC_PLATFORM

Bug: http://b/26386014
Change-Id: I3255faac66a96867aed302e205e3644b40ce7750
(cherry picked from commit 98cdef39dccad972a527b274be08a1905047a39a)

8 years agoModify android_dlwarning function to use a callback
Dimitry Ivanov [Wed, 2 Mar 2016 21:05:51 +0000 (13:05 -0800)]
Modify android_dlwarning function to use a callback

The previous implementation of android_dlwarning was not thread-safe
and could return a pointer soon to become invalid in some situations.
This change fixed the problem. I have also removed android_dlwarning
from the dlext.h header file in case we decide to keep
android_dlwarning in the final release.

Bug: http://b/27453994
Change-Id: If6c896a80a17c4be0e18795e617712ad36a106fe

8 years agoAdd a checksum to jmp_buf on AArch64.
Josh Gao [Thu, 3 Mar 2016 03:45:29 +0000 (19:45 -0800)]
Add a checksum to jmp_buf on AArch64.

Bug: http://b/27417786
Change-Id: I17c22dc28a46dd6b678b449b506b0da978f3793e

8 years agoAdd a checksum to jmp_buf on ARM.
Josh Gao [Thu, 3 Mar 2016 03:03:17 +0000 (19:03 -0800)]
Add a checksum to jmp_buf on ARM.

Make it easier to diagnose applications mucking with the contents of
jmp_buf by checksumming its contents.

Bug: http://b/27417786
Change-Id: I9989e2ea3979a36ae0bc4c9e1bacafddbacc731b

8 years agoMerge "Remove optimized code for bzero, which was removed from POSIX in 2008." am...
Elliott Hughes [Thu, 3 Mar 2016 18:29:36 +0000 (18:29 +0000)]
Merge "Remove optimized code for bzero, which was removed from POSIX in 2008." am: 6809af0375
am: 11dcd28038

* commit '11dcd28038922612663b108738087c595c6cdbdd':
  Remove optimized code for bzero, which was removed from POSIX in 2008.

8 years agoMerge "Remove optimized code for bzero, which was removed from POSIX in 2008."
Elliott Hughes [Thu, 3 Mar 2016 18:27:36 +0000 (18:27 +0000)]
Merge "Remove optimized code for bzero, which was removed from POSIX in 2008."
am: 6809af0375

* commit '6809af03759e27c87598ea56e4f6a8c9b6267add':
  Remove optimized code for bzero, which was removed from POSIX in 2008.

8 years agoMerge "Remove optimized code for bzero, which was removed from POSIX in 2008."
Elliott Hughes [Thu, 3 Mar 2016 18:26:02 +0000 (18:26 +0000)]
Merge "Remove optimized code for bzero, which was removed from POSIX in 2008."

8 years agoMerge "Mandate optimized __memset_chk for arm and arm64." am: 5e57039c24
Elliott Hughes [Thu, 3 Mar 2016 01:40:27 +0000 (01:40 +0000)]
Merge "Mandate optimized __memset_chk for arm and arm64." am: 5e57039c24
am: e579456a80

* commit 'e579456a80dd135b0f109d5688cbe8ad4f7b22ba':
  Mandate optimized __memset_chk for arm and arm64.

8 years agoRemove optimized code for bzero, which was removed from POSIX in 2008.
Elliott Hughes [Thu, 3 Mar 2016 01:18:18 +0000 (17:18 -0800)]
Remove optimized code for bzero, which was removed from POSIX in 2008.

I'll come back for the last bcopy remnant...

Bug: http://b/26407170
Change-Id: Iabfeb95fc8a4b4b3992e3cc209ec5221040e7c26

8 years agoMerge "Mandate optimized __memset_chk for arm and arm64."
Elliott Hughes [Thu, 3 Mar 2016 00:42:51 +0000 (00:42 +0000)]
Merge "Mandate optimized __memset_chk for arm and arm64."
am: 5e57039c24

* commit '5e57039c24d8aa777480e33255d627ca28af7dfe':
  Mandate optimized __memset_chk for arm and arm64.

8 years agoMandate optimized assembler for x86-64 __memset_chk.
Elliott Hughes [Thu, 3 Mar 2016 00:39:29 +0000 (16:39 -0800)]
Mandate optimized assembler for x86-64 __memset_chk.

Change-Id: I4d6b452f3cf850d405e8f5d7da01d432603e606b

8 years agoMerge "Mandate optimized __memset_chk for arm and arm64."
Elliott Hughes [Thu, 3 Mar 2016 00:30:06 +0000 (00:30 +0000)]
Merge "Mandate optimized __memset_chk for arm and arm64."

8 years agoresolve merge conflicts of b2fd768656 to nyc-dev-plus-aosp
Dimitry Ivanov [Wed, 2 Mar 2016 22:49:02 +0000 (14:49 -0800)]
resolve merge conflicts of b2fd768656 to nyc-dev-plus-aosp

Change-Id: Ic4e4f151759c34ef271d54d37be379600ef16f4b

8 years agoMerge "libdl: Rename LIBC_PRIVATE to LIBC_PLATFORM"
Dimitry Ivanov [Wed, 2 Mar 2016 21:34:03 +0000 (21:34 +0000)]
Merge "libdl: Rename LIBC_PRIVATE to LIBC_PLATFORM"
am: 6e30ca516b

* commit '6e30ca516bbf1d209d827306c495b2a205540c5a':
  libdl: Rename LIBC_PRIVATE to LIBC_PLATFORM

8 years agoMerge "libdl: Rename LIBC_PRIVATE to LIBC_PLATFORM"
Dimitry Ivanov [Wed, 2 Mar 2016 21:04:31 +0000 (21:04 +0000)]
Merge "libdl: Rename LIBC_PRIVATE to LIBC_PLATFORM"

8 years agoMerge "Do not add linker the _r_debug.r_map on link_image" am: ca75a3e3e7
Dimitry Ivanov [Wed, 2 Mar 2016 20:04:02 +0000 (20:04 +0000)]
Merge "Do not add linker the _r_debug.r_map on link_image" am: ca75a3e3e7
am: 7264f571a7

* commit '7264f571a7fd7689dc92a3bb16806e77a4fe3007':
  Do not add linker the _r_debug.r_map on link_image

8 years agoMandate optimized __memset_chk for arm and arm64.
Elliott Hughes [Wed, 2 Mar 2016 19:58:41 +0000 (11:58 -0800)]
Mandate optimized __memset_chk for arm and arm64.

This involves actually implementing assembler __memset_chk for arm64,
but that's easily done.

Obviously I'd like this for all architectures (and all the string functions),
but this is low-hanging fruit...

Change-Id: I70ec48c91aafd1f0feb974a2555c51611de9ef82

8 years agoMerge "Do not add linker the _r_debug.r_map on link_image"
Dimitry Ivanov [Wed, 2 Mar 2016 19:53:12 +0000 (19:53 +0000)]
Merge "Do not add linker the _r_debug.r_map on link_image"
am: ca75a3e3e7

* commit 'ca75a3e3e7574e66e09632b1692b3c144ba2b4f4':
  Do not add linker the _r_debug.r_map on link_image

8 years agoMerge "Do not add linker the _r_debug.r_map on link_image"
Dimitry Ivanov [Wed, 2 Mar 2016 19:49:25 +0000 (19:49 +0000)]
Merge "Do not add linker the _r_debug.r_map on link_image"

8 years agolibdl: Rename LIBC_PRIVATE to LIBC_PLATFORM
Dimitry Ivanov [Wed, 2 Mar 2016 19:41:22 +0000 (11:41 -0800)]
libdl: Rename LIBC_PRIVATE to LIBC_PLATFORM

Bug: http://b/26386014
Change-Id: I3255faac66a96867aed302e205e3644b40ce7750

8 years agoMerge "Improve diagnostics from the assembler __memcpy_chk routines." am: 2332d52439
Elliott Hughes [Wed, 2 Mar 2016 19:32:03 +0000 (19:32 +0000)]
Merge "Improve diagnostics from the assembler __memcpy_chk routines." am: 2332d52439
am: 61050edbfd

* commit '61050edbfd0896d2445dcf1e2cece2f4d207e00a':
  Improve diagnostics from the assembler __memcpy_chk routines.

8 years agoMerge "Improve diagnostics from the assembler __memcpy_chk routines."
Elliott Hughes [Wed, 2 Mar 2016 19:21:33 +0000 (19:21 +0000)]
Merge "Improve diagnostics from the assembler __memcpy_chk routines."
am: 2332d52439

* commit '2332d524396aa69c55969cf6e48a5048f12d53ea':
  Improve diagnostics from the assembler __memcpy_chk routines.

8 years agoMerge "Improve diagnostics from the assembler __memcpy_chk routines."
Elliott Hughes [Wed, 2 Mar 2016 19:13:02 +0000 (19:13 +0000)]
Merge "Improve diagnostics from the assembler __memcpy_chk routines."

8 years agoDo not add linker the _r_debug.r_map on link_image
Dimitry Ivanov [Tue, 1 Mar 2016 23:55:56 +0000 (15:55 -0800)]
Do not add linker the _r_debug.r_map on link_image

Change-Id: Idd0fb06a5d9f400c0608ae532cc4c575211810fa

8 years agoFix getifaddrs\' handling of point-to-point interfaces.
Elliott Hughes [Wed, 2 Mar 2016 18:24:23 +0000 (18:24 +0000)]
Fix getifaddrs\' handling of point-to-point interfaces.
am: fbdffcc34b

* commit 'fbdffcc34b757c267c736f5fde9c631ae4815247':
  Fix getifaddrs' handling of point-to-point interfaces.

8 years agoMerge "Fix getifaddrs\' handling of point-to-point interfaces." am: c5fa374ee9
Elliott Hughes [Wed, 2 Mar 2016 16:55:23 +0000 (16:55 +0000)]
Merge "Fix getifaddrs\' handling of point-to-point interfaces." am: c5fa374ee9
am: 869dfdc6be

* commit '869dfdc6be8aedb0b2ba73c8f7c2c24337e253de':
  Fix getifaddrs' handling of point-to-point interfaces.

8 years agoMerge "Fix getifaddrs\' handling of point-to-point interfaces."
Elliott Hughes [Wed, 2 Mar 2016 16:30:41 +0000 (16:30 +0000)]
Merge "Fix getifaddrs\' handling of point-to-point interfaces."
am: c5fa374ee9

* commit 'c5fa374ee92e3aedd15daf450e1a8bb5179e7a6a':
  Fix getifaddrs' handling of point-to-point interfaces.

8 years agoFix getifaddrs' handling of point-to-point interfaces.
Elliott Hughes [Wed, 2 Mar 2016 01:27:12 +0000 (17:27 -0800)]
Fix getifaddrs' handling of point-to-point interfaces.

Also remove an if that implied that IFA_BROADCAST is a possibility for
AF_INET6.

The existing tests fail if you have a point-to-point interface configured,
so no new test necessary.

Bug: http://b/27442503

(cherry picked from commit ef925e50d38fe6f5499c1d0d24cca98bf88e5256)

Change-Id: I19c19d83a86d0a8004a6b45dea7febe9d6fb6a2e

8 years agoMerge "Fix getifaddrs' handling of point-to-point interfaces."
Elliott Hughes [Wed, 2 Mar 2016 16:06:13 +0000 (16:06 +0000)]
Merge "Fix getifaddrs' handling of point-to-point interfaces."

8 years agoFix getifaddrs' handling of point-to-point interfaces.
Elliott Hughes [Wed, 2 Mar 2016 01:27:12 +0000 (17:27 -0800)]
Fix getifaddrs' handling of point-to-point interfaces.

Also remove an if that implied that IFA_BROADCAST is a possibility for
AF_INET6.

The existing tests fail if you have a point-to-point interface configured,
so no new test necessary.

Bug: http://b/27442503
Change-Id: I4c5823b32204ae6c15527853414c2a0cef320b53

8 years agoresolve merge conflicts of e80bd8c884 to nyc-dev-plus-aosp
Dimitry Ivanov [Wed, 2 Mar 2016 01:15:10 +0000 (17:15 -0800)]
resolve merge conflicts of e80bd8c884 to nyc-dev-plus-aosp

Change-Id: Ife166398167859af1ea471016e73a5e0fe03fee7

8 years agoMerge "linker: print "not accessible" error message to the log"
Dimitry Ivanov [Tue, 1 Mar 2016 23:33:31 +0000 (23:33 +0000)]
Merge "linker: print "not accessible" error message to the log"
am: a3be5bfded

* commit 'a3be5bfdede8ae6c88bb06d6fa6bf8192ea3268e':
  linker: print "not accessible" error message to the log

8 years agoMerge "linker: print "not accessible" error message to the log"
Dimitry Ivanov [Tue, 1 Mar 2016 23:29:59 +0000 (23:29 +0000)]
Merge "linker: print "not accessible" error message to the log"

8 years agolinker: print "not accessible" error message to the log
Dimitry Ivanov [Tue, 1 Mar 2016 21:11:28 +0000 (13:11 -0800)]
linker: print "not accessible" error message to the log

Print properties of the namespace on "library is not accessible"
error to better diagnose problems with native library accessiblity

Bug: http://b/27406143
Change-Id: Icf3d6c604f09dfa015de863fdb1267d343930d2a
(cherry picked from commit 350bdad61cc6551db649fcaeb8642f4a1d6b139a)

8 years agolinker: print "not accessible" error message to the log
Dimitry Ivanov [Tue, 1 Mar 2016 23:09:17 +0000 (23:09 +0000)]
linker: print "not accessible" error message to the log
am: 350bdad61c

* commit '350bdad61cc6551db649fcaeb8642f4a1d6b139a':
  linker: print "not accessible" error message to the log

8 years agolinker: print "not accessible" error message to the log
Dimitry Ivanov [Tue, 1 Mar 2016 21:11:28 +0000 (13:11 -0800)]
linker: print "not accessible" error message to the log

Print properties of the namespace on "library is not accessible"
error to better diagnose problems with native library accessiblity

Bug: http://b/27406143
Change-Id: Icf3d6c604f09dfa015de863fdb1267d343930d2a

8 years agoImprove diagnostics from the assembler __memcpy_chk routines.
Elliott Hughes [Tue, 1 Mar 2016 22:45:58 +0000 (14:45 -0800)]
Improve diagnostics from the assembler __memcpy_chk routines.

Change-Id: Iec16c92ed80beee505cba2121ea33e3550197b02

8 years agoresolve merge conflicts of 278ecb98cd to nyc-dev-plus-aosp
Dimitry Ivanov [Tue, 1 Mar 2016 22:00:54 +0000 (14:00 -0800)]
resolve merge conflicts of 278ecb98cd to nyc-dev-plus-aosp

Change-Id: I24bfe3cfaf93a4e332ef82a94c5f58ed4141b33c

8 years agoMerge "Improve diagnostics from the assembler __memset_chk routines." am: c199690b5f
Elliott Hughes [Tue, 1 Mar 2016 21:31:37 +0000 (21:31 +0000)]
Merge "Improve diagnostics from the assembler __memset_chk routines." am: c199690b5f
am: 2ed0e35c3b

* commit '2ed0e35c3b1a01d863b2f5c9c609161d91fa1f28':
  Improve diagnostics from the assembler __memset_chk routines.

8 years agoMerge "Improve diagnostics from the assembler __memset_chk routines."
Elliott Hughes [Tue, 1 Mar 2016 21:28:16 +0000 (21:28 +0000)]
Merge "Improve diagnostics from the assembler __memset_chk routines."
am: c199690b5f

* commit 'c199690b5ffda0f4df50d1121f7ab577af1fe468':
  Improve diagnostics from the assembler __memset_chk routines.

8 years agoMerge "Improve diagnostics from the assembler __memset_chk routines."
Elliott Hughes [Tue, 1 Mar 2016 21:25:06 +0000 (21:25 +0000)]
Merge "Improve diagnostics from the assembler __memset_chk routines."

8 years agoImprove diagnostics from the assembler __memset_chk routines.
Elliott Hughes [Tue, 1 Mar 2016 19:22:42 +0000 (11:22 -0800)]
Improve diagnostics from the assembler __memset_chk routines.

Change-Id: Ic165043ab8cd5e16866b3e11cfba960514cbdc57

8 years agoMerge "Update libgcc_compat.c file for mips32 arch" am: 4fedc4154d
Lazar Trsic [Tue, 1 Mar 2016 19:51:04 +0000 (19:51 +0000)]
Merge "Update libgcc_compat.c file for mips32 arch" am: 4fedc4154d
am: 3bb5ea60a0

* commit '3bb5ea60a0ca662be09ea1a6c74253dbb632aa25':
  Update libgcc_compat.c file for mips32 arch

8 years agoMerge "Copy the entire zero-separated DNS seach domain string." am: 2de7983470
Pierre Imai [Tue, 1 Mar 2016 19:50:58 +0000 (19:50 +0000)]
Merge "Copy the entire zero-separated DNS seach domain string." am: 2de7983470
am: b908f71f72

* commit 'b908f71f726b224e1d8dd8e196b64d7e1cdec103':
  Copy the entire zero-separated DNS seach domain string.

8 years agoMerge "Update libgcc_compat.c file for mips32 arch"
Lazar Trsic [Tue, 1 Mar 2016 19:38:24 +0000 (19:38 +0000)]
Merge "Update libgcc_compat.c file for mips32 arch"
am: 4fedc4154d

* commit '4fedc4154d09149d2376bd69ef2ad0e771466517':
  Update libgcc_compat.c file for mips32 arch

8 years agoMerge "Update libgcc_compat.c file for mips32 arch"
Dimitry Ivanov [Tue, 1 Mar 2016 19:35:35 +0000 (19:35 +0000)]
Merge "Update libgcc_compat.c file for mips32 arch"

8 years agoMerge "Add android_dlwarning() method" into nyc-dev
Dimitry Ivanov [Tue, 1 Mar 2016 17:50:00 +0000 (17:50 +0000)]
Merge "Add android_dlwarning() method" into nyc-dev

8 years agoUpdate libgcc_compat.c file for mips32 arch
Lazar Trsic [Tue, 1 Mar 2016 14:14:58 +0000 (15:14 +0100)]
Update libgcc_compat.c file for mips32 arch

Contains complete list of libgcc references.

Change-Id: If6b8000dcefa72036a025ebbe59f51e93fe57e98

8 years agoMerge "Copy the entire zero-separated DNS seach domain string."
Pierre Imai [Tue, 1 Mar 2016 08:15:39 +0000 (08:15 +0000)]
Merge "Copy the entire zero-separated DNS seach domain string."
am: 2de7983470

* commit '2de7983470a04e3037a8993553c3b9533b985952':
  Copy the entire zero-separated DNS seach domain string.

8 years agoMerge "Copy the entire zero-separated DNS seach domain string."
Pierre Imai [Tue, 1 Mar 2016 08:15:03 +0000 (08:15 +0000)]
Merge "Copy the entire zero-separated DNS seach domain string."

8 years agoRewrite ifaddrs#getifaddrs_INET.
Elliott Hughes [Tue, 1 Mar 2016 03:30:14 +0000 (03:30 +0000)]
Rewrite ifaddrs#getifaddrs_INET.
am: 2ef5f633e7

* commit '2ef5f633e7998cf71029341e466d8e13bad7b05b':
  Rewrite ifaddrs#getifaddrs_INET.

8 years agoMerge "Rewrite ifaddrs#getifaddrs_INET." am: 27900405c6
Elliott Hughes [Tue, 1 Mar 2016 03:24:15 +0000 (03:24 +0000)]
Merge "Rewrite ifaddrs#getifaddrs_INET." am: 27900405c6
am: 686a2beaee

* commit '686a2beaee1b7f321761db8e58446db60540c79c':
  Rewrite ifaddrs#getifaddrs_INET.

8 years agoRewrite ifaddrs#getifaddrs_INET.
Elliott Hughes [Mon, 29 Feb 2016 21:31:59 +0000 (13:31 -0800)]
Rewrite ifaddrs#getifaddrs_INET.

The old implementation was unnecessarily complex, and using the wrong ioctl
for point-to-point destination addresses.

Bug: http://b/27313259

(cherry picked from commit bf97770a8602ad50ac97a16b978f92c366595684)

Change-Id: Ifad01967d6b7f4bb1e0346a5bb352dbb524bf846

8 years agoMerge "Rewrite ifaddrs#getifaddrs_INET."
Elliott Hughes [Tue, 1 Mar 2016 03:22:16 +0000 (03:22 +0000)]
Merge "Rewrite ifaddrs#getifaddrs_INET."
am: 27900405c6

* commit '27900405c66c53e3a45637661f89ff3c8cf69ec5':
  Rewrite ifaddrs#getifaddrs_INET.

8 years agoMerge "Rewrite ifaddrs#getifaddrs_INET."
Elliott Hughes [Tue, 1 Mar 2016 03:21:35 +0000 (03:21 +0000)]
Merge "Rewrite ifaddrs#getifaddrs_INET."

8 years agoRewrite ifaddrs#getifaddrs_INET.
Elliott Hughes [Mon, 29 Feb 2016 21:31:59 +0000 (13:31 -0800)]
Rewrite ifaddrs#getifaddrs_INET.

The old implementation was unnecessarily complex, and using the wrong ioctl
for point-to-point destination addresses.

Bug: http://b/27313259
Change-Id: I9cabd17e414ce42b115037a3f828d79843f604f9

8 years agoMove hard-coded values to constants.
Christopher Ferris [Mon, 29 Feb 2016 21:19:44 +0000 (21:19 +0000)]
Move hard-coded values to constants.
am: 598e2c0d2a

* commit '598e2c0d2ae6b7fbc5eb470e4296c20ed1a011ee':
  Move hard-coded values to constants.

8 years agoMove hard-coded values to constants.
Christopher Ferris [Tue, 23 Feb 2016 03:23:26 +0000 (19:23 -0800)]
Move hard-coded values to constants.

Change all of the hard-coded config values to be defined constants.
Also make sure to use these constants in the usage output.

Bug: 26739265

(cherry picked from commit 549e52200b6af3c33cba7ef759ea98b49fa40082)

Change-Id: I07b7095cad9c47207a31d9b95e4013f4cb07ae0e

8 years agoMerge "Move hard-coded values to constants." am: 6fa50a292e
Christopher Ferris [Mon, 29 Feb 2016 19:25:22 +0000 (19:25 +0000)]
Merge "Move hard-coded values to constants." am: 6fa50a292e
am: 787e3f6136

* commit '787e3f6136ec1e77ef9819afaf6d40314945a7ea':
  Move hard-coded values to constants.

8 years agoMerge "Move hard-coded values to constants."
Christopher Ferris [Mon, 29 Feb 2016 19:23:45 +0000 (19:23 +0000)]
Merge "Move hard-coded values to constants."
am: 6fa50a292e

* commit '6fa50a292e541d9be846f03cff52c0ae95781fb2':
  Move hard-coded values to constants.

8 years agoMerge "Move hard-coded values to constants."
Christopher Ferris [Mon, 29 Feb 2016 19:22:59 +0000 (19:22 +0000)]
Merge "Move hard-coded values to constants."

8 years agoMerge "Update Android.bp with recent Android.mk changes" am: bb3add2125
Dan Willemsen [Mon, 29 Feb 2016 19:13:01 +0000 (19:13 +0000)]
Merge "Update Android.bp with recent Android.mk changes" am: bb3add2125
am: 85884137d9

* commit '85884137d928f855a2feafe589a3a6127278b22d':
  Update Android.bp with recent Android.mk changes

8 years agoMerge "Update Android.bp with recent Android.mk changes"
Dan Willemsen [Mon, 29 Feb 2016 19:10:03 +0000 (19:10 +0000)]
Merge "Update Android.bp with recent Android.mk changes"
am: bb3add2125

* commit 'bb3add2125ce4ace0ba053e3c9bb2a8bf3840f47':
  Update Android.bp with recent Android.mk changes

8 years agoMerge "Update Android.bp with recent Android.mk changes"
Dan Willemsen [Mon, 29 Feb 2016 19:06:47 +0000 (19:06 +0000)]
Merge "Update Android.bp with recent Android.mk changes"

8 years agoUpdate Android.bp with recent Android.mk changes
Dan Willemsen [Mon, 29 Feb 2016 18:37:56 +0000 (10:37 -0800)]
Update Android.bp with recent Android.mk changes

Change-Id: If9777e9ece6de1bc00c3ef86724c7bd4d437aaca

8 years agoCopy the entire zero-separated DNS seach domain string.
Pierre Imai [Mon, 29 Feb 2016 07:31:55 +0000 (16:31 +0900)]
Copy the entire zero-separated DNS seach domain string.

The DNS search string contains zeros as domain separator. The resolver
code erroneously used strlcpy(), which resulted in only the first domain
to be copied. The code uses pointers into this string to access the
individual domains. Since the structure is zero-initialized, this bug only
resulted in zero-length domains instead of accessing unitialized memory.

BUG: 27312811
Change-Id: Ia9d066c405dfcc5e82d6766d93ead2ce574e7b0d

8 years agoMerge "Create logging sockets with SOCK_NONBLOCK..." am: 17866357c5
Elliott Hughes [Sun, 28 Feb 2016 15:55:53 +0000 (15:55 +0000)]
Merge "Create logging sockets with SOCK_NONBLOCK..." am: 17866357c5
am: 849551dc28

* commit '849551dc28cc7ef477f82a4428b4a948c847484d':
  Create logging sockets with SOCK_NONBLOCK...

8 years agoMerge "Create logging sockets with SOCK_NONBLOCK..."
Elliott Hughes [Sun, 28 Feb 2016 15:55:39 +0000 (15:55 +0000)]
Merge "Create logging sockets with SOCK_NONBLOCK..."
am: 17866357c5

* commit '17866357c5437d1b43b9f4b7411e48d9c9c38bec':
  Create logging sockets with SOCK_NONBLOCK...

8 years agoMerge "Create logging sockets with SOCK_NONBLOCK..."
Elliott Hughes [Sun, 28 Feb 2016 15:54:44 +0000 (15:54 +0000)]
Merge "Create logging sockets with SOCK_NONBLOCK..."

8 years agoCreate logging sockets with SOCK_NONBLOCK...
Elliott Hughes [Sun, 28 Feb 2016 03:18:41 +0000 (19:18 -0800)]
Create logging sockets with SOCK_NONBLOCK...

...rather than calling fcntl on them directly after creation.

Bug: https://code.google.com/p/android/issues/detail?id=201440
Change-Id: Ia3941b7645455d69620b1a361902df009b5da2c5

8 years agoMerge "Improve FORTIFY failure diagnostics." am: 31adf6cd38
Elliott Hughes [Sun, 28 Feb 2016 00:31:29 +0000 (00:31 +0000)]
Merge "Improve FORTIFY failure diagnostics." am: 31adf6cd38
am: 255ef494f7

* commit '255ef494f75ac0eed42fec13d0443a70705841e8':
  Improve FORTIFY failure diagnostics.

8 years agoMerge "Improve FORTIFY failure diagnostics."
Elliott Hughes [Sun, 28 Feb 2016 00:31:16 +0000 (00:31 +0000)]
Merge "Improve FORTIFY failure diagnostics."
am: 31adf6cd38

* commit '31adf6cd3846030f0d7397fa5f3cc285d8c79533':
  Improve FORTIFY failure diagnostics.

8 years agoMerge "Improve FORTIFY failure diagnostics."
Elliott Hughes [Sun, 28 Feb 2016 00:30:31 +0000 (00:30 +0000)]
Merge "Improve FORTIFY failure diagnostics."

8 years agoImprove FORTIFY failure diagnostics.
Elliott Hughes [Fri, 26 Feb 2016 04:33:47 +0000 (20:33 -0800)]
Improve FORTIFY failure diagnostics.

Our FORTIFY _chk functions' implementations were very repetitive and verbose
but not very helpful. We'd also screwed up and put the SSIZE_MAX checks where
they would never fire unless you actually had a buffer as large as half your
address space, which probably doesn't happen very often.

Factor out the duplication and take the opportunity to actually show details
like how big the overrun buffer was, or by how much it was overrun.

Also remove the obsolete FORTIFY event logging.

Also remove the unused __libc_fatal_no_abort.

This change doesn't improve the diagnostics from the optimized assembler
implementations.

Change-Id: I176a90701395404d50975b547a00bd2c654e1252

8 years agoMove hard-coded values to constants.
Christopher Ferris [Tue, 23 Feb 2016 03:23:26 +0000 (19:23 -0800)]
Move hard-coded values to constants.

Change all of the hard-coded config values to be defined constants.
Also make sure to use these constants in the usage output.

Bug: 26739265
Change-Id: I597a6d71279a2df9cc7e98c42ac70224261bac99

8 years agoAdd android_dlwarning() method
Dimitry Ivanov [Thu, 25 Feb 2016 23:22:04 +0000 (15:22 -0800)]
Add android_dlwarning() method

This is temporary method intended to use
for a toast message on preview and beta
releases. Will be removed before the
production release.

Bug: http://b/27365747
Change-Id: I39cc716bb82863ae761b6821bcec77cce6db3781

8 years agoMerge "Update timezone data to 2016a" into nyc-dev
Neil Fuller [Fri, 26 Feb 2016 14:40:40 +0000 (14:40 +0000)]
Merge "Update timezone data to 2016a" into nyc-dev
am: 2465df001c

* commit '2465df001c7b1d3dc0a0e003f15c5fe6000a0452':
  Update timezone data to 2016a

8 years agoMerge "Update timezone data to 2016a" into nyc-dev
Neil Fuller [Fri, 26 Feb 2016 14:37:43 +0000 (14:37 +0000)]
Merge "Update timezone data to 2016a" into nyc-dev

8 years agoUpdate timezone data to 2016a
Neil Fuller [Wed, 24 Feb 2016 15:09:28 +0000 (15:09 +0000)]
Update timezone data to 2016a

  Changes affecting future time stamps

    America/Cayman will not observe daylight saving this year after all.
    Revert our guess that it would.  (Thanks to Matt Johnson.)

    Asia/Chita switches from +0800 to +0900 on 2016-03-27 at 02:00.
    (Thanks to Alexander Krivenyshev.)

    Asia/Tehran now has DST predictions for the year 2038 and later,
    to be March 21 00:00 to September 21 00:00.  This is likely better
    than predicting no DST, albeit off by a day every now and then.

  Changes affecting past and future time stamps

    America/Metlakatla switched from PST all year to AKST/AKDT on
    2015-11-01 at 02:00.  (Thanks to Steffen Thorsen.)

    America/Santa_Isabel has been removed, and replaced with a
    backward compatibility link to America/Tijuana.  Its contents were
    apparently based on a misreading of Mexican legislation.

  Changes affecting past time stamps

    Asia/Karachi's two transition times in 2002 were off by a minute.
    (Thanks to Matt Johnson.)

Bug: 26833368
(cherry picked from commit 92057af535a8976b078b61eb58f894cd6f511fea)

Change-Id: I31985eb6101cf5d428ecaec70be4248c896a5b86

8 years agoMerge "Update timezone data to 2016a" am: eb727252f2
Neil Fuller [Fri, 26 Feb 2016 11:26:35 +0000 (11:26 +0000)]
Merge "Update timezone data to 2016a" am: eb727252f2
am: 812506301d

* commit '812506301dda9297aba98c255e255d820867c290':
  Update timezone data to 2016a

8 years agoMerge "Update timezone data to 2016a"
Neil Fuller [Fri, 26 Feb 2016 11:25:05 +0000 (11:25 +0000)]
Merge "Update timezone data to 2016a"
am: eb727252f2

* commit 'eb727252f22bd533ebfd40637c0718fdc9946221':
  Update timezone data to 2016a

8 years agoMerge "Update timezone data to 2016a"
Neil Fuller [Fri, 26 Feb 2016 11:23:28 +0000 (11:23 +0000)]
Merge "Update timezone data to 2016a"

8 years agoMerge "If you\'re going to use memset..." am: a8f05fcc64
Elliott Hughes [Fri, 26 Feb 2016 06:09:22 +0000 (06:09 +0000)]
Merge "If you\'re going to use memset..." am: a8f05fcc64
am: 74e096efc5

* commit '74e096efc5d13fcbc4b1665294dd3d48698889cf':
  If you're going to use memset...

8 years agoMerge "If you\'re going to use memset..."
Elliott Hughes [Fri, 26 Feb 2016 06:07:46 +0000 (06:07 +0000)]
Merge "If you\'re going to use memset..."
am: a8f05fcc64

* commit 'a8f05fcc64c6484051112882a087fba533f14322':
  If you're going to use memset...

8 years agoMerge "If you're going to use memset..."
Elliott Hughes [Fri, 26 Feb 2016 06:06:11 +0000 (06:06 +0000)]
Merge "If you're going to use memset..."

8 years agoIf you're going to use memset...
Elliott Hughes [Fri, 26 Feb 2016 06:05:28 +0000 (22:05 -0800)]
If you're going to use memset...

...you'd better #include <string.h>.

Change-Id: I83e0877f4151fc764588e2d876e66d7712d41f61

8 years agoMerge "GCC doesn\'t like {}, and clang doesn\'t like {0}..." am: a8e75ba37d
Elliott Hughes [Fri, 26 Feb 2016 05:57:00 +0000 (05:57 +0000)]
Merge "GCC doesn\'t like {}, and clang doesn\'t like {0}..." am: a8e75ba37d
am: 30fbacba13

* commit '30fbacba13db8b809a591e3795b7b9cdaa7716ae':
  GCC doesn't like {}, and clang doesn't like {0}...

8 years agoMerge "GCC doesn\'t like {}, and clang doesn\'t like {0}..."
Elliott Hughes [Fri, 26 Feb 2016 05:55:34 +0000 (05:55 +0000)]
Merge "GCC doesn\'t like {}, and clang doesn\'t like {0}..."
am: a8e75ba37d

* commit 'a8e75ba37deff962b0ddbc2fb81b96c3515ae7e5':
  GCC doesn't like {}, and clang doesn't like {0}...

8 years agoMerge "GCC doesn't like {}, and clang doesn't like {0}..."
Elliott Hughes [Fri, 26 Feb 2016 05:53:59 +0000 (05:53 +0000)]
Merge "GCC doesn't like {}, and clang doesn't like {0}..."

8 years agoGCC doesn't like {}, and clang doesn't like {0}...
Elliott Hughes [Fri, 26 Feb 2016 05:51:50 +0000 (21:51 -0800)]
GCC doesn't like {}, and clang doesn't like {0}...

...so memset it is, then.

I'll be glad when GCC is dead and we can use "= {}" like it's the 21st century.

Change-Id: I28d820d3926ac9bf44bf7c1e89e184726c840391

8 years agoMerge "Fix a structure initialisation in pthread_exit()." am: d07d77e399
Anton Kirilov [Fri, 26 Feb 2016 05:03:44 +0000 (05:03 +0000)]
Merge "Fix a structure initialisation in pthread_exit()." am: d07d77e399
am: 2e3f5e72a6

* commit '2e3f5e72a65341b4cadd58a627d8974267edcdc5':
  Fix a structure initialisation in pthread_exit().

8 years agoMerge "Fix a structure initialisation in pthread_exit()."
Anton Kirilov [Fri, 26 Feb 2016 05:02:16 +0000 (05:02 +0000)]
Merge "Fix a structure initialisation in pthread_exit()."
am: d07d77e399

* commit 'd07d77e399ee26291125bedbe46d03e037e705f2':
  Fix a structure initialisation in pthread_exit().