OSDN Git Service

android-x86/bionic.git
11 years agoMerge "Add missing va_end() to prevent stack corruptions"
Ian Rogers [Fri, 24 Aug 2012 22:10:07 +0000 (15:10 -0700)]
Merge "Add missing va_end() to prevent stack corruptions"

11 years agoMerge "hardening: remove pointless ARM __get_pc() function"
Nick Kralevich [Wed, 22 Aug 2012 18:41:53 +0000 (11:41 -0700)]
Merge "hardening: remove pointless ARM __get_pc() function"

11 years agohardening: remove pointless ARM __get_pc() function
Ard Biesheuvel [Wed, 22 Aug 2012 08:37:08 +0000 (10:37 +0200)]
hardening: remove pointless ARM __get_pc() function

Useful if you're trying to defeat ASLR, otherwise not
so much ...

Change-Id: I17ebb50bb490a3967db9c3038f049adafe2b8ea7
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@gmail.com>
11 years agoMerge "Use unambiguous mnemonics"
Jean-Baptiste Queru [Wed, 22 Aug 2012 14:18:49 +0000 (07:18 -0700)]
Merge "Use unambiguous mnemonics"

11 years agoUse unambiguous mnemonics
Kevin Schoedel [Fri, 29 Jun 2012 13:23:47 +0000 (09:23 -0400)]
Use unambiguous mnemonics

Change-Id: I8da0af54cc3cbf69d9e485eb71bc44a6976b1adc
Author: Kevin P Schoedel <kevin.p.schoedel@intel.com>
Reviewed-by: Edwin Vane <edwin.vane@intel.com>
11 years agoMerge "Enclosed functions in fenv.h with __BEGIN_DECLS/__END_DECLS"
Andrew Hsieh [Tue, 21 Aug 2012 10:25:45 +0000 (03:25 -0700)]
Merge "Enclosed functions in fenv.h with __BEGIN_DECLS/__END_DECLS"

11 years agoEnclosed functions in fenv.h with __BEGIN_DECLS/__END_DECLS
Andrew Hsieh [Tue, 21 Aug 2012 07:41:34 +0000 (15:41 +0800)]
Enclosed functions in fenv.h with __BEGIN_DECLS/__END_DECLS

Those are C funcitons

Related CL: https://android-review.googlesource.com/#/c/41833/

Change-Id: I4386bcf948ad31c3690c9b7a145103088133d041

11 years agoMerge "Restore posix_memalign"
Ian Rogers [Tue, 21 Aug 2012 02:35:25 +0000 (19:35 -0700)]
Merge "Restore posix_memalign"

11 years agoRestore posix_memalign
Brian Carlstrom [Tue, 21 Aug 2012 01:28:20 +0000 (18:28 -0700)]
Restore posix_memalign

Change-Id: I24e31bcb8b1d8be9375852e76964f09becd11938

11 years agoMerge "Upgrade to dlmalloc 2.8.5."
Brian Carlstrom [Mon, 20 Aug 2012 23:12:32 +0000 (16:12 -0700)]
Merge "Upgrade to dlmalloc 2.8.5."

11 years agoUpgrade to dlmalloc 2.8.5.
Ian Rogers [Sat, 18 Aug 2012 00:28:15 +0000 (17:28 -0700)]
Upgrade to dlmalloc 2.8.5.

Move dlmalloc code to upstream-dlmalloc to make pulling upstream changes
easier.
Declare pvalloc and malloc_usable_size routines present in malloc.h but with
missing implementations. Remove other functions from malloc.h that have
no implementation nor use in Android.

Change-Id: Ia6472ec6cbebc9ad1ef99f4669de9d33fcc2efb4

11 years agoMerge "Always define the 64-bit int types."
Elliott Hughes [Fri, 17 Aug 2012 23:48:14 +0000 (16:48 -0700)]
Merge "Always define the 64-bit int types."

11 years agoMerge "Fix race condition in pthread_create()"
Elliott Hughes [Fri, 17 Aug 2012 23:19:56 +0000 (16:19 -0700)]
Merge "Fix race condition in pthread_create()"

