OSDN Git Service

android-x86/bionic.git
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

11 years agoMerge "Fix the clang build: this compiler doesn't support the gnu_inline function...
David Turner [Fri, 3 Aug 2012 11:40:36 +0000 (04:40 -0700)]
Merge "Fix the clang build: this compiler doesn't support the gnu_inline function attribute"

11 years agoFix the clang build: this compiler doesn't support the gnu_inline function attribute
Shih-wei Liao [Fri, 3 Aug 2012 11:20:06 +0000 (04:20 -0700)]
Fix the clang build: this compiler doesn't support the gnu_inline function attribute

Recent clang compiler doesn't have gnu_inline working. When frameworks/rs
is compiled with clang instead of gcc, it no longer works. Will be fixed
by this patch.

Change-Id: I8b281a1305151909e18958b73914ea27343cb4cd

11 years agoMerge "[MIPS] Support for TLS register"
Elliott Hughes [Fri, 3 Aug 2012 01:33:19 +0000 (18:33 -0700)]
Merge "[MIPS] Support for TLS register"

11 years agoRemove an awkward #include that is no longer upstream.
Elliott Hughes [Fri, 3 Aug 2012 01:12:36 +0000 (18:12 -0700)]
Remove an awkward #include that is no longer upstream.

This was causing trouble in https://android-review.googlesource.com/#/c/37590/.

Change-Id: Ib7cb4fbaef6e9c1470c59f67d24bd24c7ce90bcc

11 years agoMIPS support to sys/ headers
Raghu Gandham [Thu, 2 Aug 2012 23:50:10 +0000 (16:50 -0700)]
MIPS support to sys/ headers

Change-Id: I32207a1d918e4842da341f6b242ae39c69a83b03

11 years ago[MIPS] Support for TLS register
Raghu Gandham [Fri, 3 Aug 2012 00:47:37 +0000 (17:47 -0700)]
[MIPS] Support for TLS register

Change-Id: I6b5194e5e379b573e3b1203d8015e20fb3edd647
Signed-off-by: Chris Dearman <chris@mips.com>
11 years agoMerge "MIPS support for libc."
Elliott Hughes [Thu, 2 Aug 2012 23:14:47 +0000 (16:14 -0700)]
Merge "MIPS support for libc."

11 years agoMIPS support for libc.
Raghu Gandham [Thu, 26 Jul 2012 01:16:42 +0000 (18:16 -0700)]
MIPS support for libc.

Change-Id: I2864dea04b3faf2d919165dcaa600af5b16c41c8
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Raghu Gandham <raghu@mips.com>
11 years agoMerge "Fix a ENOTUP/ENOTSUP typo."
Elliott Hughes [Thu, 2 Aug 2012 22:46:43 +0000 (15:46 -0700)]
Merge "Fix a ENOTUP/ENOTSUP typo."

11 years agoFix a ENOTUP/ENOTSUP typo.
Elliott Hughes [Thu, 2 Aug 2012 22:45:04 +0000 (15:45 -0700)]
Fix a ENOTUP/ENOTSUP typo.

Change-Id: Ifa347a09a2aa1f505965ae7c1383fd0caf95793c

11 years agoMerge "Error numbers are target specific."
Elliott Hughes [Thu, 2 Aug 2012 22:42:48 +0000 (15:42 -0700)]
Merge "Error numbers are target specific."

11 years agoMerge "MIPS support to the linker"
Elliott Hughes [Thu, 2 Aug 2012 21:43:55 +0000 (14:43 -0700)]
Merge "MIPS support to the linker"

11 years agoMIPS support to the linker
Raghu Gandham [Tue, 31 Jul 2012 19:07:22 +0000 (12:07 -0700)]
MIPS support to the linker

Change-Id: I37ec2d6c51d82bb9e9dbfef4b38c85366bead255
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Raghu Gandham <raghu@mips.com>
Signed-off-by: Bhanu Chetlapalli <bhanu@mips.com>
11 years agoError numbers are target specific.
Chris Dearman [Sat, 28 Jan 2012 01:55:49 +0000 (17:55 -0800)]
Error numbers are target specific.

