OSDN Git Service

android-x86/bionic.git
12 years agoam 36e0345a: Merge "linker: set LOCAL_NO_CRT := true"
Nick Kralevich [Wed, 16 May 2012 16:11:52 +0000 (09:11 -0700)]
am 36e0345a: Merge "linker: set LOCAL_NO_CRT := true"

* commit '36e0345af89e2ed768ed38dcdf016a7640cf8ba5':
  linker: set LOCAL_NO_CRT := true

12 years agoam 1adc7c03: Merge "linker: Fix the computation of si->base"
Nick Kralevich [Wed, 16 May 2012 16:11:50 +0000 (09:11 -0700)]
am 1adc7c03: Merge "linker: Fix the computation of si->base"

* commit '1adc7c03898ee1f6a4c7f8cffa3c07507b9da5a9':
  linker: Fix the computation of si->base

12 years agoam cd6b2007: (-s ours) Merge "Add linker support for PIE"
Nick Kralevich [Wed, 16 May 2012 16:11:49 +0000 (09:11 -0700)]
am cd6b2007: (-s ours) Merge "Add linker support for PIE"

* commit 'cd6b2007b851f1cfa47d8bcc7ec859dfa7557382':
  Add linker support for PIE

12 years agoReconcile with jb-release nakasi-factoryrom-release
The Android Open Source Project [Wed, 16 May 2012 15:31:49 +0000 (08:31 -0700)]
Reconcile with jb-release nakasi-factoryrom-release

Change-Id: I5a5b95da6c33afbc36893e162f3b57c09c161ee2

12 years agoMerge "linker: set LOCAL_NO_CRT := true"
Nick Kralevich [Tue, 15 May 2012 22:10:12 +0000 (15:10 -0700)]
Merge "linker: set LOCAL_NO_CRT := true"

12 years agoMerge "linker: Fix the computation of si->base"
Nick Kralevich [Tue, 15 May 2012 22:10:00 +0000 (15:10 -0700)]
Merge "linker: Fix the computation of si->base"

12 years agoMerge "Add linker support for PIE"
Nick Kralevich [Tue, 15 May 2012 22:09:45 +0000 (15:09 -0700)]
Merge "Add linker support for PIE"

12 years agolinker: set LOCAL_NO_CRT := true
Nick Kralevich [Fri, 4 Nov 2011 17:11:26 +0000 (10:11 -0700)]
linker: set LOCAL_NO_CRT := true

Use LOCAL_NO_CRT to prevent linking against crtbegin.o, rather than
messing with build rules. This also prevents linking against crtend.o,
which isn't needed for the linker.

Change-Id: I0c5b9999be7e8676560fe145c1c033ffce8db4d1

12 years agolinker: Fix the computation of si->base
David 'Digit' Turner [Tue, 15 Nov 2011 16:17:28 +0000 (17:17 +0100)]
linker: Fix the computation of si->base

The computation of si->base assumed that the first entry in the
program header table is a PT_PHDR. This results in the dynamic
linker crashing with a SIGSEGV/MAPERR when trying to load some
of the NDK unit test programs, which happen to have an EXIDX
header first, followed byu a PHDR one.

This patch fixes the computation by parsing the program header
table, looking explicitely for the PHDR entry. This fixes the
load of the NDK unit test programs, and doesn't affect system
libraries.

Change-Id: Id18ea6037dbe950b5abbbce816c2960321f0b81d

12 years agoAdd linker support for PIE
Nick Kralevich [Thu, 20 Oct 2011 21:57:56 +0000 (14:57 -0700)]
Add linker support for PIE

Modify the dynamic linker so that executables can be loaded
at locations other than 0x00000000.

Modify crtbegin* so that non-PIC compilant "thumb interwork
veneers" are not created by the linker.

Bug: 5323301
Change-Id: Iece0272e2b708c79034f302c20160e1fe9029588

12 years agoam 4f05d1c7: Merge "bionic/x86: Optimization for memcpy"
Elliott Hughes [Fri, 11 May 2012 04:31:48 +0000 (21:31 -0700)]
am 4f05d1c7: Merge "bionic/x86: Optimization for memcpy"

* commit '4f05d1c758ba141c617f25251a661ecb66627e9e':
  bionic/x86: Optimization for memcpy

12 years agoMerge "bionic/x86: Optimization for memcpy"
Elliott Hughes [Thu, 10 May 2012 17:14:43 +0000 (10:14 -0700)]
Merge "bionic/x86: Optimization for memcpy"

12 years agoresolved conflicts for merge of 08e72d01 to jb-dev-plus-aosp
Iliyan Malchev [Thu, 10 May 2012 16:19:59 +0000 (09:19 -0700)]
resolved conflicts for merge of 08e72d01 to jb-dev-plus-aosp

Change-Id: If00e354a5953ed54b31963d4f8ea77e1603c321e

