Revert "libc: Add NEON optimized memmove"

This reverts commit e1154df8806b65a7706e1ba3e7b2a9f0fe2f32d0.

Revert "libc: Optimize strcat/strcpy, small tweaks to strlen"

This reverts commit dd2150b68a0e00d130bcf9b3b4af68a93971ae00.

Revert "libc: Update to latest cortexa15 memcpy code."

This reverts commit 392d2cd535185b4013ae7279587aaae3972737d1.

Revert "Bionic: Add AOSP master cortex optimizations"

This reverts commit 456c0e8cbe4ed2da25317e8e46ed327a14fbeb1c.

Revert "libc: krait: Restore prior version of strcmp."

This reverts commit d22231e03e36a34a149a90d2c01d867d62932f7f.

Revert "libc: krait: Use performance version of memcpy."

This reverts commit cc8a530aba0f1b616becbc0bbd40501f082d411f.

Revert "libc: krait: Use performance version of bcopy and memmove"

This reverts commit 9ef0a0f6002a3c0e0bcfa2b329811d9b3b8a534b.

Revert "tegra2: add missing strcpy and strcat"

This reverts commit 31a06f332f1176ae8e2a241dcae00f78112a3b2a.

Revert "libc: add tegra2 TARGET_CPU_VARIANT"

This reverts commit 4172806c7ee309fa78e20bb03313d0e8bc6bde0e.

Revert "Detect userspace memory leak for JB_MR2"

This reverts commit bba493121c8e135bd9cd145ab35e53cac1702a9e.

Revert "[libc] Add missing strcat.S to x86.mk Makefile"

This reverts commit b59b790f97dc58a931719524499269f2f3b904f2.

Revert "armv6: REX routines are currently broken, use alternatives"

This reverts commit 364c9574c789b046423f25903c9c2f36c1a32d01.

Revert "Bump the number of TLS slots to 128."

This reverts commit 5bce86fd740e13f4f6a55092d159af0200c46e72.

Revert "don't hardcode register r0/v1 when reading the TLS"

This reverts commit fb0f92fa912480e381c4a96ddd561e2360d6e1ca.
Merge tag 'android-4.4_r1' into cm-11.0

Android 4.4 Release 1.0

Conflicts:
	libc/arch-arm/arm.mk
	libc/upstream-freebsd/lib/libc/stdlib/getopt_long.c
	linker/linker_phdr.cpp
bionic: linker: fix prelink support

load_bias_ needs to be calculated from the min_vaddr, not the
prelink address

Fixes

couldn't map "libraryname.so" segment 1: Invalid argument

Change-Id: Ibf1fd1d5a0f2c81ce515f5d47412a043ba768247
libc: krait: Re-factor high-performance memcpy for thumb2

The majority of libc under bionic is built for thumb2.  Refactor the
high performance memcpy used in previous builds for thumb2, including
information that can be used for stack-unwinding.

Change-Id: Ib5f7ab354f39313758402ec02b0aea27b15d45fa

Conflicts:
	libc/arch-arm/krait/bionic/memcpy_base.S
(cherry picked from commit cdeb493351044c3116fc0d42a64f33f8215a5886)
(cherry picked from commit 0c524faa937b40178915c9478599b754b6f8f78d)
bionic: call stdio cleanup on exit

As of 61e699a133a4807fe878a6cb0d7190d7c96e21f8, stdio clean up
functions are no longer registered in atexit and must be called
manually via __cleanup.

The issue this fixes is some static binaries linked against bionic
cannot output properly when piped or redirected because the buffer
is not flushed before closing.

This is done by pulling in exit.c (and other dependencies) from
netbsd.

Change-Id: I193e54a6d08900f291550029fe75ce76394d9e22
Merge remote-tracking branch 'cm/cm-11.0' into HEAD

Conflicts:
	libc/arch-arm/cortex-a15/bionic/memset.S
	libc/arch-arm/cortex-a9/cortex-a9.mk
	libc/arch-arm/generic/generic.mk
	libc/arch-arm/tegra2/tegra2.mk
	libc/arch-x86/x86.mk
	libc/private/bionic_atomic_arm.h
	libc/private/bionic_tls.h
	libc/upstream-freebsd/lib/libc/stdlib/getopt_long.c
	linker/linker_phdr.cpp

Change-Id: I0e996e357d3b5571878dfbe97358038a6c6e052c