Use the system supplied error numbers when mapping error numbers to messages.

Change-Id: I520556fa3e2ff668fdc4eda36ad31491fbb48ea8
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Raghu Gandham <raghu@mips.com>
11 years agoMerge "Had include/arm/fenv.h, but missed include/mips/fenv.h."
Shih-wei Liao [Wed, 1 Aug 2012 03:54:18 +0000 (20:54 -0700)]
Merge "Had include/arm/fenv.h, but missed include/mips/fenv.h."

11 years agoMerge "Updated the cleaned header file mman.h for MIPS."
Elliott Hughes [Tue, 31 Jul 2012 22:16:07 +0000 (15:16 -0700)]
Merge "Updated the cleaned header file mman.h for MIPS."

11 years agoUpdated the cleaned header file mman.h for MIPS.
Raghu Gandham [Thu, 26 Jul 2012 01:16:42 +0000 (18:16 -0700)]
Updated the cleaned header file mman.h for MIPS.

Change-Id: I8b3734e535711ca07fbf4066e6d967d1ce0f30eb

11 years agoMerge "bionic: Stack pointer/signal race condition."
Elliott Hughes [Tue, 31 Jul 2012 17:32:58 +0000 (10:32 -0700)]
Merge "bionic: Stack pointer/signal race condition."

11 years agoMerge "fix __cxa_finalize() implementation to be thread safe."
Elliott Hughes [Tue, 31 Jul 2012 17:31:20 +0000 (10:31 -0700)]
Merge "fix __cxa_finalize() implementation to be thread safe."

11 years agofix __cxa_finalize() implementation to be thread safe.
Srinavasa Nagaraju [Tue, 28 Feb 2012 03:08:22 +0000 (12:08 +0900)]
fix __cxa_finalize() implementation to be thread safe.

__cxa_finalize() modifies the access permissions of __atexit
global variable without acquiring  _ATEXIT_LOCK(). Fix it prevent
any possible races.

Change-Id: I11939d0ebcbf6f360c14163222d40a449d96948e

11 years agoAdd a .note.android.ident section to Android ELF binaries.
Michael Hope [Tue, 31 Jul 2012 04:18:22 +0000 (16:18 +1200)]
Add a .note.android.ident section to Android ELF binaries.

This allows debugging tools to know they are working with Android
binaries and adapt accordingly.

Signed-off-by: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Signed-off-by: Michael Hope <michael.hope@linaro.org>
Change-Id: Ic906992fcad61c028bb765821637a3e1333bf52b

11 years agoHad include/arm/fenv.h, but missed include/mips/fenv.h.
Shih-wei Liao [Tue, 31 Jul 2012 03:12:46 +0000 (20:12 -0700)]
Had include/arm/fenv.h, but missed include/mips/fenv.h.

Needed for the device-build for LLVM's constant folding pass.

Change-Id: I412a98d52458231650801a8b59fe3159a789b8b9
Author: fu@mips.com

11 years agoMerge "Install crt(begin|end)_so.o to target library path."
Shih-wei Liao [Mon, 30 Jul 2012 19:44:57 +0000 (12:44 -0700)]
Merge "Install crt(begin|end)_so.o to target library path."

11 years agoInstall crt(begin|end)_so.o to target library path.
Shih-wei Liao [Sat, 28 Jul 2012 07:33:28 +0000 (00:33 -0700)]
Install crt(begin|end)_so.o to target library path.

BUG=6886348.

Change-Id: I176b2c4963d9731b06d10d4e0b92c010a0006b59

11 years agoMerge "Report errors to the log, not just stderr."
Elliott Hughes [Sat, 28 Jul 2012 01:16:17 +0000 (18:16 -0700)]
Merge "Report errors to the log, not just stderr."

11 years agoReport errors to the log, not just stderr.
Elliott Hughes [Sat, 28 Jul 2012 00:40:29 +0000 (17:40 -0700)]
Report errors to the log, not just stderr.