12 years agomerge in jb-release history after reset to jb-dev
The Android Automerger [Thu, 10 May 2012 13:59:27 +0000 (06:59 -0700)]
merge in jb-release history after reset to jb-dev

12 years agoam edb7cad9: Merge "Actually set the header guard in "linux-syscalls.h"."
Elliott Hughes [Thu, 10 May 2012 03:10:14 +0000 (20:10 -0700)]
am edb7cad9: Merge "Actually set the header guard in "linux-syscalls.h"."

* commit 'edb7cad9b764f029c5faac2750f749d3d84bd86a':
  Actually set the header guard in "linux-syscalls.h".

12 years agoMerge "Actually set the header guard in "linux-syscalls.h"."
Elliott Hughes [Wed, 9 May 2012 23:39:40 +0000 (16:39 -0700)]
Merge "Actually set the header guard in "linux-syscalls.h"."

12 years agoActually set the header guard in "linux-syscalls.h".
Elliott Hughes [Wed, 9 May 2012 23:34:11 +0000 (16:34 -0700)]
Actually set the header guard in "linux-syscalls.h".

Spotted while merging a MIPS change.

Change-Id: I36fb5a07d0bba0c117e9fe9733957bd37ca4b4c0

12 years agoresolved conflicts for merge of e5408907 to jb-dev-plus-aosp
Elliott Hughes [Wed, 9 May 2012 20:53:37 +0000 (13:53 -0700)]
resolved conflicts for merge of e5408907 to jb-dev-plus-aosp

Change-Id: If4c3f51bf87b28da8074be2e46ae772a374b266f

12 years agobionic: add support for non-NEON memcpy() on NEON SoCs
Prajakta Gudadhe [Mon, 7 May 2012 21:17:44 +0000 (14:17 -0700)]
bionic: add support for non-NEON memcpy() on NEON SoCs

Some SoCs that support NEON nevertheless perform better with a non-NEON than a
NEON memcpy().  This patch adds build variable ARCH_ARM_USE_NON_NEON_MEMCPY,
which can be set in BoardConfig.mk.  When ARCH_ARM_USE_NON_NEON_MEMCPY is
defined, we compile in the non-NEON optimized memcpy() even if the SoC supports
NEON.

Change-Id: Ia0e5bee6bad5880ffc5ff8f34a1382d567546cf9

12 years agoam 7eb1cc23: Merge "bionic: allow the board to customize MALLOC_ALIGNMENT"
Elliott Hughes [Wed, 9 May 2012 19:53:16 +0000 (12:53 -0700)]
am 7eb1cc23: Merge "bionic: allow the board to customize MALLOC_ALIGNMENT"

* commit '7eb1cc23f8976a2062ba0cf92f030216a8e64e60':
  bionic: allow the board to customize MALLOC_ALIGNMENT

12 years agoam fd955033: Merge "pthread: Invalidate stale stack pointers on pthread_exit()"
Elliott Hughes [Wed, 9 May 2012 19:53:16 +0000 (12:53 -0700)]
am fd955033: Merge "pthread: Invalidate stale stack pointers on pthread_exit()"

* commit 'fd95503347acba5c52d669a186ad2b161338a8a7':
  pthread: Invalidate stale stack pointers on pthread_exit()

12 years agoMerge "[MIPS] Add support for MIPS syscalls"
Elliott Hughes [Wed, 9 May 2012 18:50:06 +0000 (11:50 -0700)]
Merge "[MIPS] Add support for MIPS syscalls"

12 years ago[MIPS] Add support for MIPS syscalls
Raghu Gandham [Sat, 28 Jan 2012 01:51:42 +0000 (17:51 -0800)]
[MIPS] Add support for MIPS syscalls

Change-Id: I4deba67e15c865c4c2db03064c04098a09828ea6
Signed-off-by: Raghu Gandham <raghu@mips.com>
Signed-off-by: Chris Dearman <chris@mips.com>
12 years agoMerge "bionic: allow the board to customize MALLOC_ALIGNMENT"
Elliott Hughes [Wed, 9 May 2012 16:52:56 +0000 (09:52 -0700)]
Merge "bionic: allow the board to customize MALLOC_ALIGNMENT"

12 years agobionic: allow the board to customize MALLOC_ALIGNMENT
Jack Ren [Sat, 19 Nov 2011 01:48:03 +0000 (09:48 +0800)]
bionic: allow the board to customize MALLOC_ALIGNMENT

Currently the dlmalloc allocates the memory with 8-byte alignment.
According to the com.aurorasoftworks.quadrant.ui.professional benchmark data:
We can get much better memory performance if we change it to be 16-byte aligned.
For example, On Nexus-S:
8-byte aligned :
    1378 1070  1142 1665 1765  1163 1179  1263  1404 avg: 1336.555555556