11 years agoFix race condition in pthread_create()
Jurijs Oniscuks [Thu, 5 Jul 2012 12:57:38 +0000 (14:57 +0200)]
Fix race condition in pthread_create()

Save thread id to *thread_out before new
thread is allowed to run else there's a
risk that the thread has finished and
been deleted when *thread_out is assigned.

Change-Id: I6b84c61a8df06840877d4ab036f26feace3192d8

11 years agoAlways define the 64-bit int types.
Elliott Hughes [Fri, 17 Aug 2012 21:30:06 +0000 (14:30 -0700)]
Always define the 64-bit int types.

These preprocessor tricks have caused trouble for -std=gnu99 and -ansi, and
both netbsd's libc and glibc seem to unconditionally define these types.

Change-Id: Ib8dffa341a8ca88f80d275ba2b7f93a4c910ee32

11 years agoMerge "Add link.h for all platforms with dl_phdr_info"
Elliott Hughes [Fri, 17 Aug 2012 20:54:43 +0000 (13:54 -0700)]
Merge "Add link.h for all platforms with dl_phdr_info"

11 years agoAdd link.h for all platforms with dl_phdr_info
Pavel Chupin [Fri, 17 Aug 2012 08:53:29 +0000 (12:53 +0400)]
Add link.h for all platforms with dl_phdr_info

This header is used on bionic build and should be propagated into
sysroot on toolchain rebuild. Discussion re. this header is here:
http://gcc.gnu.org/ml/gcc-patches/2012-08/msg00936.html

It is available already in mips NDK platforms:
development/ndk/platforms/android-9/arch-mips/include/link.h

Change-Id: I39ff467cdac9f448e31c11ee3e14a6200e82ab57
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
11 years agoMerge "Don't over-generalize makefiles. Host modules always build. This isn't needed...
Joe Onorato [Fri, 17 Aug 2012 06:37:49 +0000 (23:37 -0700)]
Merge "Don't over-generalize makefiles.  Host modules always build. This isn't needed on eng builds."

11 years agoDon't over-generalize makefiles. Host modules always build. This isn't needed on...
Joe Onorato [Thu, 16 Aug 2012 03:27:04 +0000 (20:27 -0700)]
Don't over-generalize makefiles.  Host modules always build. This isn't needed on eng builds.

Change-Id: I5821ced7a8a9042fd2094204e07470d8002263ca

11 years agoMerge "Enhance getcwd(3) to handle NULL like glibc."
Elliott Hughes [Thu, 16 Aug 2012 23:58:34 +0000 (16:58 -0700)]
Merge "Enhance getcwd(3) to handle NULL like glibc."

11 years agoEnhance getcwd(3) to handle NULL like glibc.
Elliott Hughes [Thu, 16 Aug 2012 22:59:12 +0000 (15:59 -0700)]
Enhance getcwd(3) to handle NULL like glibc.

Bug: http://code.google.com/p/android/issues/detail?id=36085
Change-Id: I960a1b585887eb66176c61d29c5c61c239a4003f

11 years agoMerge "bionic: add macro protection for MALLOC_ALIGNMENT"
Elliott Hughes [Thu, 16 Aug 2012 19:09:13 +0000 (12:09 -0700)]
Merge "bionic: add macro protection for MALLOC_ALIGNMENT"

11 years agobionic: add macro protection for MALLOC_ALIGNMENT
Jin Wei [Wed, 1 Aug 2012 06:48:57 +0000 (14:48 +0800)]
bionic: add macro protection for MALLOC_ALIGNMENT

In previous commit: 2fd81ef7, .mk file has been modified to
configure MALLOC_ALIGNMENT dynamicly according to board config.
Add the missing macor protection here.

Change-Id: I703cca2ce0504ab3e11aab226b2c61fcc0c6afa1
Author: Jin Wei <wei.a.jin@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Beare, Bruce J <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
11 years agoMerge "enable clone system call for x86"
Elliott Hughes [Thu, 16 Aug 2012 00:05:47 +0000 (17:05 -0700)]
Merge "enable clone system call for x86"

11 years agoenable clone system call for x86
Jin Wei [Wed, 8 Aug 2012 07:15:16 +0000 (15:15 +0800)]
enable clone system call for x86

Add __bionic_clone function for x86, which will be
used for clone system call.

