OSDN Git Service
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
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
Nick Kralevich [Tue, 15 May 2012 22:09:45 +0000 (15:09 -0700)]
Merge "Add 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
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
Elliott Hughes [Thu, 10 May 2012 17:14:43 +0000 (10:14 -0700)]
Merge "bionic/x86: Optimization for memcpy"
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
The Android Automerger [Thu, 10 May 2012 13:59:27 +0000 (06:59 -0700)]
merge in jb-release history after reset to jb-dev
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".
Elliott Hughes [Wed, 9 May 2012 23:39:40 +0000 (16:39 -0700)]
Merge "Actually 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
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
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
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
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()
Elliott Hughes [Wed, 9 May 2012 18:50:06 +0000 (11:50 -0700)]
Merge "[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>
Elliott Hughes [Wed, 9 May 2012 16:52:56 +0000 (09:52 -0700)]
Merge "bionic: 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>
Elliott Hughes [Wed, 9 May 2012 16:46:02 +0000 (09:46 -0700)]
Merge "pthread: Invalidate stale stack pointers on pthread_exit()"
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
The Android Automerger [Wed, 9 May 2012 14:46:07 +0000 (07:46 -0700)]
merge in jb-release history after reset to jb-dev
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.
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".
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
Elliott Hughes [Tue, 8 May 2012 21:54:56 +0000 (14:54 -0700)]
Merge "Implement 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
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
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
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
Elliott Hughes [Tue, 8 May 2012 18:56:13 +0000 (11:56 -0700)]
Merge "Cherry-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
Elliott Hughes [Tue, 8 May 2012 17:56:00 +0000 (10:56 -0700)]
Merge "Let 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>
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()
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
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
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()"
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>
Elliott Hughes [Mon, 7 May 2012 17:41:52 +0000 (10:41 -0700)]
Merge "Remove expired dns cache entries before removing oldest"
Elliott Hughes [Mon, 7 May 2012 16:13:34 +0000 (09:13 -0700)]
Merge "Adjust 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>
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
Elliott Hughes [Fri, 4 May 2012 19:00:19 +0000 (12:00 -0700)]
Merge "MIPS 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>
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.
Elliott Hughes [Tue, 1 May 2012 05:35:02 +0000 (22:35 -0700)]
Merge "Update 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
The Android Automerger [Mon, 30 Apr 2012 13:59:25 +0000 (06:59 -0700)]
merge in jb-release history after reset to jb-dev
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
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
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
Mike Lockwood [Thu, 26 Apr 2012 20:10:25 +0000 (13:10 -0700)]
Merge "Update f_accessory.h kernel header" into jb-dev
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
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
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>
Jean-Baptiste Queru [Wed, 25 Apr 2012 16:29:28 +0000 (09:29 -0700)]
Merge from AOSP
Change-Id: If2e8e4305d10df738cc4ebcf226077f273a48cbf
The Android Automerger [Wed, 25 Apr 2012 14:47:06 +0000 (07:47 -0700)]
merge in jb-release history after reset to jb-dev
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)"
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)
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
The Android Automerger [Thu, 19 Apr 2012 13:59:25 +0000 (06:59 -0700)]
merge in jb-release history after reset to master
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>
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>
The Android Automerger [Wed, 18 Apr 2012 13:59:34 +0000 (06:59 -0700)]
merge in jb-release history after reset to master
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
The Android Automerger [Tue, 17 Apr 2012 13:59:17 +0000 (06:59 -0700)]
merge in jb-release history after reset 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
Elliott Hughes [Mon, 16 Apr 2012 21:26:43 +0000 (14:26 -0700)]
resolved conflicts for merge of
ef987656 to master
Change-Id: I3854de8f4cddaf344444efa6f9da027642a237d9
Elliott Hughes [Mon, 16 Apr 2012 21:16:42 +0000 (14:16 -0700)]
resolved conflicts for merge of
6b8fd054 to master
Change-Id: Ifc5a10d9c2f7764ad80d64cc552aad81d5fbf5eb
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()
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.
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
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
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()
Elliott Hughes [Mon, 16 Apr 2012 16:13:13 +0000 (09:13 -0700)]
Merge "libstdc++: Fix x86 thread-safe one-time-construction implementation."
Elliott Hughes [Mon, 16 Apr 2012 16:09:04 +0000 (09:09 -0700)]
Merge "Bionic: Fix wrong prototype of system call clock_nanosleep"
Elliott Hughes [Mon, 16 Apr 2012 16:06:22 +0000 (09:06 -0700)]
Merge "bionic: Fix wrong prototype of system call getresuid/getresgid"
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>
Elliott Hughes [Mon, 16 Apr 2012 15:48:19 +0000 (08:48 -0700)]
Merge "bionic: fix NULL parameter failure in getcwd()"
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>
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>
The Android Automerger [Mon, 16 Apr 2012 13:59:27 +0000 (06:59 -0700)]
merge in jb-release history after reset to master
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>
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
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
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
Kenny Root [Fri, 13 Apr 2012 21:56:25 +0000 (14:56 -0700)]
Add faccessat to syscall list
Change-Id: I427a18811089cb280769ac8da3ed8adc00a65a10
Elliott Hughes [Fri, 13 Apr 2012 21:57:59 +0000 (14:57 -0700)]
Merge "libm: fix invalid result of function remquo/remquof"
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
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
Travis Geiselbrecht [Thu, 12 Apr 2012 21:51:43 +0000 (14:51 -0700)]
regenerate linux/fb.h
Change-Id: Icd8c0f53306a48ffd513378abdf387af21e886a3
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
Elliott Hughes [Thu, 12 Apr 2012 18:52:44 +0000 (11:52 -0700)]
Merge "Fix segv when unwinding stack past __libc_init."
The Android Automerger [Thu, 12 Apr 2012 13:59:24 +0000 (06:59 -0700)]
merge in jb-release history after reset to master
Kenny Root [Wed, 11 Apr 2012 21:16:04 +0000 (14:16 -0700)]
Move end of __on_dlclose up
The END macro was put too far down which made the linker complain about
it. Move up to the end of the code.
Change-Id: Ica71a9c6083b437d2213c7cefe34b0083c78f16b
The Android Automerger [Wed, 11 Apr 2012 13:59:29 +0000 (06:59 -0700)]
merge in jb-release history after reset to master
Kenny Root [Wed, 11 Apr 2012 00:24:24 +0000 (17:24 -0700)]
__on_dlclose should be aligned
Marking segments read-only was pushing the alignment of __on_dlclose by
2 bytes making it unaligned. This change makes sure the ARM code is
aligned to the 4 byte boundary.
Bug:
6313309
Change-Id: Ic2bf475e120dd61225ec19e5d8a9a8b1d0b7f081
Nick Kralevich [Tue, 10 Apr 2012 20:42:06 +0000 (13:42 -0700)]
Revert "linker: remove STB_LOCAL hack"
This reverts commit
61ff83475c6f3a3bb05a01ac89d668a331bfe9e9.
This code is harmless, and only applies to the linker, so
there's no harm in keeping it in the tree a little bit longer.
Let's roll this back while we try to figure out the root cause
of bug
6314858.
Bug:
6314858
Change-Id: I9f5ed81d23a7abe273baf792aa8a0a2839ef094c
Nick Kralevich [Tue, 10 Apr 2012 20:42:06 +0000 (13:42 -0700)]
Revert "linker: remove STB_LOCAL hack"
This reverts commit
61ff83475c6f3a3bb05a01ac89d668a331bfe9e9.
This code is harmless, and only applies to the linker, so
there's no harm in keeping it in the tree a little bit longer.
Let's roll this back while we try to figure out the root cause
of bug
6314858.
Bug:
6314858
Change-Id: I9f5ed81d23a7abe273baf792aa8a0a2839ef094c