16-byte aligned:
    1691 1731  1780 1691 1671  1678 1802  1758  1780 avg: 1731.333333333
                                                    gain: 29.53%

That patch provides flexibity to customize the MALLOC_ALIGNMENT from the
board config.The macro MALLOC_ALIGNMENT defaults to 8.
To change it, please define BOARD_MALLOC_ALIGNMENT in the BoardConfig.mk:
BOARD_MALLOC_ALIGNMENT := <whatever>

Change-Id: I8da0376944a0bbcef1d0fc026bfb6d9125db9739
Signed-off-by: Jin Wei <wei.a.jin@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: Beare, Bruce J <bruce.j.beare@intel.com>
12 years agoMerge "pthread: Invalidate stale stack pointers on pthread_exit()"
Elliott Hughes [Wed, 9 May 2012 16:46:02 +0000 (09:46 -0700)]
Merge "pthread: Invalidate stale stack pointers on pthread_exit()"

12 years agoresolved conflicts for merge of 3919b96e to jb-dev-plus-aosp
Elliott Hughes [Wed, 9 May 2012 16:38:40 +0000 (09:38 -0700)]
resolved conflicts for merge of 3919b96e to jb-dev-plus-aosp

Change-Id: I80571b5f024a4e1abe2606d10e07006f53bbc01f

12 years agomerge in jb-release history after reset to jb-dev
The Android Automerger [Wed, 9 May 2012 14:46:07 +0000 (07:46 -0700)]
merge in jb-release history after reset to jb-dev

12 years agoam 08b51e2c: Implement the "abort" stub in assembly for ARM.
Ben Cheng [Wed, 9 May 2012 08:48:40 +0000 (01:48 -0700)]
am 08b51e2c: Implement the "abort" stub in assembly for ARM.

* commit '08b51e2c091d036c124259ae59eb7be6bbe346af':
  Implement the "abort" stub in assembly for ARM.

12 years agoam 20bea000: Merge "Cherry-pick "generate PIC code"."
Elliott Hughes [Wed, 9 May 2012 02:57:58 +0000 (19:57 -0700)]
am 20bea000: Merge "Cherry-pick "generate PIC code"."

* commit '20bea00090e530f2e6f4d97de4b7cf8031b86a86':
  Cherry-pick "generate PIC code".

12 years agopthread: Invalidate stale stack pointers on pthread_exit()
Bjorn Andersson [Fri, 4 May 2012 00:12:39 +0000 (17:12 -0700)]
pthread: Invalidate stale stack pointers on pthread_exit()

A call to pthread_key_delete() after pthread_exit() have unmapped the stack of a thread
but before the ongoing pthread_join() have finished executing will result in an access
to unmapped memory.
Avoid this by invalidating the stack_base and tls pointers during pthread_exit().

This is based on the investigation and proprosed solution by
Srinavasa Nagaraju <srinavasa.x.nagaraju@sonyericsson.com>

Change-Id: I145fb5d57930e91b00f1609d7b2cd16a55d5b3a9

12 years agoMerge "Implement the "abort" stub in assembly for ARM."
Elliott Hughes [Tue, 8 May 2012 21:54:56 +0000 (14:54 -0700)]
Merge "Implement the "abort" stub in assembly for ARM."

12 years agoImplement the "abort" stub in assembly for ARM.
Ben Cheng [Tue, 8 May 2012 20:36:37 +0000 (13:36 -0700)]
Implement the "abort" stub in assembly for ARM.

So that we can always get the full stack trace regardless of gcc's handling
of the "noreturn" attribute associated with abort().

(Cherry pick of Id264a5167e7cabbf11515fbc48f5469c527e34d4.)

Bug: 6455193

Conflicts:

libc/Android.mk

Change-Id: I568fc5303fd1d747075ca933355f914122f94dac

12 years agoImplement the "abort" stub in assembly for ARM.
Ben Cheng [Tue, 8 May 2012 20:36:37 +0000 (13:36 -0700)]
Implement the "abort" stub in assembly for ARM.

So that we can always get the full stack trace regardless of gcc's handling
of the "noreturn" attribute associated with abort().

[cherry-picked from master]

BUG:6455193
Change-Id: I0102355f5bf20e636d3feab9d1424495f38e39e2

12 years agoresolved conflicts for merge of 6cf3c7c5 to jb-dev-plus-aosp
Elliott Hughes [Tue, 8 May 2012 20:26:28 +0000 (13:26 -0700)]
resolved conflicts for merge of 6cf3c7c5 to jb-dev-plus-aosp

Change-Id: Ib22a8ae1ef63bf9b9c82ce6e22afd188ba7c2806

12 years agobionic/x86: Optimization for memcpy
Jack Ren [Tue, 14 Feb 2012 08:01:52 +0000 (12:01 +0400)]
bionic/x86: Optimization for memcpy