Change-Id: I889dc9bf4b7ebb4358476e17e6f3233e26491f4d
Signed-off-by: Jin Wei <wei.a.jin@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Beare, Bruce J <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 51414

11 years agoMerge "Fix comment typos."
Elliott Hughes [Wed, 15 Aug 2012 23:59:21 +0000 (16:59 -0700)]
Merge "Fix comment typos."

11 years agoFix comment typos.
Elliott Hughes [Wed, 15 Aug 2012 23:56:00 +0000 (16:56 -0700)]
Fix comment typos.

Change-Id: I8feeec1ee9935a6d6baebe57f1c0043ff90ff94f

11 years agoMerge "Regenerate all NOTICE files with the latest version of the script."
Elliott Hughes [Wed, 15 Aug 2012 23:51:56 +0000 (16:51 -0700)]
Merge "Regenerate all NOTICE files with the latest version of the script."

11 years agoRegenerate all NOTICE files with the latest version of the script.
Elliott Hughes [Wed, 15 Aug 2012 22:43:13 +0000 (15:43 -0700)]
Regenerate all NOTICE files with the latest version of the script.

This sorts every entry, so we should have more stability and fewer
merge conflicts in future.

Change-Id: Ifc5347dc53352da22c82d41ca59b483966fcfc6b

11 years agoMerge "Switch to the current NetBSD regex implementation."
Elliott Hughes [Wed, 15 Aug 2012 22:39:49 +0000 (15:39 -0700)]
Merge "Switch to the current NetBSD regex implementation."

11 years agoSwitch to the current NetBSD regex implementation.
Elliott Hughes [Tue, 14 Aug 2012 22:32:42 +0000 (15:32 -0700)]
Switch to the current NetBSD regex implementation.

Change-Id: If32b28dd85d6a7ab8957ab81d19fa4c0de9499d5

11 years agoMerge "Sort NOTICE entries."
Elliott Hughes [Tue, 14 Aug 2012 22:31:17 +0000 (15:31 -0700)]
Merge "Sort NOTICE entries."

11 years agoSort NOTICE entries.
Elliott Hughes [Tue, 14 Aug 2012 22:04:05 +0000 (15:04 -0700)]
Sort NOTICE entries.

Also make sure we get the whole of any copyright header, in case
there's text before the "Copyright" line.

Change-Id: Iabcc5e0931a39c0107b833539fec7c5a3d134592

11 years agoMerge "More cleanup."
Elliott Hughes [Tue, 14 Aug 2012 22:02:40 +0000 (15:02 -0700)]
Merge "More cleanup."

11 years agoMore cleanup.
Elliott Hughes [Tue, 14 Aug 2012 21:07:59 +0000 (14:07 -0700)]
More cleanup.

Make more stuff static, remove some dead code, and fix a few typos.

Change-Id: I010b0eadeaf61e2899c37014ad1e7082c70bd510

11 years agoMerge "Update MS_ mount flags, define unshare() syscall."
Elliott Hughes [Tue, 14 Aug 2012 19:14:29 +0000 (12:14 -0700)]
Merge "Update MS_ mount flags, define unshare() syscall."

11 years agoUpdate MS_ mount flags, define unshare() syscall.
Jeff Sharkey [Sat, 11 Aug 2012 21:12:26 +0000 (14:12 -0700)]
Update MS_ mount flags, define unshare() syscall.

(cherry-pick of 82393decdfc6b0383054fb5d2f54725bbee88b8c.)

Bug: 6925012
Change-Id: I4f962d8975ad62ff4b9983150f9e481796092b9d

11 years agoMerge "linker: avoid clobbering the .dynamic section of shared libs"
Elliott Hughes [Tue, 14 Aug 2012 19:07:17 +0000 (12:07 -0700)]
Merge "linker: avoid clobbering the .dynamic section of shared libs"

11 years agoMerge "Switch to upstream NetBSD tdelete/tfind/tsearch."
Elliott Hughes [Tue, 14 Aug 2012 18:56:29 +0000 (11:56 -0700)]
Merge "Switch to upstream NetBSD tdelete/tfind/tsearch."