In particular this affects assert(3) and __cxa_pure_virtual, both of
which have managed to confuse people this week by apparently aborting
without reason. (Because stderr goes nowhere, normally.)

Bug: 6852995
Bug: 6840813
Change-Id: I7f5d17d5ddda439e217b7932096702dc013b9142

11 years agoMerge "Fix a TEMP_FAILURE_RETRY usage error in the linker."
Elliott Hughes [Fri, 27 Jul 2012 22:43:10 +0000 (15:43 -0700)]
Merge "Fix a TEMP_FAILURE_RETRY usage error in the linker."

11 years agoFix a TEMP_FAILURE_RETRY usage error in the linker.
Elliott Hughes [Fri, 27 Jul 2012 22:30:51 +0000 (15:30 -0700)]
Fix a TEMP_FAILURE_RETRY usage error in the linker.

Similar to the fix in c20d0f3993ebb0d3dec958a306a68ebb48bfeadd.

grep(1) says this was the only other instance in bionic.

Change-Id: I1729038762ee1c7c4743a6bd11d5558afd6f5749

11 years agoMerge "Replace ALL_PREBUILTS with BUILD_PREBUILT"
Elliott Hughes [Fri, 27 Jul 2012 21:14:41 +0000 (14:14 -0700)]
Merge "Replace ALL_PREBUILTS with BUILD_PREBUILT"

11 years agoReplace ALL_PREBUILTS with BUILD_PREBUILT
Ying Wang [Thu, 26 Jul 2012 22:55:18 +0000 (15:55 -0700)]
Replace ALL_PREBUILTS with BUILD_PREBUILT

(cherry-picked from 186b36b65bdfbf2c89a661539bf530359364eac9.)

Bug: 6857263
Change-Id: If787d84415dd2ac07105fe0d0b7a27c9be75df64

11 years agoMerge "Correction to use of TEMP_FAILURE_RETRY in send_prop_msg"
Elliott Hughes [Fri, 27 Jul 2012 17:02:59 +0000 (10:02 -0700)]
Merge "Correction to use of TEMP_FAILURE_RETRY in send_prop_msg"

11 years agoCorrection to use of TEMP_FAILURE_RETRY in send_prop_msg
Jens Gulin [Thu, 19 Jul 2012 12:10:46 +0000 (14:10 +0200)]
Correction to use of TEMP_FAILURE_RETRY in send_prop_msg

RETRY macro may retry command if result is -1. In this
case the command was "connect < 0" instead of just
connect. The comparison will not return -1 and thus
retry is never done. This is now corrected so that
interrupts will cause retry instead of fail.

(There was no other negative side effect of the bug.
The result code from RETRY was used in an if-statement
and it would be true for all negative connect results.
This was according to expectations.)

Change-Id: Ie206b39878e9befea4e3be9a4061ee39eb232d80

11 years agobionic: Stack pointer/signal race condition.
Peter Enderborg [Mon, 9 Jul 2012 14:17:17 +0000 (16:17 +0200)]
bionic: Stack pointer/signal race condition.

Move the stackpointer so a captured signal does not corrupt
stack variables needed for __thread_entry.

Change-Id: I3e1e7b94a6d7cd3a07081f849043262743aa8064

11 years agoMerge "Remove the 'Factory' time zone by not processing the 'factory' file."
Elliott Hughes [Fri, 27 Jul 2012 00:36:21 +0000 (17:36 -0700)]
Merge "Remove the 'Factory' time zone by not processing the 'factory' file."

11 years agoRemove the 'Factory' time zone by not processing the 'factory' file.
Elliott Hughes [Thu, 26 Jul 2012 23:19:46 +0000 (16:19 -0700)]
Remove the 'Factory' time zone by not processing the 'factory' file.

The factory file (and Factory time zone) was meant as a way to say
"not configured" that would give a clear error when running date(1).
For us it would just look like UTC, so it is of no value.

Bug: 2997381
Change-Id: I1a4b85dce97d1d9370b22ba79e8fe5dafff56541

