Merge tag 'android-4.4_r1' into HEAD

Android 4.4 Release 1.0

Conflicts:
	libc/Android.mk
	libc/arch-arm/arm.mk
	libc/arch-arm/cortex-a15/bionic/memcpy.S
	libc/arch-arm/cortex-a15/bionic/memset.S
	libc/arch-arm/cortex-a15/cortex-a15.mk
	libc/arch-arm/cortex-a9/cortex-a9.mk
	libc/arch-arm/generic/generic.mk
	libc/arch-arm/krait/bionic/memcpy.S
	libc/arch-arm/krait/bionic/strcmp.S
	libc/arch-arm/krait/krait.mk
	libc/arch-x86/x86.mk
	libc/bionic/__strlen_chk.cpp
	libc/bionic/libc_init_common.cpp
	libc/bionic/pthread_attr.cpp
	libc/bionic/pthread_internal.h
	libc/netbsd/net/getaddrinfo.c
	libc/netbsd/resolv/res_send.c
	libc/private/bionic_atomic_arm.h
	libc/private/bionic_tls.h
	libc/stdio/findfp.c
	libc/stdio/local.h
	libc/tzcode/localtime.c
	libc/unistd/abort.c
	libc/upstream-freebsd/lib/libc/stdio/fclose.c
	libc/upstream-freebsd/lib/libc/stdlib/getopt_long.c
	linker/linker_phdr.cpp

Change-Id: Iab1560dcbba01aeb491bb6a08728a0006e3583ef
Clean up abort.

* A dlmalloc usage error shouldn't call abort(3) because we want to
  cause a SIGSEGV by writing the address dlmalloc didn't like to an
  address the kernel won't like, so that debuggerd will dump the
  memory around the address that upset dlmalloc.

* Switch to the simpler FreeBSD/NetBSD style of registering stdio
  cleanup. Hopefully this will let us simplify more of the stdio
  implementation.

* Clear the stdio cleanup handler before we abort because of a dlmalloc
  corruption error. This fixes the reported bug, where we'd hang inside
  dlmalloc because the stdio cleanup reentered dlmalloc.

Bug: 9301265
Change-Id: Ief31b389455d6876e5a68f0f5429567d37277dbc

Conflicts:

	libc/bionic/libc_logging.cpp
	libc/stdio/findfp.c
	libc/stdio/local.h
	libc/upstream-freebsd/lib/libc/stdio/makebuf.c
	libc/upstream-freebsd/lib/libc/stdio/setvbuf.c
reconcile upstream-freebsd and pthread stuff with android-4.4_r1

Change-Id: I10a4d07395ab74d5dddc732d675f55d18c077c3c
Fix fortification inclusion

Change-Id: Ibd594305c865312a551775fa9a9a7bd5d05afc22