11 years agolinker: avoid clobbering the .dynamic section of shared libs
Ard Biesheuvel [Tue, 14 Aug 2012 10:30:09 +0000 (12:30 +0200)]
linker: avoid clobbering the .dynamic section of shared libs

This patch removes the DT_NEEDED hack which stores pointers
to soinfo structs in the .dynamic section of the library
being loaded.

Instead, it caches the soinfo struct pointers on the stack
during relocation time. After relocation time, i.e. when
calling constructors and destructors of the shared library
and its dependencies, uncached access is used instead,
doing lookups using the string table entries pointed to by
the DT_NEEDED entries.

By removing this hack, it is no longer needed to undo the
PT_GNURELRO protection, i.e., all non-writable mappings
can remain non-writable during their entire lifespan.

Even though, strictly speaking, the algorithmic complexity
has increased somewhat, the real-world adverse effect
is negligible on the systems I have tested.

Change-Id: I2361502560b96b5878f7f94a8e8a215350d70d64
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@gmail.com>
11 years agoSwitch to upstream NetBSD tdelete/tfind/tsearch.
Elliott Hughes [Tue, 14 Aug 2012 00:02:11 +0000 (17:02 -0700)]
Switch to upstream NetBSD tdelete/tfind/tsearch.

tdestroy is a GNU extension, so that stays.

Change-Id: Iedebaff25ea7e92b1ab1dd4440da12b67b99aa40

11 years agoMerge "Fix nice..."
Elliott Hughes [Mon, 13 Aug 2012 23:56:17 +0000 (16:56 -0700)]
Merge "Fix nice..."

11 years agoFix nice...
Elliott Hughes [Mon, 13 Aug 2012 23:38:29 +0000 (16:38 -0700)]
Fix nice...

...by switching to the NetBSD implementation.

Change-Id: I562b27b237a24ded95804035cc322c7bff12ff59

11 years agoMerge "Clean up warnings in stubs.cpp."
Elliott Hughes [Mon, 13 Aug 2012 23:17:54 +0000 (16:17 -0700)]
Merge "Clean up warnings in stubs.cpp."

11 years agoClean up warnings in stubs.cpp.
Elliott Hughes [Mon, 13 Aug 2012 22:45:36 +0000 (15:45 -0700)]
Clean up warnings in stubs.cpp.

Switch to C++ to get extra warnings, and format the code Google style.

Change-Id: Ifc0131bf297a6ee8a8a6b8d049a02518b0b1a4b7

11 years agoMerge "Handle naming for system uids running as secondary users"
Elliott Hughes [Mon, 13 Aug 2012 21:45:27 +0000 (14:45 -0700)]
Merge "Handle naming for system uids running as secondary users"

11 years agoHandle naming for system uids running as secondary users
Amith Yamasani [Mon, 13 Aug 2012 02:51:34 +0000 (19:51 -0700)]
Handle naming for system uids running as secondary users

Allow naming such as u1_system, u2_radio, u2_media.
Forward and reverse mapping for the above.

(cherry-pick of c60a0027b1ef3bc4929d2023e7083fbce12fafe7.)

Change-Id: I46eeb23fee4f57b2907640570504123d3ce99985

11 years agoMerge "Add dependencies on all the makefiles."
Elliott Hughes [Mon, 13 Aug 2012 21:12:02 +0000 (14:12 -0700)]
Merge "Add dependencies on all the makefiles."

11 years agoAdd dependencies on all the makefiles.
Elliott Hughes [Mon, 13 Aug 2012 21:06:05 +0000 (14:06 -0700)]
Add dependencies on all the makefiles.

This should help prevent broken builds next time I'm messing with
assembler/compiler/linker flags...

Change-Id: I30f15a3ce3c3f3c60cad7bc59aaba9f42d792224

11 years agoMerge "Update arch-mips/asm/unistd.h for the newer syscalls"
Elliott Hughes [Mon, 13 Aug 2012 19:42:01 +0000 (12:42 -0700)]
Merge "Update arch-mips/asm/unistd.h for the newer syscalls"

11 years agoUpdate arch-mips/asm/unistd.h for the newer syscalls
Raghu Gandham [Mon, 13 Aug 2012 18:54:53 +0000 (11:54 -0700)]
Update arch-mips/asm/unistd.h for the newer syscalls

