linker: add -Wl,--exclude-libs,ALL to LDFLAGS

The linker is essentially a shared library, and incorporates
it's own copy of libc. Even though it's unnecessary, currently
/system/bin/linker is exporting various libc symbols (only to
apps which explicitly dlopen /system/bin/linker)

Add --exclude-libs,ALL, which tells the static linker to mark
all of the imported libc symbols as hidden. This reduces the
size of /system/bin/linker from 92K to 67K with no obvious
loss in functionality.

  $ adb shell ls -l /system/bin/linker
  -rwxrwxrwx root     root        92260 2013-01-16 16:52 linker

  $ adb shell ls -l /system/bin/linker
  -rwxrwxrwx root     root        67660 2013-01-16 16:49 linker

Documentation on exclude-libs can be found at
http://sourceware.org/binutils/docs-2.21/ld/Options.html

Change-Id: I4508287770e4b7a845def2e6b4af969f9c866c6a
Disable leak checking for mksh; it's way too leaky.

When each shell leaks ~240 allocations, you can't see the leaks from
the program you ran with "adb shell".

Bug: 7291287
Change-Id: Ib8780db72ba0114ebdb24768537da74bbb61f354

Conflicts:
	libc/bionic/malloc_debug_common.cpp

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Don't free anything when reporting leaks.

We don't know that they're not going to be cleaned up by a
C++ global destructor that runs after us. This is the case with
bootanimation, for example.

Bug: 7291287
Change-Id: Iba402514d1735fdc2ae4bc95b65396d816be46c0

Conflicts:
	libc/bionic/malloc_debug_check.cpp

Signed-off-by: Paul Beeler <sparksco@gmail.com>
libc: use more secure system properties if available

Currently, system properties are passed via the environment
variable ANDROID_PROPERTY_WORKSPACE and a file descriptor passed
from parent to child. This is insecure for setuid executables,
as the environment variable can be changed by the caller.

Modify system property handling so that we get the properties
from a root owned properties file, rather than using an
environment variable.  Fall back to the environment variable
if the file doesn't exist.

Bug: 8045561
Change-Id: I54f3efa98cf7d63d88788da5ce0d19e34fd7851a
prctl.h: include sys/cdefs.h

prctl.h uses __BEGIN_DECLS but fails to include sys/cdefs.h
(where it's defined).  Code which includes prctl.h without
previously including sys/cdefs.h will fail to compile.

Fixed.

Change-Id: If4c9f3308f08b93596dcd00e351ae786807e9320
Bring the NOTICE files back up to date.

Change-Id: I978275cf6604b90595ee79d897c0460eeadc7dc8
Fix x86 build to use <elf.h>.

Change-Id: I7b697d5eae69dc08eb31471a42cb8bbe5360be76
Restore bionic's <linux/elf-em.h>.

Used by <linux/audit.h>.

Change-Id: Ica4ebb7f52a7fce13c52fdff35e187ded3939382

Conflicts:
	libc/kernel/common/linux/elf-em.h

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Update the libm/NOTICE file after the upgrade.

Change-Id: Icf9c44402d6f86117d61307219bb1cccd288854d
Regenerate msm_ion.h.

Bug: 8000377
Change-Id: If496d9972cb8aebfc996ac641aa762220aa71f3b
Remove the currently-unused i387 assembler to make way for the new.

Change-Id: I37e4e8fce881246b9b028f9e1619247b1ac25261
Remove dead code from gensyscalls.py.

Change-Id: I0df69f8fd990f829ccbfcd5123c17b523d5a4d45
update xattr.h

Change-Id: Ibd91167ba56e2692359b92fe3108da271f0c2e38
Clean up ARM assembler files to use ENTRY/END.

We also don't need legacy syscall support (non-"swi 0").

Change-Id: Id1012e8ca18bf13f3f4e42200f39ba0e2e632cbf
Use ENTRY/END in ARM __get_sp.

Change-Id: If2f159b266f5fa4ad9d188a17d4cd318b605e446
Remove useless workaround for HTC RIL bugs.

HTC's RIL uses the liblog logging, not ours.

Change-Id: I56f9304e833ccb329df4ee55042012d7ad5f73ed
Revert "Regenerate msm_ion.h."

This reverts commit 12ee451de3df64b82f9e15aedcc590b59efa905b.