Signed-off-by: Liubov Dmitrieva <liubov.dmitrieva@intel.com>
Signed-off-by: H.J. Lu <hongjiu.lu@intel.com>
Signed-off-by: Wei A Jin <wei.a.jin@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Conflicts:

libc/arch-x86/string/ssse3-memcpy5.S

Change-Id: I41e70d1d19d5457e65c89b64da452fbdaf3a00a7

12 years agoMerge "Cherry-pick "generate PIC code"."
Elliott Hughes [Tue, 8 May 2012 18:56:13 +0000 (11:56 -0700)]
Merge "Cherry-pick "generate PIC code"."

12 years agoCherry-pick "generate PIC code".
Nick Kralevich [Fri, 11 Nov 2011 23:47:24 +0000 (15:47 -0800)]
Cherry-pick "generate PIC code".

Change-Id: I7d5f2e5663df263493f65e364c959e663fc4d13a

12 years agoMerge "Let pthread_create fail if schedparam can't be set"
Elliott Hughes [Tue, 8 May 2012 17:56:00 +0000 (10:56 -0700)]
Merge "Let pthread_create fail if schedparam can't be set"

12 years agoLet pthread_create fail if schedparam can't be set
Pierre Peiffer [Wed, 22 Feb 2012 15:40:15 +0000 (16:40 +0100)]
Let pthread_create fail if schedparam can't be set

The creation of a thread succeeds even if the requested scheduling
parameters can not be set. This is not POSIX compliant, and even
worse, it leads to a wrong behavior. Let pthread_create() fail in this
case.

Change-Id: Ice66e2a720975c6bde9fe86c2cf8f649533a169c
Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
12 years agoam e3bc7192: Merge "bionic: fix integer overflows in chk_malloc(), leak_malloc()...
Elliott Hughes [Mon, 7 May 2012 21:00:01 +0000 (14:00 -0700)]
am e3bc7192: Merge "bionic: fix integer overflows in chk_malloc(), leak_malloc(), and leak_memalign()"

* commit 'e3bc7192ec4254bed00eb8b352735665c6072995':
  bionic: fix integer overflows in chk_malloc(), leak_malloc(), and leak_memalign()

12 years agoam 73a6566d: Merge "Remove expired dns cache entries before removing oldest"
Elliott Hughes [Mon, 7 May 2012 20:59:59 +0000 (13:59 -0700)]
am 73a6566d: Merge "Remove expired dns cache entries before removing oldest"

* commit '73a6566da337db50cfc73c369d774ac1905a30c2':
  Remove expired dns cache entries before removing oldest

12 years agoam 8657eafc: Merge "Adjust memcpy for ARM Cortex A9 cache line size"
Elliott Hughes [Mon, 7 May 2012 20:59:58 +0000 (13:59 -0700)]
am 8657eafc: Merge "Adjust memcpy for ARM Cortex A9 cache line size"

* commit '8657eafc3552f36c176667c1591beab255308da6':
  Adjust memcpy for ARM Cortex A9 cache line size

12 years agoMerge "bionic: fix integer overflows in chk_malloc(), leak_malloc(), and leak_memalign()"
Elliott Hughes [Mon, 7 May 2012 17:51:28 +0000 (10:51 -0700)]
Merge "bionic: fix integer overflows in chk_malloc(), leak_malloc(), and leak_memalign()"

12 years agobionic: fix integer overflows in chk_malloc(), leak_malloc(), and leak_memalign()
Xi Wang [Wed, 14 Mar 2012 06:48:39 +0000 (02:48 -0400)]
bionic: fix integer overflows in chk_malloc(), leak_malloc(), and leak_memalign()

The allocation size in chk_malloc(), leak_malloc(), and leak_memalign()
functions may be rounded up to a small value, leading to buffer overflows.
The code only runs in debugging mode.

This patch complements commit 6f04a0f4 (CVE-2009-0607).

Change-Id: Id899bcd2bcd2ea2205e5753c433390710032dc83
Signed-off-by: Xi Wang <xi.wang@gmail.com>
12 years agoMerge "Remove expired dns cache entries before removing oldest"
Elliott Hughes [Mon, 7 May 2012 17:41:52 +0000 (10:41 -0700)]
Merge "Remove expired dns cache entries before removing oldest"

12 years agoMerge "Adjust memcpy for ARM Cortex A9 cache line size"
Elliott Hughes [Mon, 7 May 2012 16:13:34 +0000 (09:13 -0700)]
Merge "Adjust memcpy for ARM Cortex A9 cache line size"

12 years agoAdjust memcpy for ARM Cortex A9 cache line size
Henrik Smiding [Wed, 15 Sep 2010 14:08:03 +0000 (16:08 +0200)]
Adjust memcpy for ARM Cortex A9 cache line size