Change-Id: Ie292c091cbf4b972e1b5faa7d779645c6e4442f0

11 years agoMerge "Fix module constructor order."
Elliott Hughes [Mon, 13 Aug 2012 18:06:53 +0000 (11:06 -0700)]
Merge "Fix module constructor order."

11 years agoFix module constructor order.
Evgeniy Stepanov [Mon, 13 Aug 2012 13:58:37 +0000 (17:58 +0400)]
Fix module constructor order.

.preinit_array goes before the constructors of LD_PRELOAD-ed libraries.

Change-Id: I1af32ce29eaf3ca4351ae8a0f7f5da5165853216

11 years agoMerge "linker: don't perform unnecessary mprotects"
Nick Kralevich [Mon, 13 Aug 2012 16:28:54 +0000 (09:28 -0700)]
Merge "linker: don't perform unnecessary mprotects"

11 years agolinker: don't perform unnecessary mprotects
Nick Kralevich [Sat, 11 Aug 2012 04:08:42 +0000 (21:08 -0700)]
linker: don't perform unnecessary mprotects

The linker only needs to mark the text segment as
writable iff the file has text relocations. Unnecessarily
calling mprotect when it isn't necessary is slow, and some
security enhanced kernels don't like it. Pages which are
simultaneously writable and executable are considered a no-no.

The vast majority of executables / shared libraries on Android
do NOT have text relocations.

Change-Id: Ic38ce30a99b7e33ecf21efd9c108547a58eafa35

11 years agoMerge "MIPS support to the libc Makefile"
Elliott Hughes [Sat, 11 Aug 2012 16:36:05 +0000 (09:36 -0700)]
Merge "MIPS support to the libc Makefile"

11 years agoMIPS support to the libc Makefile
Raghu Gandham [Tue, 7 Aug 2012 19:23:24 +0000 (12:23 -0700)]
MIPS support to the libc Makefile

Change-Id: Ia1f3f545ca61a5abb235e99046cb3cdaf24d4205

11 years agoMerge "Set the dynamic field in the link map for the linker itself."
Ben Cheng [Fri, 10 Aug 2012 23:46:09 +0000 (16:46 -0700)]
Merge "Set the dynamic field in the link map for the linker itself."

11 years agoSet the dynamic field in the link map for the linker itself.
Ben Cheng [Fri, 10 Aug 2012 23:07:02 +0000 (16:07 -0700)]
Set the dynamic field in the link map for the linker itself.

Otherwise gdb will print a spurious warning each time gdb is used:

warning: .dynamic section for "/system/bin/linker" is not at the expected
address (wrong library or version mismatch?)

BUG:6946614
Change-Id: Ib21b8db0615751189c1601140deb43bc089289b6

11 years agoMerge "MIPS support to sigsuspend and sigwait routines"
Elliott Hughes [Fri, 10 Aug 2012 22:05:35 +0000 (15:05 -0700)]
Merge "MIPS support to sigsuspend and sigwait routines"

11 years agoMerge "crtend*: Add GNU_STACK note"
Nick Kralevich [Fri, 10 Aug 2012 21:29:26 +0000 (14:29 -0700)]
Merge "crtend*: Add GNU_STACK note"

11 years agocrtend*: Add GNU_STACK note
Nick Kralevich [Fri, 10 Aug 2012 21:00:17 +0000 (14:00 -0700)]
crtend*: Add GNU_STACK note

Add a GNU_STACK marker to crtend* files. This tells the linker
that these files do not require an executable stack.

When linking, a missing GNU_STACK marker in any .o file can prevent
the compiler from automatically marking the final executable as NX
safe (executable stack not required).  In Android, we normally work
around this by adding -Wa,--noexecstack / -Wl,-z,noexecstack.
For files like crtend.S / crtend_so.S, which are included in every
executable / shared library, it's better to add the GNU_STACK note
directly to the assembly file.  This allows the compiler to
automatically mark the final executable as NX safe without any
special command line options.

References: http://www.gentoo.org/proj/en/hardened/gnu-stack.xml

Change-Id: I07bd058f9f60ddd8b146e0fb36ba26ff84c0357d