11 years agoMerge "vfprintf: fix spelling."
Nick Kralevich [Wed, 25 Jul 2012 23:09:34 +0000 (16:09 -0700)]
Merge "vfprintf: fix spelling."

11 years agovfprintf: fix spelling.
Nick Kralevich [Wed, 25 Jul 2012 23:01:38 +0000 (16:01 -0700)]
vfprintf: fix spelling.

Change-Id: I6dc611143fb1f3e9ccf0a77b40ee48a3c1d72ca9

11 years agoMerge "[MIPS] Use an aligned address to provoke SIGSEGV in abort()"
Elliott Hughes [Wed, 25 Jul 2012 00:42:51 +0000 (17:42 -0700)]
Merge "[MIPS] Use an aligned address to provoke SIGSEGV in abort()"

11 years ago[MIPS] Use an aligned address to provoke SIGSEGV in abort()
Chris Dearman [Tue, 10 Jul 2012 18:46:55 +0000 (11:46 -0700)]
[MIPS] Use an aligned address to provoke SIGSEGV in abort()

Change-Id: I269c9ccc07058773fb0f9d70673673157ab38f6a

11 years agoMerge "Fix implementation of generic atomic operations"
Elliott Hughes [Wed, 25 Jul 2012 00:21:46 +0000 (17:21 -0700)]
Merge "Fix implementation of generic atomic operations"

11 years agoFix implementation of generic atomic operations
Chris Dearman [Tue, 24 Jul 2012 00:30:04 +0000 (17:30 -0700)]
Fix implementation of generic atomic operations

Change-Id: Ie1ea5aacc561e2d6d40125d2952ed0e9116b7b0d

11 years agoMerge "[MIPS] Add atomic routines"
Elliott Hughes [Tue, 24 Jul 2012 20:41:05 +0000 (13:41 -0700)]
Merge "[MIPS] Add atomic routines"

11 years ago[MIPS] Add atomic routines
Raghu Gandham [Fri, 29 Jun 2012 22:52:55 +0000 (15:52 -0700)]
[MIPS] Add atomic routines

Change-Id: I2cb20ce44dd230d222b7fc1ede2e1e3dce6e692b

12 years agoMerge "Upgrade to tzdata2012d."
Elliott Hughes [Sat, 21 Jul 2012 21:09:23 +0000 (14:09 -0700)]
Merge "Upgrade to tzdata2012d."

12 years agoUpgrade to tzdata2012d.
Elliott Hughes [Fri, 20 Jul 2012 23:52:39 +0000 (16:52 -0700)]
Upgrade to tzdata2012d.

This upgrade involved rewriting the script; the data has moved to ftp.iana.org,
where it's slightly less convenient to access, so it's time to use something
that can talk FTP...

As for tzdata2012d, it's just updating Morocco for this weekend's changes, now
they've been decided at the last minute (as usual).

Change-Id: I772df57a6e09b3bf3d9541bfc08930d6f18633b4

12 years agoMerge "Update time.h for CLOCK_BOOTTIME."
Elliott Hughes [Fri, 20 Jul 2012 00:18:36 +0000 (17:18 -0700)]
Merge "Update time.h for CLOCK_BOOTTIME."

12 years agoUpdate time.h for CLOCK_BOOTTIME.
Nick Pelly [Thu, 19 Jul 2012 20:50:55 +0000 (13:50 -0700)]
Update time.h for CLOCK_BOOTTIME.

(cherry-pick of 8958a383296ea0e1cc106ae245c37671809ffd49)

Change-Id: Ie8de6b32fa81566db53ad7e9fd4b197f4cede628

12 years agoMerge "linker: Fix LD_PRELOADS for calling constructors"
Nick Kralevich [Wed, 18 Jul 2012 21:02:21 +0000 (14:02 -0700)]
Merge "linker: Fix LD_PRELOADS for calling constructors"

12 years agoMerge "bionic: Report linker relocation address to gdb"
Elliott Hughes [Mon, 16 Jul 2012 18:38:23 +0000 (11:38 -0700)]
Merge "bionic: Report linker relocation address to gdb"