ARM Cortex A8 use 64 bytes and ARM Cortex A9 use 32 bytes cache line
size.

The following patch:
  Adds code to adjust memcpy cache line size to match A9 cache line
  size.
  Adds a flag to select between 32 bytes and 64 bytes cache line
  size.

  Copyright (C) ST-Ericsson SA 2010
    Modified neon implementation to fit Cortex A9 cache line size
    Author: Henrik Smiding henrik.smiding@stericsson.com for
            ST-Ericsson.

Change-Id: I8a55946bfb074e6ec0a14805ed65f73fcd0984a3
Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
12 years agoam f7db5ecc: Merge "MIPS support to libm, libdl and libthread_db"
Elliott Hughes [Sat, 5 May 2012 01:07:11 +0000 (18:07 -0700)]
am f7db5ecc: Merge "MIPS support to libm, libdl and libthread_db"

* commit 'f7db5ecc4d662da8368f31d57401ca1a39690e40':
  MIPS support to libm, libdl and libthread_db

12 years agoMerge "MIPS support to libm, libdl and libthread_db"
Elliott Hughes [Fri, 4 May 2012 19:00:19 +0000 (12:00 -0700)]
Merge "MIPS support to libm, libdl and libthread_db"

12 years agoMIPS support to libm, libdl and libthread_db
Chris Dearman [Wed, 2 May 2012 00:45:53 +0000 (17:45 -0700)]
MIPS support to libm, libdl and libthread_db

Change-Id: I9106721af7fe0cd45df82976250db0d300a20117
Signed-off-by: Raghu Gandham <raghu@mips.com>
12 years agoam 10579fc4: Merge "Update s_fabsl.c to upstream head."
Elliott Hughes [Tue, 1 May 2012 11:56:57 +0000 (04:56 -0700)]
am 10579fc4: Merge "Update s_fabsl.c to upstream head."

* commit '10579fc43d3ade285eed7318aee062a999f2784d':
  Update s_fabsl.c to upstream head.

12 years agoMerge "Update s_fabsl.c to upstream head."
Elliott Hughes [Tue, 1 May 2012 05:35:02 +0000 (22:35 -0700)]
Merge "Update s_fabsl.c to upstream head."

12 years agoUpdate s_fabsl.c to upstream head.
Elliott Hughes [Mon, 30 Apr 2012 23:12:43 +0000 (16:12 -0700)]
Update s_fabsl.c to upstream head.

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

12 years agomerge in jb-release history after reset to jb-dev
The Android Automerger [Mon, 30 Apr 2012 13:59:25 +0000 (06:59 -0700)]
merge in jb-release history after reset to jb-dev

12 years agoam 6baffed2: Add the posix_memalign(3) function to bionic
Ken Sumrall [Fri, 27 Apr 2012 17:49:42 +0000 (10:49 -0700)]
am 6baffed2: Add the posix_memalign(3) function to bionic

* commit '6baffed252d0efbce5a79f356c2f156f4f818996':
  Add the posix_memalign(3) function to bionic

12 years agoAdd the posix_memalign(3) function to bionic
Ken Sumrall [Thu, 15 Dec 2011 04:50:01 +0000 (20:50 -0800)]
Add the posix_memalign(3) function to bionic

The posix_memalign(3) function is very similar to the traditional
memalign(3) function, but with better error reporting and a guarantee
that the memory it allocates can be freed.  In bionic, memalign(3)
allocated memory can be freed, so posix_memalign(3) is just a wrapper
around memalign(3).

Change-Id: I62ee908aa5ba6b887d8446a00d8298d080a6a299

12 years agoam efcf8893: Merge "Update f_accessory.h kernel header" into jb-dev
Mike Lockwood [Thu, 26 Apr 2012 20:12:54 +0000 (13:12 -0700)]
am efcf8893: Merge "Update f_accessory.h kernel header" into jb-dev

* commit 'efcf8893a97df2eb2ecb7aab305998878771d2f2':
  Update f_accessory.h kernel header

12 years agoMerge "Update f_accessory.h kernel header" into jb-dev
Mike Lockwood [Thu, 26 Apr 2012 20:10:25 +0000 (13:10 -0700)]
Merge "Update f_accessory.h kernel header" into jb-dev

12 years agoam b091dd9b: libc: continue to use Android\'s custom linker script
Nick Kralevich [Thu, 26 Apr 2012 18:58:48 +0000 (11:58 -0700)]
am b091dd9b: libc: continue to use Android\'s custom linker script

* commit 'b091dd9bf27a9132c4ac9da55f2f4a87ffe3b59f':
  libc: continue to use Android's custom linker script

12 years agolibc: continue to use Android's custom linker script
Nick Kralevich [Thu, 26 Apr 2012 16:54:48 +0000 (09:54 -0700)]
libc: continue to use Android's custom linker script