11 years agoMerge "Revert "Revert "Switch to NetBSD's strxfrm(3)."""
Elliott Hughes [Fri, 10 Aug 2012 21:03:06 +0000 (14:03 -0700)]
Merge "Revert "Revert "Switch to NetBSD's strxfrm(3)."""

11 years agoMerge "Add unshare() syscall."
Elliott Hughes [Fri, 10 Aug 2012 19:59:49 +0000 (12:59 -0700)]
Merge "Add unshare() syscall."

11 years agoAdd unshare() syscall.
Jeff Sharkey [Fri, 10 Aug 2012 18:17:59 +0000 (11:17 -0700)]
Add unshare() syscall.

(cherry-pick of 5467f25f82934d611c60f8bc57a05114f3c1bea0.)

Bug: 6925012
Change-Id: Ic5ea2fbd606311087de05d7a3594df2fa9b2fef9

11 years agoMerge "Fix typo in SIGTTOU description."
Elliott Hughes [Fri, 10 Aug 2012 19:27:05 +0000 (12:27 -0700)]
Merge "Fix typo in SIGTTOU description."

11 years agoFix typo in SIGTTOU description.
Elliott Hughes [Fri, 10 Aug 2012 19:23:58 +0000 (12:23 -0700)]
Fix typo in SIGTTOU description.

Change-Id: Ie0db3e7df3e1f17b43f5645d027a90603139be2f

11 years agoRevert "Revert "Switch to NetBSD's strxfrm(3).""
Elliott Hughes [Fri, 10 Aug 2012 18:39:58 +0000 (11:39 -0700)]
Revert "Revert "Switch to NetBSD's strxfrm(3).""

This reverts commit 8793e7c7d21a0434d1b5e63364c88b2b125a3d29,
and fixes the build by building upstream NetBSD source as a
separate library that's then swallowed whole into libc_common.

Change-Id: I6c9317d8c48b5ccaf85a7b185bc07fb31176ff97

11 years agoMerge "Revert "Switch to NetBSD's strxfrm(3).""
Elliott Hughes [Fri, 10 Aug 2012 18:36:31 +0000 (11:36 -0700)]
Merge "Revert "Switch to NetBSD's strxfrm(3).""

11 years agoRevert "Switch to NetBSD's strxfrm(3)."
Elliott Hughes [Fri, 10 Aug 2012 18:36:17 +0000 (11:36 -0700)]
Revert "Switch to NetBSD's strxfrm(3)."

This reverts commit be1d78b0dc899a732c0e9d7515d3023e8004e368

Change-Id: I11a95db474796f3da004f27652b081d5ba4ec9b4

11 years agoMerge "Switch to NetBSD's strxfrm(3)."
Elliott Hughes [Fri, 10 Aug 2012 18:23:29 +0000 (11:23 -0700)]
Merge "Switch to NetBSD's strxfrm(3)."

11 years agoSwitch to NetBSD's strxfrm(3).
Elliott Hughes [Fri, 10 Aug 2012 18:03:02 +0000 (11:03 -0700)]
Switch to NetBSD's strxfrm(3).

There were two bugs in our implementation. Intel found one, but another
remainined, and tracking upstream is the way forward for functions where
we add no value.

Change-Id: Ida9bac0293fb2c4cbc942b1e0515ee0477c6538b

11 years agoMIPS support to sigsuspend and sigwait routines
Raghu Gandham [Thu, 9 Aug 2012 17:49:32 +0000 (10:49 -0700)]
MIPS support to sigsuspend and sigwait routines

Change-Id: I870e798ed7eac5a8c74e5784a670f3a4f24331a9

11 years agoMerge "Auto-generate a complete NOTICE file."
Elliott Hughes [Thu, 9 Aug 2012 23:25:19 +0000 (16:25 -0700)]
Merge "Auto-generate a complete NOTICE file."

11 years agoAuto-generate a complete NOTICE file.
Elliott Hughes [Thu, 9 Aug 2012 22:17:46 +0000 (15:17 -0700)]
Auto-generate a complete NOTICE file.

Remove the hand-collated ones, and switch to a script that pulls the
copyright headers out of every file and collects the unique ones.