By default, Android no longer compiles code using it's custom
linker script /build/core/armelf.xsc. However, this causes
problems for libc. Certain programs linked using older versions
of GOLD expect libc.so to export __exidx_start and __exidx_end.
Removing the custom linker script causes libc.so not to export
those symbols.

For now, continue using the old linker script, until we can
figure out a better solution.

Change-Id: Iaf002afd63a58b848818da24e5a4525620dc4d74

12 years agoUpdate f_accessory.h kernel header
Mike Lockwood [Tue, 17 Apr 2012 17:41:34 +0000 (10:41 -0700)]
Update f_accessory.h kernel header

Change-Id: I29ec4aa4843b9308cbfa412df88e026e8475b715
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoMerge from AOSP
Jean-Baptiste Queru [Wed, 25 Apr 2012 16:29:28 +0000 (09:29 -0700)]
Merge from AOSP

Change-Id: If2e8e4305d10df738cc4ebcf226077f273a48cbf

12 years agomerge in jb-release history after reset to jb-dev
The Android Automerger [Wed, 25 Apr 2012 14:47:06 +0000 (07:47 -0700)]
merge in jb-release history after reset to jb-dev

12 years agoMerge "[MIPS] Fix the warning originating from the kernel header signal.h. This is...
Andrew Hsieh [Wed, 25 Apr 2012 06:44:17 +0000 (23:44 -0700)]
Merge "[MIPS] Fix the warning originating from the kernel header signal.h. This is a clean header generated from the corresponding change in external/kernel-headers repository. (CL 35760)"

12 years ago[MIPS] Fix the warning originating from the kernel header signal.h.
Raghu Gandham [Tue, 24 Apr 2012 01:59:41 +0000 (18:59 -0700)]
[MIPS] Fix the warning originating from the kernel header signal.h.
This is a clean header generated from the corresponding change in
external/kernel-headers repository. (CL 35760)

12 years agolinker: remove STB_LOCAL hack
Nick Kralevich [Mon, 23 Apr 2012 23:50:00 +0000 (16:50 -0700)]
linker: remove STB_LOCAL hack

The ARM static linker wasn't properly handling __exidx_start
and __exidx_end symbols. Now that the static linker has been fixed,
we don't need the dynamic linker to work around this problem.

Change-Id: I041b94903609fafab33663a7d441a5e70b7ffcdd

12 years agomerge in jb-release history after reset to master
The Android Automerger [Thu, 19 Apr 2012 13:59:25 +0000 (06:59 -0700)]
merge in jb-release history after reset to master

12 years agoadd linux/sw_sync.h
Erik Gilling [Wed, 18 Apr 2012 22:37:01 +0000 (15:37 -0700)]
add linux/sw_sync.h

Change-Id: I79de18d04b950c21b985d5ebc01cd3306a43d318
Signed-off-by: Erik Gilling <konkers@android.com>
12 years agoadd linux/sync.h
Erik Gilling [Wed, 18 Apr 2012 21:23:04 +0000 (14:23 -0700)]
add linux/sync.h

Change-Id: I38bb9498e18cb2b2e84a97487d4ad1e15fabd9d4
Signed-off-by: Erik Gilling <konkers@android.com>
12 years agomerge in jb-release history after reset to master
The Android Automerger [Wed, 18 Apr 2012 13:59:34 +0000 (06:59 -0700)]
merge in jb-release history after reset to master

12 years agoFix segv when unwinding stack past __libc_init.
Evgeniy Stepanov [Wed, 18 Apr 2012 08:57:40 +0000 (12:57 +0400)]
Fix segv when unwinding stack past __libc_init.

This change mirrors cd15bac for statically-linked binaries.

Change-Id: Id870832a50b37f0ef3e79e1ed03ed31390bfc9ef

12 years agomerge in jb-release history after reset to master
The Android Automerger [Tue, 17 Apr 2012 13:59:17 +0000 (06:59 -0700)]
merge in jb-release history after reset to master

12 years agoresolved conflicts for merge of 35d592cc to master
Elliott Hughes [Mon, 16 Apr 2012 21:40:26 +0000 (14:40 -0700)]
resolved conflicts for merge of 35d592cc to master

Change-Id: I8184302daf61814d26c837f9920b4e68d96d7f65

12 years agoresolved conflicts for merge of ef987656 to master
Elliott Hughes [Mon, 16 Apr 2012 21:26:43 +0000 (14:26 -0700)]
resolved conflicts for merge of ef987656 to master

Change-Id: I3854de8f4cddaf344444efa6f9da027642a237d9

12 years agoresolved conflicts for merge of 6b8fd054 to master
Elliott Hughes [Mon, 16 Apr 2012 21:16:42 +0000 (14:16 -0700)]
resolved conflicts for merge of 6b8fd054 to master

Change-Id: Ifc5a10d9c2f7764ad80d64cc552aad81d5fbf5eb