Change-Id: Ied3b98b3f56241df97166c410ff81de4e0157c9d

11 years agoMerge "Remove ThirdPartyProject.prop."
Elliott Hughes [Thu, 9 Aug 2012 21:31:27 +0000 (14:31 -0700)]
Merge "Remove ThirdPartyProject.prop."

11 years agoRemove ThirdPartyProject.prop.
Elliott Hughes [Thu, 9 Aug 2012 21:29:23 +0000 (14:29 -0700)]
Remove ThirdPartyProject.prop.

These are dead. I cleaned up external/ a long time ago, but didn't
realize there were any in the main tree.

Change-Id: I5f35b2da132558e2763164285eb38629cd68ffda

11 years agoMerge "Remove the last .jam file."
Elliott Hughes [Thu, 9 Aug 2012 18:59:20 +0000 (11:59 -0700)]
Merge "Remove the last .jam file."

11 years agoRemove the last .jam file.
Elliott Hughes [Thu, 9 Aug 2012 18:54:23 +0000 (11:54 -0700)]
Remove the last .jam file.

How did I miss this before?

Change-Id: I2e582133fc4800656fdd81104f8dfc7ee8f5b580

11 years agoMerge "MIPS support to sys/ headers"
Elliott Hughes [Wed, 8 Aug 2012 23:32:55 +0000 (16:32 -0700)]
Merge "MIPS support to sys/ headers"

11 years agoMerge "Fix x86 build."
Elliott Hughes [Wed, 8 Aug 2012 23:07:26 +0000 (16:07 -0700)]
Merge "Fix x86 build."

11 years agoFix x86 build.
Elliott Hughes [Wed, 8 Aug 2012 23:06:51 +0000 (16:06 -0700)]
Fix x86 build.

Change-Id: Ice50ca71a19f3bf26de7cfd4c02075f1e6e0823f

11 years agoMerge "Clean up the linker a bit, remove prelinking support."
Elliott Hughes [Wed, 8 Aug 2012 22:17:23 +0000 (15:17 -0700)]
Merge "Clean up the linker a bit, remove prelinking support."

11 years agoMerge "Clean up libc/Android.mk a bit after the crtbrand changes."
Elliott Hughes [Wed, 8 Aug 2012 21:32:23 +0000 (14:32 -0700)]
Merge "Clean up libc/Android.mk a bit after the crtbrand changes."

11 years agoClean up libc/Android.mk a bit after the crtbrand changes.
Elliott Hughes [Wed, 8 Aug 2012 21:07:37 +0000 (14:07 -0700)]
Clean up libc/Android.mk a bit after the crtbrand changes.

Change-Id: Icfb95fffe70967418cd93da8cbeae22dcd68f8c9

11 years agoMerge "Add a .note.android.ident section to Android ELF binaries."
Jean-Baptiste Queru [Wed, 8 Aug 2012 20:44:26 +0000 (13:44 -0700)]
Merge "Add a .note.android.ident section to Android ELF binaries."

11 years agoClean up the linker a bit, remove prelinking support.
Elliott Hughes [Fri, 3 Aug 2012 23:49:39 +0000 (16:49 -0700)]
Clean up the linker a bit, remove prelinking support.

Also make the errors more readable, since none of us seemed to know
what they actually meant. The new style is still as verbose as the
old, but that's probably necessary in the absence of chained exceptions
in C. Here's what you'd see if you try to boot after removing
libsurfaceflinger.so:

  32267 32267 E AndroidRuntime: java.lang.UnsatisfiedLinkError: Cannot load library: (linker.c:1629, pid 32259) soinfo_link_image: could not load library "libsystem_server.so" needed by "libandroid_servers.so"; caused by (linker.c:1629, pid 32259) soinfo_link_image: could not load library "libsurfaceflinger.so" needed by "libsystem_server.so"; caused by (linker.c:709, pid 32259) load_library: library "libsurfaceflinger.so" not found

This patch also fixes almost all of the compiler warnings.

Change-Id: I64bb59aed6d4e039c15ea45be2367f319ef879f8