12 years agoam ff219e57: am 6435d27f: Merge "bionic: fix NULL parameter failure in getcwd()"
Elliott Hughes [Mon, 16 Apr 2012 20:15:13 +0000 (13:15 -0700)]
am ff219e57: am 6435d27f: Merge "bionic: fix NULL parameter failure in getcwd()"

* commit 'ff219e57c0ffe5ac2816f79677ce4f1afa677277':
  bionic: fix NULL parameter failure in getcwd()

12 years agoam 418e647a: Merge "libstdc++: Fix x86 thread-safe one-time-construction implementation."
Elliott Hughes [Mon, 16 Apr 2012 20:12:47 +0000 (13:12 -0700)]
am 418e647a: Merge "libstdc++: Fix x86 thread-safe one-time-construction implementation."

* commit '418e647a8300bb8e62b6b73814a5211152cbaacd':
  libstdc++: Fix x86 thread-safe one-time-construction implementation.

12 years agoam 4994deae: Merge "Bionic: Fix wrong prototype of system call clock_nanosleep"
Elliott Hughes [Mon, 16 Apr 2012 20:12:46 +0000 (13:12 -0700)]
am 4994deae: Merge "Bionic: Fix wrong prototype of system call clock_nanosleep"

* commit '4994deaef51d5fa1ac12e6160b47d9cbe3b2bc43':
  Bionic: Fix wrong prototype of system call clock_nanosleep

12 years agoam 7b8666e6: Merge "bionic: Fix wrong prototype of system call getresuid/getresgid"
Elliott Hughes [Mon, 16 Apr 2012 20:12:46 +0000 (13:12 -0700)]
am 7b8666e6: Merge "bionic: Fix wrong prototype of system call getresuid/getresgid"

* commit '7b8666e683e56549091b86fd7b9c421fd0124dbc':
  bionic: Fix wrong prototype of system call getresuid/getresgid

12 years agoam 6435d27f: Merge "bionic: fix NULL parameter failure in getcwd()"
Elliott Hughes [Mon, 16 Apr 2012 20:12:45 +0000 (13:12 -0700)]
am 6435d27f: Merge "bionic: fix NULL parameter failure in getcwd()"

* commit '6435d27f9d45d01fbd15bcc3dcd9617b86b825bb':
  bionic: fix NULL parameter failure in getcwd()

12 years agoMerge "libstdc++: Fix x86 thread-safe one-time-construction implementation."
Elliott Hughes [Mon, 16 Apr 2012 16:13:13 +0000 (09:13 -0700)]
Merge "libstdc++: Fix x86 thread-safe one-time-construction implementation."

12 years agoMerge "Bionic: Fix wrong prototype of system call clock_nanosleep"
Elliott Hughes [Mon, 16 Apr 2012 16:09:04 +0000 (09:09 -0700)]
Merge "Bionic: Fix wrong prototype of system call clock_nanosleep"

12 years agoMerge "bionic: Fix wrong prototype of system call getresuid/getresgid"
Elliott Hughes [Mon, 16 Apr 2012 16:06:22 +0000 (09:06 -0700)]
Merge "bionic: Fix wrong prototype of system call getresuid/getresgid"

12 years agoBionic: Fix wrong prototype of system call clock_nanosleep
Jack Ren [Tue, 17 Apr 2012 03:20:15 +0000 (11:20 +0800)]
Bionic: Fix wrong prototype of system call clock_nanosleep

In bionic/libc/SYSCALLS.TXT, the prototype of system call
clock_nanosleep is incorrect.

According to man page:
int clock_nanosleep(clockid_t clock_id, int flags,
                    const struct timespec *request,
                    struct timespec *remain);

Change-Id: Ic44c6db3d632293aa17998035554eacd664c2d57
Signed-off-by: Jin Wei <wei.a.jin@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agoMerge "bionic: fix NULL parameter failure in getcwd()"
Elliott Hughes [Mon, 16 Apr 2012 15:48:19 +0000 (08:48 -0700)]
Merge "bionic: fix NULL parameter failure in getcwd()"

12 years agobionic: Fix wrong prototype of system call getresuid/getresgid
Jack Ren [Tue, 17 Apr 2012 03:16:18 +0000 (11:16 +0800)]
bionic: Fix wrong prototype of system call getresuid/getresgid

In bionic/libc/SYSCALLS.TXT, the prototypes of system call
getresuid/getresgid are incorrect.

According to man page, they should be:
    int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
    int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);

Change-Id: I676098868bb05a9e1fe45419b234cf397626fdad
Signed-off-by: Jin Wei <wei.a.jin@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agobionic: fix NULL parameter failure in getcwd()
Jack Ren [Tue, 13 Mar 2012 10:26:28 +0000 (18:26 +0800)]
bionic: fix NULL parameter failure in getcwd()

LTP: getcwd01 failed in LTP

Need to check getcwd parameters, otherwise it will lead to
posix test case to fail.

Change-Id: Ieb673b6dd4ca6481da81c5339dbf7ec0a463f263
Signed-off-by: Jin Wei <wei.a.jin@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agomerge in jb-release history after reset to master
The Android Automerger [Mon, 16 Apr 2012 13:59:27 +0000 (06:59 -0700)]
merge in jb-release history after reset to master

12 years agolibstdc++: Fix x86 thread-safe one-time-construction implementation.
Fengwei Yin [Wed, 28 Mar 2012 09:25:17 +0000 (17:25 +0800)]
libstdc++: Fix x86 thread-safe one-time-construction implementation.

The root of the problem is that the existing implementation is based on the
ARM C++ ABI, which mandates a different guard variable layout than the
Itanium/x86 C++ one.

This patch modifies the implementation in a way that satisfies both ABIs (and
doesn't require changing the toolchains).

Change-Id: I885e9adc7f088b9c0a78355bd752f1e6aeec9f07
Signed-off-by: Fengwei Yin <fengwei.yin@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
12 years agoam cebc8fb0: am 6bc18fa5: Merge "libm: fix invalid result of function remquo/remquof"
Elliott Hughes [Sat, 14 Apr 2012 00:10:06 +0000 (17:10 -0700)]
am cebc8fb0: am 6bc18fa5: Merge "libm: fix invalid result of function remquo/remquof"

* commit 'cebc8fb0862a8e1ecd86f9d09b0a3fca0f0781fa':
  libm: fix invalid result of function remquo/remquof

12 years agoam 6bc18fa5: Merge "libm: fix invalid result of function remquo/remquof"
Elliott Hughes [Sat, 14 Apr 2012 00:07:43 +0000 (17:07 -0700)]
am 6bc18fa5: Merge "libm: fix invalid result of function remquo/remquof"

* commit '6bc18fa58849a4307cf6ddcfd526d9258e8175fc':
  libm: fix invalid result of function remquo/remquof

12 years agoMerge changes I427a1881,I959b6428
Kenny Root [Fri, 13 Apr 2012 23:03:51 +0000 (16:03 -0700)]
Merge changes I427a1881,I959b6428

* changes:
  Add faccessat to syscall list
  Update unistd.h for new syscalls

12 years agoAdd faccessat to syscall list
Kenny Root [Fri, 13 Apr 2012 21:56:25 +0000 (14:56 -0700)]
Add faccessat to syscall list

Change-Id: I427a18811089cb280769ac8da3ed8adc00a65a10

12 years agoMerge "libm: fix invalid result of function remquo/remquof"
Elliott Hughes [Fri, 13 Apr 2012 21:57:59 +0000 (14:57 -0700)]
Merge "libm: fix invalid result of function remquo/remquof"

12 years agoUpdate unistd.h for new syscalls
Kenny Root [Fri, 13 Apr 2012 21:50:14 +0000 (14:50 -0700)]
Update unistd.h for new syscalls

gensyscalls.py run from external/kernel-headers at commit
efab8f3e49f7f36ef0354b0996ecd5f3fa031e52

Change-Id: I959b64280e184655ef8c713aa79f9e23cb1f7df4

12 years agoam 0613dce0: regenerate linux/fb.h
Travis Geiselbrecht [Thu, 12 Apr 2012 23:09:29 +0000 (16:09 -0700)]
am 0613dce0: regenerate linux/fb.h

* commit '0613dce0a7b806d48758cabfb2d638d0ba4dd2bc':
  regenerate linux/fb.h

12 years agoregenerate linux/fb.h
Travis Geiselbrecht [Thu, 12 Apr 2012 21:51:43 +0000 (14:51 -0700)]
regenerate linux/fb.h

Change-Id: Icd8c0f53306a48ffd513378abdf387af21e886a3

12 years agoInitialize TLS before any application code is run.
Evgeniy Stepanov [Thu, 22 Mar 2012 14:01:53 +0000 (18:01 +0400)]
Initialize TLS before any application code is run.

Since e19d702b8e33, dlsym and friends use recursive mutexes that
require the current thread id, which is not available before the libc
constructor. This prevents us from using dlsym() in .preinit_array.

This change moves TLS initialization from libc constructor to the earliest
possible point - immediately after linker itself is relocated. As a result,
pthread_internal_t for the initial thread is available from the start.

As a bonus, values stored in TLS in .preinit_array are not lost when libc is
initialized.

Change-Id: Iee5a710ee000173bff63e924adeb4a4c600c1e2d

12 years agoMerge "Fix segv when unwinding stack past __libc_init."
Elliott Hughes [Thu, 12 Apr 2012 18:52:44 +0000 (11:52 -0700)]
Merge "Fix segv when unwinding stack past __libc_init."