11 years agoMerge "When compiling with clang, don't "fortify_source" the strlcpy and strlcat."
Shih-wei Liao [Mon, 6 Aug 2012 18:02:19 +0000 (11:02 -0700)]
Merge "When compiling with clang, don't "fortify_source" the strlcpy and strlcat."

11 years agoWhen compiling with clang, don't "fortify_source" the strlcpy and
Shih-wei Liao [Mon, 6 Aug 2012 17:57:37 +0000 (10:57 -0700)]
When compiling with clang, don't "fortify_source" the strlcpy and
strlcat.

Change-Id: I91f58322f28e425ab9d22b51c23fcd6b772ede97

11 years agoMerge "Revert "Fix the clang build: this compiler doesn't support the gnu_inline...
Shih-wei Liao [Mon, 6 Aug 2012 17:05:14 +0000 (10:05 -0700)]
Merge "Revert "Fix the clang build: this compiler doesn't support the gnu_inline function attribute""

11 years agoMerge "When compiling with clang, don't "fortify_source" the strlen."
Shih-wei Liao [Mon, 6 Aug 2012 17:04:22 +0000 (10:04 -0700)]
Merge "When compiling with clang, don't "fortify_source" the strlen."

11 years agoWhen compiling with clang, don't "fortify_source" the strlen.
Shih-wei Liao [Mon, 6 Aug 2012 16:50:56 +0000 (09:50 -0700)]
When compiling with clang, don't "fortify_source" the strlen.

At this point, FORTIFY_SOURCE and clang are just plain incompatible.
Need to solve the underlying incompatibility first.

Change-Id: I3366477d19461e1ec93b1c30e0c7e8145b391b9b

11 years agoMerge "Remove an awkward #include that is no longer upstream."
Elliott Hughes [Mon, 6 Aug 2012 14:57:59 +0000 (07:57 -0700)]
Merge "Remove an awkward #include that is no longer upstream."

11 years agoRevert "Fix the clang build: this compiler doesn't support the gnu_inline function...
Shih-wei Liao [Sat, 4 Aug 2012 00:44:08 +0000 (17:44 -0700)]
Revert "Fix the clang build: this compiler doesn't support the gnu_inline function attribute"

This reverts commit 4f1f149c3757c594f9ff987e5ddd919c3e7dba10.

11 years agoMerge "Remove yet more SH4 cruft."
Elliott Hughes [Fri, 3 Aug 2012 22:05:15 +0000 (15:05 -0700)]
Merge "Remove yet more SH4 cruft."

11 years agoRemove yet more SH4 cruft.
Elliott Hughes [Fri, 3 Aug 2012 21:58:18 +0000 (14:58 -0700)]
Remove yet more SH4 cruft.

Surely this is the last piece?

Change-Id: I4bd43afb102334ec34d0e14a65c2b319826473d7

11 years agoMerge "bionic: modify syscall to use 6 registers to pass parameter."
Elliott Hughes [Fri, 3 Aug 2012 20:55:56 +0000 (13:55 -0700)]
Merge "bionic: modify syscall to use 6 registers to pass parameter."

11 years agobionic: modify syscall to use 6 registers to pass parameter.
Jin Wei [Thu, 12 Apr 2012 08:50:42 +0000 (16:50 +0800)]
bionic: modify syscall to use 6 registers to pass parameter.

Kernel allows to use 6 registers(exclude eax) to pass parameter.
But in syscall's implementation, it only uses five registers.
It will lead to error when 6 parameters passed.

Change-Id: I92d663194e6334c3847f0c0c257ca3b9dee0edef
Author: Jin Wei <wei.a.jin@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Beare, Bruce J <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 30838

11 years agoMerge "Upgrade to tzdata2012e."
Elliott Hughes [Fri, 3 Aug 2012 19:30:18 +0000 (12:30 -0700)]
Merge "Upgrade to tzdata2012e."

11 years agoUpgrade to tzdata2012e.
Elliott Hughes [Fri, 3 Aug 2012 19:26:06 +0000 (12:26 -0700)]
Upgrade to tzdata2012e.

Includes this change:

  * australasia (Pacific/Fakaofo): Tokelau is UTC+13, not UTC+14.
    (Thanks to Steffen Thorsen.)

Change-Id: I51bfab759f424b90daeb1960c6cfb2b55b78ff46