OSDN Git Service

android-x86/bionic.git
11 years agoFORTIFY_SOURCE: fortify strchr
Nick Kralevich [Fri, 30 Nov 2012 23:15:58 +0000 (15:15 -0800)]
FORTIFY_SOURCE: fortify strchr

Detect when strchr reads off the end of a buffer.

Change-Id: I0e952eedcff5c36d646a9c3bc4e1337b959224f2

11 years agoMerge "Reduce the exposure of the __set_errno implementation detail."
Elliott Hughes [Fri, 30 Nov 2012 22:41:07 +0000 (14:41 -0800)]
Merge "Reduce the exposure of the __set_errno implementation detail."

11 years agoReduce the exposure of the __set_errno implementation detail.
Elliott Hughes [Fri, 30 Nov 2012 19:58:57 +0000 (11:58 -0800)]
Reduce the exposure of the __set_errno implementation detail.

Change-Id: I395e1b46a9491e34fc53e71853e932ea90b3d1cc

11 years agoMerge "Replace .S version of x86 crtfiles with .c version"
Elliott Hughes [Fri, 30 Nov 2012 18:06:53 +0000 (10:06 -0800)]
Merge "Replace .S version of x86 crtfiles with .c version"

11 years agoReplace .S version of x86 crtfiles with .c version
Pavel Chupin [Wed, 28 Nov 2012 14:31:14 +0000 (18:31 +0400)]
Replace .S version of x86 crtfiles with .c version

This patch replaces .S versions of x86 crtfiles with .c which are much
easier to support. Some of the files are matching .c version of Arm
crtfiles. x86 files required some cleanup anyway and this cleanup actually
led to matching Arm files.

I didn't change anything to share the same crt*.c between x86 and Arm. I
prefer to keep them separate for a while in case any change is required
for one of the arch, but it's good thing to do in the following patches.

Change-Id: Ibcf033f8d15aa5b10c05c879fd4b79a64dfc70f3
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
11 years agoMerge "Remove (near-)duplicate definitions of size_t and ssize_t."
Elliott Hughes [Fri, 30 Nov 2012 03:33:01 +0000 (19:33 -0800)]
Merge "Remove (near-)duplicate definitions of size_t and ssize_t."

11 years agoRemove (near-)duplicate definitions of size_t and ssize_t.
Elliott Hughes [Fri, 30 Nov 2012 01:25:23 +0000 (17:25 -0800)]
Remove (near-)duplicate definitions of size_t and ssize_t.

The near duplicates upset fussier compilers that insist that
typedefs be exactly the same, but the fix isn't to make all
copies identical...

Change-Id: Icfdace41726f36ec33c9ae919dbb5a54d3529cc9

11 years agoMerge "Bug: __WINT_TYPE__ and wint_t reference to different types"
Elliott Hughes [Thu, 29 Nov 2012 23:51:57 +0000 (15:51 -0800)]
Merge "Bug: __WINT_TYPE__ and wint_t reference to different types"

11 years agoMerge "[MIPS] Fix the MIPS getsid system call"
Elliott Hughes [Thu, 29 Nov 2012 22:37:13 +0000 (14:37 -0800)]
Merge "[MIPS] Fix the MIPS getsid system call"

11 years agoMerge "Verify architecture neutral syscall numbers"
Elliott Hughes [Thu, 29 Nov 2012 22:34:19 +0000 (14:34 -0800)]
Merge "Verify architecture neutral syscall numbers"

11 years agoMerge "Define DEFFILEMODE and friends"
Elliott Hughes [Thu, 29 Nov 2012 22:31:19 +0000 (14:31 -0800)]
Merge "Define DEFFILEMODE and friends"

11 years ago[MIPS] Fix the MIPS getsid system call
Chris Dearman [Thu, 29 Nov 2012 19:23:31 +0000 (11:23 -0800)]
[MIPS] Fix the MIPS getsid system call

Change-Id: I30a27941125bccb35d73a572a729ecf7dd555389
Signed-off-by: Chris Dearman <chris@mips.com>
11 years agoVerify architecture neutral syscall numbers
Chris Dearman [Thu, 29 Nov 2012 19:22:11 +0000 (11:22 -0800)]
Verify architecture neutral syscall numbers

Also removed some dead code and fixed comment

Change-Id: I5d6a04b4af3d95e34368136cf2eeb3c9b6f99769
Signed-off-by: Chris Dearman <chris@mips.com>
11 years agoDefine DEFFILEMODE and friends
Hakan Kvist [Wed, 10 Oct 2012 06:32:52 +0000 (08:32 +0200)]
Define DEFFILEMODE and friends

Define the macros ACCESSPERMS, ALLPERMS and DEFFILEMODE.
These macros originates from BSD but has been available in glibc
for quite some time.

Change-Id: I429cd30aa4e73f53b153ee7740070cebba166c57

11 years agoMerge "Clean up _BYTE_ORDER definitions for better x86 portability."
Elliott Hughes [Wed, 28 Nov 2012 01:34:52 +0000 (17:34 -0800)]
Merge "Clean up _BYTE_ORDER definitions for better x86 portability."

11 years agoClean up _BYTE_ORDER definitions for better x86 portability.
Elliott Hughes [Tue, 27 Nov 2012 22:18:04 +0000 (14:18 -0800)]
Clean up _BYTE_ORDER definitions for better x86 portability.

We'd manually hacked _BYTE_ORDER into the arm and mips "_types.h" headers,
but not into the x86 one. Judging by upstream, _BYTE_ORDER should be in
the "endian.h" headers instead, so let's uniformly do that.

I've also ironed out some of the other differences between the different
architectures' header files too.

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

11 years agoMerge "Do not include '\0' when writing error messages to stderr"
Elliott Hughes [Mon, 26 Nov 2012 23:44:58 +0000 (15:44 -0800)]
Merge "Do not include '\0' when writing error messages to stderr"

11 years agoDo not include '\0' when writing error messages to stderr
Chris Dearman [Wed, 31 Oct 2012 12:39:27 +0000 (05:39 -0700)]
Do not include '\0' when writing error messages to stderr

Change-Id: I6adc806c3920e5a4ae61ca55c40613fcf338b18c
Signed-off-by: Chris Dearman <chris@mips.com>
11 years agoMerge "Upgrade to tzdata2012j."
Elliott Hughes [Mon, 26 Nov 2012 22:52:07 +0000 (14:52 -0800)]
Merge "Upgrade to tzdata2012j."

11 years agoUpgrade to tzdata2012j.
Elliott Hughes [Mon, 26 Nov 2012 21:44:49 +0000 (13:44 -0800)]
Upgrade to tzdata2012j.

This reflects the following changes recently circulated on the tz mailing list:

  Libya moved to CET [2012-11-11], but with DST planned [2013].
  (Thanks to Even Scharning, Steffen Thorsen, and Tim Parenti.)

I also had to change the script to cope with:

  Signatures now have the extension .asc, not .sign, as that's more
  standard.  (Thanks to Phil Pennock.)

Change-Id: Ie9711c5c796b3c122daea9690929edcc3ddd32da

11 years agoBug: __WINT_TYPE__ and wint_t reference to different types
Sergey Melnikov [Wed, 21 Nov 2012 15:42:19 +0000 (19:42 +0400)]
Bug: __WINT_TYPE__ and wint_t reference to different types

__WINT_TYPE__ type provided by gcc. It references to unsigned int
type for android and linux. Patch corrects wint_t typedef to
__WINT_TYPE__.

Signed-off-by: Sergey Melnikov <sergey.melnikov@intel.com>
Change-Id: Iabeb9fcb0b7bb303a8b220043e339126f125dd68

11 years agoMerge "We should use load_bias. This patch fixes MIPS NDK device exception test...
Nick Kralevich [Mon, 19 Nov 2012 18:45:18 +0000 (10:45 -0800)]
Merge "We should use load_bias.  This patch fixes MIPS NDK device exception test failures."

11 years agoWe should use load_bias. This patch fixes MIPS NDK device exception test failures.
Chao-Ying Fu [Thu, 15 Nov 2012 10:00:17 +0000 (02:00 -0800)]
We should use load_bias.  This patch fixes MIPS NDK device exception test failures.

Change-Id: I4b718c36666e66062c1f13e4deea1ec7a7951c54

11 years agoMerge "Support GNU_RELRO for static executables."
Nick Kralevich [Fri, 16 Nov 2012 16:45:51 +0000 (08:45 -0800)]
Merge "Support GNU_RELRO for static executables."

11 years agoMerge "Temporarily address gcc 4.7 breakage."
Nick Kralevich [Thu, 15 Nov 2012 23:57:15 +0000 (15:57 -0800)]
Merge "Temporarily address gcc 4.7 breakage."

11 years agoTemporarily address gcc 4.7 breakage.
Nick Kralevich [Thu, 15 Nov 2012 23:21:43 +0000 (15:21 -0800)]
Temporarily address gcc 4.7 breakage.

Change-Id: I8ebb2d5df2f8f8aedf252c94ff69505e61ed0a74

11 years agoSupport GNU_RELRO for static executables.
Nick Kralevich [Sat, 10 Nov 2012 00:51:36 +0000 (16:51 -0800)]
Support GNU_RELRO for static executables.

In 9ec0f03a0d0b17bbb94ac0b9fef6add28a133c3a, we added dynamic
linker support for GNU_RELRO protections. These protections
make certain regions of memory read-only, helping protect certain
data structures from accidental or deliberate modifications.

This change adds GNU_RELRO support to STATIC executables.  We can
determine if we're compiled with relro protections by examining
our own program headers, which is passed to us by the kernel
in the AT_PHDR and AT_PHNUM auxiliary vectors.

Parts of this code were stolen from the dynamic linker.

Change-Id: Ic17eb5f932218538ec25347ece314d4dc7549de1

11 years agoam 6542ac03: Merge "Add a memmove(3) benchmark."
Elliott Hughes [Sat, 10 Nov 2012 00:21:08 +0000 (16:21 -0800)]
am 6542ac03: Merge "Add a memmove(3) benchmark."

* commit '6542ac0380581e0cd0ad47e2763b732d93e9d6bd':
  Add a memmove(3) benchmark.

11 years agoMerge "Add a memmove(3) benchmark."
Elliott Hughes [Sat, 10 Nov 2012 00:17:34 +0000 (16:17 -0800)]
Merge "Add a memmove(3) benchmark."

11 years agoam b62e2770: Merge "Add optimized version of memset for Cortex A9"
Elliott Hughes [Fri, 9 Nov 2012 23:15:09 +0000 (15:15 -0800)]
am b62e2770: Merge "Add optimized version of memset for Cortex A9"

* commit 'b62e2770e7c41f9cbe41acca4f25966eea2bc533':
  Add optimized version of memset for Cortex A9

11 years agoMerge "Add optimized version of memset for Cortex A9"
Elliott Hughes [Fri, 9 Nov 2012 23:06:50 +0000 (15:06 -0800)]
Merge "Add optimized version of memset for Cortex A9"

11 years agoAdd optimized version of memset for Cortex A9
Henrik Smiding [Fri, 5 Nov 2010 14:07:53 +0000 (15:07 +0100)]
Add optimized version of memset for Cortex A9

Adds new code to function memset, optimized for Cortex A9.

Copyright (C) ST-Ericsson SA 2010

Added neon implementation

Author: Henrik Smiding henrik.smiding@stericsson.com for ST-Ericsson.

Change-Id: Id3c87767953439269040e15bd30a27aba709aef6
Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
11 years agoAdd a memmove(3) benchmark.
Elliott Hughes [Fri, 9 Nov 2012 22:59:21 +0000 (14:59 -0800)]
Add a memmove(3) benchmark.

Change-Id: I9c0ffae0b5aae29521b7e68e5ce2318b5a401cba

11 years agoam 49677dec: Merge "Add optimized version of memcpy for Cortex A9"
Elliott Hughes [Fri, 9 Nov 2012 02:13:30 +0000 (18:13 -0800)]
am 49677dec: Merge "Add optimized version of memcpy for Cortex A9"

* commit '49677deca2c2984ae6c0a3df8fbada7132e82940':
  Add optimized version of memcpy for Cortex A9

11 years agoMerge "Add optimized version of memcpy for Cortex A9"
Elliott Hughes [Fri, 9 Nov 2012 02:04:27 +0000 (18:04 -0800)]
Merge "Add optimized version of memcpy for Cortex A9"

11 years agoAdd optimized version of memcpy for Cortex A9
Henrik Smiding [Mon, 17 Jan 2011 15:05:41 +0000 (16:05 +0100)]
Add optimized version of memcpy for Cortex A9

Adds new code to memcpy function, optimized for Cortex A9.
Adds new ARM-only loop, for operations where source and
destination are aligned.

Copyright (C) ST-Ericsson SA 2010

Modified neon implementation to fit Cortex A9 cache line size,
for those running 32 bytes L2 cache line size.
Also split the implementation in aligned and unaligned access,
for those that allows unaligned memory access with Neon.
For totally aligned operations, arm-only code is used.

Change-Id: I95ebf6164cd6486b12a7e3e98e369db21e7e18d2
Author: Henrik Smiding henrik.smiding@stericsson.com for ST-Ericsson.
Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
11 years agoam c2132915: Merge "Add optimized version of memcmp for Cortex A9"
Elliott Hughes [Fri, 9 Nov 2012 01:53:41 +0000 (17:53 -0800)]
am c2132915: Merge "Add optimized version of memcmp for Cortex A9"

* commit 'c2132915158014f578c3f003c9399961fe8d6da2':
  Add optimized version of memcmp for Cortex A9

11 years agoMerge "Add optimized version of memcmp for Cortex A9"
Elliott Hughes [Fri, 9 Nov 2012 01:48:18 +0000 (17:48 -0800)]
Merge "Add optimized version of memcmp for Cortex A9"

11 years agoam 7aca3103: Merge "Simple google3-compatible benchmarking."
Elliott Hughes [Fri, 9 Nov 2012 00:31:13 +0000 (16:31 -0800)]
am 7aca3103: Merge "Simple google3-compatible benchmarking."

* commit '7aca3103069d7603cff47db7141b64f6a9d94f86':
  Simple google3-compatible benchmarking.

11 years agoMerge "Simple google3-compatible benchmarking."
Elliott Hughes [Fri, 9 Nov 2012 00:26:45 +0000 (16:26 -0800)]
Merge "Simple google3-compatible benchmarking."

11 years agoSimple google3-compatible benchmarking.
Elliott Hughes [Thu, 8 Nov 2012 23:37:43 +0000 (15:37 -0800)]
Simple google3-compatible benchmarking.

Based on our open-source RE2 benchmarking code.

Includes benchmarks for a handful of <string.h> functions.

Change-Id: I30eb70d25dbf4ad5f2ca44976a8ce3b1ff7dad01

11 years agoam d460f3f1: Merge "Tests for string routines."
Elliott Hughes [Thu, 8 Nov 2012 17:29:33 +0000 (09:29 -0800)]
am d460f3f1: Merge "Tests for string routines."

* commit 'd460f3f1af80af40d8c3fab12a68459d8d1ec4c5':
  Tests for string routines.

11 years agoMerge "Tests for string routines."
Elliott Hughes [Thu, 8 Nov 2012 17:15:22 +0000 (09:15 -0800)]
Merge "Tests for string routines."

11 years agoam 5408ac3c: Merge "Fix dlopen_library_with_only_gnu_hash_Test."
Elliott Hughes [Thu, 8 Nov 2012 02:31:37 +0000 (18:31 -0800)]
am 5408ac3c: Merge "Fix dlopen_library_with_only_gnu_hash_Test."

* commit '5408ac3c8dfe4857985b94fb7bd883fd3899c48b':
  Fix dlopen_library_with_only_gnu_hash_Test.

11 years agoMerge "Fix dlopen_library_with_only_gnu_hash_Test."
Elliott Hughes [Thu, 8 Nov 2012 02:19:00 +0000 (18:19 -0800)]
Merge "Fix dlopen_library_with_only_gnu_hash_Test."

11 years agoFix dlopen_library_with_only_gnu_hash_Test.
Elliott Hughes [Thu, 8 Nov 2012 02:16:02 +0000 (18:16 -0800)]
Fix dlopen_library_with_only_gnu_hash_Test.

Change-Id: Id3395f155587cfa74061f97a2cb4c6a6e59c13dc

11 years agoTests for string routines.
Anna Tikhonova [Fri, 5 Oct 2012 11:21:11 +0000 (15:21 +0400)]
Tests for string routines.

Change-Id: I24068a228f59df1c3b758c5b2026a09720490616
Signed-off-by: Anna Tikhonova <anna.tikhonova@intel.com>
11 years agoam 414aadc7: am 3bf2fcf9: Reconcile with jb-mr1-factory-release jb-mr1-release -...
The Android Open Source Project [Tue, 6 Nov 2012 19:16:38 +0000 (11:16 -0800)]
am 414aadc7: am 3bf2fcf9: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge

* commit '414aadc79de68713e0a80a033c03b651615176f8':

11 years agoam 3bf2fcf9: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
The Android Open Source Project [Tue, 6 Nov 2012 19:13:52 +0000 (11:13 -0800)]
am 3bf2fcf9: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge

* commit '3bf2fcf9a2bc811bbee194b19f2a00c4cfb24701':
  Revert "Update ion header"
  :Revert "Update ion header"
  Revert "Upgrade to dlmalloc 2.8.5."
  Revert "Restore posix_memalign"
  When compiling with clang, don't "fortify_source" the strlcpy and strlcat.
  When compiling with clang, don't "fortify_source" the strlen.
  Revert "Fix the clang build: this compiler doesn't support the gnu_inline function attribute"
  Update msm_camera.h to version that supports instance handle based lookup
  Replace ALL_PREBUILTS with BUILD_PREBUILT

11 years agoReconcile with jb-mr1-factory-release jb-mr1-release - do not merge
The Android Open Source Project [Tue, 6 Nov 2012 19:12:01 +0000 (11:12 -0800)]
Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge

Change-Id: I8a58a6aebc81829d15af6802f16d956cad2d39c8

11 years agoam 604a163e: Merge "Rewrite <fenv.h> for ARM."
Elliott Hughes [Tue, 6 Nov 2012 00:51:53 +0000 (16:51 -0800)]
am 604a163e: Merge "Rewrite <fenv.h> for ARM."

* commit '604a163e4c7724f881605fdbda94db4f7c8f0e7a':
  Rewrite <fenv.h> for ARM.

11 years agoMerge "Rewrite <fenv.h> for ARM."
Elliott Hughes [Tue, 6 Nov 2012 00:43:34 +0000 (16:43 -0800)]
Merge "Rewrite <fenv.h> for ARM."

11 years agoam bb91e9fb: Merge "Upgrade to tzdata2012i."
Elliott Hughes [Mon, 5 Nov 2012 18:57:20 +0000 (10:57 -0800)]
am bb91e9fb: Merge "Upgrade to tzdata2012i."

* commit 'bb91e9fb96ec6ea8a6ebcf17bf70f66f957df30b':
  Upgrade to tzdata2012i.

11 years agoMerge "Upgrade to tzdata2012i."
Elliott Hughes [Mon, 5 Nov 2012 18:42:57 +0000 (10:42 -0800)]
Merge "Upgrade to tzdata2012i."

11 years agoam a41e6426: Merge "Tone down some of the overly-verbose linker logging."
Elliott Hughes [Mon, 5 Nov 2012 17:19:57 +0000 (09:19 -0800)]
am a41e6426: Merge "Tone down some of the overly-verbose linker logging."

* commit 'a41e6426073c57881f49bdaec46ca90a5b164401':
  Tone down some of the overly-verbose linker logging.

11 years agoMerge "Tone down some of the overly-verbose linker logging."
Elliott Hughes [Mon, 5 Nov 2012 17:13:31 +0000 (09:13 -0800)]
Merge "Tone down some of the overly-verbose linker logging."

11 years agoTone down some of the overly-verbose linker logging.
Elliott Hughes [Mon, 5 Nov 2012 17:11:43 +0000 (09:11 -0800)]
Tone down some of the overly-verbose linker logging.

We don't need to see every dlopen(3)/dlsym(3) failure unless LD_DEBUG is on.

Change-Id: I1edfe8b72f32ff54dd30e1acf32e20d470d5e9f7

11 years agoUpgrade to tzdata2012i.
Elliott Hughes [Mon, 5 Nov 2012 16:53:28 +0000 (08:53 -0800)]
Upgrade to tzdata2012i.

Also support GPG signature verification of updates, and fix remaining
pylint complaints.

The 2012i release of the tz data reflects the following changes recently
circulated on the tz mailing list:

* Cuba switches from DST [2012-11-04] at 01:00.  (Thanks to Steffen Thorsen.)

Change-Id: Ie81d395afa40aa217a0196aad8ca1f9a870bbc31

11 years agoRewrite <fenv.h> for ARM.
Elliott Hughes [Sat, 3 Nov 2012 00:05:20 +0000 (17:05 -0700)]
Rewrite <fenv.h> for ARM.

The old code was one big no-op.

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

11 years agoam 9df2e000: Merge "Cleaning the linker environment as we initialize it requires...
Elliott Hughes [Fri, 2 Nov 2012 20:56:00 +0000 (13:56 -0700)]
am 9df2e000: Merge "Cleaning the linker environment as we initialize it requires less API."

* commit '9df2e000b5d56b2e529656034d684e370aa6a8d1':
  Cleaning the linker environment as we initialize it requires less API.

11 years agoam 01271b18: Merge "Make dynamic linker debugging always available."
Elliott Hughes [Fri, 2 Nov 2012 20:55:59 +0000 (13:55 -0700)]
am 01271b18: Merge "Make dynamic linker debugging always available."

* commit '01271b1812f2cec8aaf3c105b9f960f027b33a95':
  Make dynamic linker debugging always available.

11 years agoMerge "Cleaning the linker environment as we initialize it requires less API."
Elliott Hughes [Fri, 2 Nov 2012 20:47:50 +0000 (13:47 -0700)]
Merge "Cleaning the linker environment as we initialize it requires less API."

11 years agoMerge "Make dynamic linker debugging always available."
Elliott Hughes [Fri, 2 Nov 2012 20:46:55 +0000 (13:46 -0700)]
Merge "Make dynamic linker debugging always available."

11 years agoMake dynamic linker debugging always available.
Elliott Hughes [Fri, 2 Nov 2012 19:37:13 +0000 (12:37 -0700)]
Make dynamic linker debugging always available.

If you need to build your own linker to get debugging, the debugging
is never available when you need it.

Change-Id: I5ff7e55753459d49a2990f25d9aa155e0b8602e0

11 years agoCleaning the linker environment as we initialize it requires less API.
Elliott Hughes [Fri, 2 Nov 2012 19:40:11 +0000 (12:40 -0700)]
Cleaning the linker environment as we initialize it requires less API.

Change-Id: I612fd699e46833a411589478564a1f859223c380

11 years agoam ed537239: Merge "Adjust symbol lookup for DT_SYMBOLIC case"
Elliott Hughes [Fri, 2 Nov 2012 18:37:40 +0000 (11:37 -0700)]
am ed537239: Merge "Adjust symbol lookup for DT_SYMBOLIC case"

* commit 'ed537239a94ebd11a8c262a319d81fd1f0d3f73f':
  Adjust symbol lookup for DT_SYMBOLIC case

11 years agoMerge "Adjust symbol lookup for DT_SYMBOLIC case"
Elliott Hughes [Fri, 2 Nov 2012 18:25:48 +0000 (11:25 -0700)]
Merge "Adjust symbol lookup for DT_SYMBOLIC case"

11 years agoAdjust symbol lookup for DT_SYMBOLIC case
Pavel Chupin [Wed, 31 Oct 2012 09:55:51 +0000 (13:55 +0400)]
Adjust symbol lookup for DT_SYMBOLIC case

According ELF spec re. DT_SYMBOLIC:
This element's presence in a shared object library alters the dynamic
linker's symbol resolution algorithm for references within the library.
Instead of starting a symbol search with the executable file, the
dynamic linker starts from the shared object itself. If the shared
object fails to supply the referenced symbol, the dynamic linker then
searches the executable file and other shared objects as usual.

This change implements the last part.

Change-Id: Iae95d53d455313a4306f11733941bcd3596ac85f
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
11 years agoam dc77a228: Merge "Allow dlopen("egl/blah.so")."
Elliott Hughes [Fri, 2 Nov 2012 06:08:27 +0000 (23:08 -0700)]
am dc77a228: Merge "Allow dlopen("egl/blah.so")."

* commit 'dc77a22850e31eb369ec9776c13c967566bf61d0':
  Allow dlopen("egl/blah.so").

11 years agoMerge "Allow dlopen("egl/blah.so")."
Elliott Hughes [Fri, 2 Nov 2012 06:01:57 +0000 (23:01 -0700)]
Merge "Allow dlopen("egl/blah.so")."

11 years agoAllow dlopen("egl/blah.so").
Elliott Hughes [Fri, 2 Nov 2012 05:59:19 +0000 (22:59 -0700)]
Allow dlopen("egl/blah.so").

NVIDIA binary blobs construct strings to pass to dlopen(3) that
contain '/' but require that we fall back to LD_LIBRARY_PATH.

Change-Id: Iad831899986baace6962f4b335eeb288250a1e22

11 years agoam e3c7b519: Merge "Don\'t corrupt the thread list if the main thread exits."
Elliott Hughes [Fri, 2 Nov 2012 00:37:04 +0000 (17:37 -0700)]
am e3c7b519: Merge "Don\'t corrupt the thread list if the main thread exits."

* commit 'e3c7b5192e65eeb0bd90bf884d3435ed9adfad0e':
  Don't corrupt the thread list if the main thread exits.

11 years agoMerge "Don't corrupt the thread list if the main thread exits."
Elliott Hughes [Fri, 2 Nov 2012 00:28:00 +0000 (17:28 -0700)]
Merge "Don't corrupt the thread list if the main thread exits."

11 years agoDon't corrupt the thread list if the main thread exits.
Elliott Hughes [Thu, 1 Nov 2012 23:33:29 +0000 (16:33 -0700)]
Don't corrupt the thread list if the main thread exits.

...and don't pass a non-heap pointer to free(3), either.

This patch replaces the "node** prev" with the clearer "node* prev"
style and fixes the null pointer dereference in the old code. That's
not sufficient to fix the reporter's bug, though. The pthread_internal_t*
for the main thread isn't heap-allocated --- __libc_init_tls causes a
pointer to a statically-allocated pthread_internal_t to be added to
the thread list.

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

11 years agoam d30116cf: Merge "Keep the dynamic linker\'s soinfo pools mostly read-only."
Elliott Hughes [Fri, 2 Nov 2012 00:00:13 +0000 (17:00 -0700)]
am d30116cf: Merge "Keep the dynamic linker\'s soinfo pools mostly read-only."

* commit 'd30116cf4a590e7bea3b73fa49bb27502a920819':
  Keep the dynamic linker's soinfo pools mostly read-only.

11 years agoMerge "Keep the dynamic linker's soinfo pools mostly read-only."
Elliott Hughes [Thu, 1 Nov 2012 23:49:37 +0000 (16:49 -0700)]
Merge "Keep the dynamic linker's soinfo pools mostly read-only."

11 years agoKeep the dynamic linker's soinfo pools mostly read-only.
Elliott Hughes [Thu, 1 Nov 2012 22:16:56 +0000 (15:16 -0700)]
Keep the dynamic linker's soinfo pools mostly read-only.

We'll need a lot more refactoring of this code before we can reduce
the granularity, but this is a step forward.

Change-Id: I07061720e734b571a8399c1d5b4f2f35cd681307

11 years agoam 064f862d: Merge "Stop defining our own PAGE_SIZE and PAGE_MASK, and test dlclose...
Elliott Hughes [Thu, 1 Nov 2012 21:14:00 +0000 (14:14 -0700)]
am 064f862d: Merge "Stop defining our own PAGE_SIZE and PAGE_MASK, and test dlclose(3) too."

* commit '064f862d557ab741575dfae479499a07ca0ab742':
  Stop defining our own PAGE_SIZE and PAGE_MASK, and test dlclose(3) too.

11 years agoMerge "Stop defining our own PAGE_SIZE and PAGE_MASK, and test dlclose(3) too."
Elliott Hughes [Thu, 1 Nov 2012 20:56:59 +0000 (13:56 -0700)]
Merge "Stop defining our own PAGE_SIZE and PAGE_MASK, and test dlclose(3) too."

11 years agoStop defining our own PAGE_SIZE and PAGE_MASK, and test dlclose(3) too.
Elliott Hughes [Thu, 1 Nov 2012 20:49:32 +0000 (13:49 -0700)]
Stop defining our own PAGE_SIZE and PAGE_MASK, and test dlclose(3) too.

Also remove an unnecessary #include and a now-obsolete TODO.

Change-Id: I36d923721e349a286934b9534090a67ce0786e7b

11 years agoam 0be1819b: Merge "Dynamically allocate soinfo-structs in linker"
Elliott Hughes [Thu, 1 Nov 2012 18:44:29 +0000 (11:44 -0700)]
am 0be1819b: Merge "Dynamically allocate soinfo-structs in linker"

* commit '0be1819b22b33fbedcb150f96a196ed096abe2fc':
  Dynamically allocate soinfo-structs in linker

11 years agoMerge "Dynamically allocate soinfo-structs in linker"
Elliott Hughes [Thu, 1 Nov 2012 18:36:01 +0000 (11:36 -0700)]
Merge "Dynamically allocate soinfo-structs in linker"

11 years agoDynamically allocate soinfo-structs in linker
Magnus Malmborn [Wed, 12 Sep 2012 11:00:55 +0000 (13:00 +0200)]
Dynamically allocate soinfo-structs in linker

Request memory from the system when needed instead of having a fixed
array for soinfo structs. Note that malloc() et al can't be used in
linker, so use mmap() instead.

Change-Id: I4b495995931d7752b0e8c944e64d1fe41b9f7144

11 years agoam c0ac7eba: Merge "Reject .so files with no sysv hash table."
Elliott Hughes [Wed, 31 Oct 2012 22:13:30 +0000 (15:13 -0700)]
am c0ac7eba: Merge "Reject .so files with no sysv hash table."

* commit 'c0ac7eba934fb88f321c75a71312ea482e9a85e9':
  Reject .so files with no sysv hash table.

11 years agoMerge "Reject .so files with no sysv hash table."
Elliott Hughes [Wed, 31 Oct 2012 22:09:45 +0000 (15:09 -0700)]
Merge "Reject .so files with no sysv hash table."

11 years agoReject .so files with no sysv hash table.
Elliott Hughes [Wed, 31 Oct 2012 21:20:03 +0000 (14:20 -0700)]
Reject .so files with no sysv hash table.

Also ensure that dlopen(3) errors always include the name of the library we
failed to open.

Also fix a bug where we'd fall back to searching LD_LIBRARY_PATH and the
built-in paths for names that include slashes.

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

11 years agoam b46530bd: Merge "Start cleaning up libm."
Elliott Hughes [Wed, 31 Oct 2012 20:51:50 +0000 (13:51 -0700)]
am b46530bd: Merge "Start cleaning up libm."

* commit 'b46530bd3e5984047bd780f5d3a6a5ebabd9f02d':
  Start cleaning up libm.

11 years agoMerge "Start cleaning up libm."
Elliott Hughes [Wed, 31 Oct 2012 20:43:41 +0000 (13:43 -0700)]
Merge "Start cleaning up libm."

11 years agoStart cleaning up libm.
Elliott Hughes [Wed, 31 Oct 2012 20:26:46 +0000 (13:26 -0700)]
Start cleaning up libm.

We have two copies of fenv.h for every architecture, one of which
isn't used. We also have unused makefiles and files for architectures
we don't support.

This patch removes all the obviously useless files.

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

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Wed, 31 Oct 2012 16:15:16 +0000 (09:15 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: Ice07f7813d823b0419153d5ac321ad784a690af4

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 31 Oct 2012 03:11:57 +0000 (20:11 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoam 084be591: Merge "linker: handle R_ARM_COPY relocations in a proper way"
Elliott Hughes [Wed, 31 Oct 2012 00:18:04 +0000 (17:18 -0700)]
am 084be591: Merge "linker: handle R_ARM_COPY relocations in a proper way"

* commit '084be591923d3d509cea0a0f4b11b073e362d730':
  linker: handle R_ARM_COPY relocations in a proper way

11 years agoMerge "linker: handle R_ARM_COPY relocations in a proper way"
Elliott Hughes [Wed, 31 Oct 2012 00:10:30 +0000 (17:10 -0700)]
Merge "linker: handle R_ARM_COPY relocations in a proper way"

11 years agolinker: handle R_ARM_COPY relocations in a proper way
Ard Biesheuvel [Thu, 30 Aug 2012 10:48:32 +0000 (12:48 +0200)]
linker: handle R_ARM_COPY relocations in a proper way

If an executable contain copy relocations, other references
to the symbol it points to should be preempted and made to
point to the copy instead.

Also, the linker should make sure the target area has
sufficient space to contain the copy. It also checks
whether the library that supplies the symbol is built
with -Bsymbolic, and errors out if this is the case.

Change-Id: If135c83590092741cfd8f82f54816f363a4a4a3b
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@gmail.com>
11 years agoam 155e8d1d: Merge "More dynamic linker cleanup."
Elliott Hughes [Tue, 30 Oct 2012 23:56:29 +0000 (16:56 -0700)]
am 155e8d1d: Merge "More dynamic linker cleanup."

* commit '155e8d1df5b8fdfeabda3e7b61d95beb5b8d1467':
  More dynamic linker cleanup.

11 years agoMerge "More dynamic linker cleanup."
Elliott Hughes [Tue, 30 Oct 2012 23:41:00 +0000 (16:41 -0700)]
Merge "More dynamic linker cleanup."

11 years agoMore dynamic linker cleanup.
Elliott Hughes [Tue, 30 Oct 2012 00:37:13 +0000 (17:37 -0700)]
More dynamic linker cleanup.

I still want to break linker_format out into its own library so we can reuse
it for malloc debugging and so forth. (There are many similar pieces of code
in bionic, but the linker's one seems to be the most complete/functional.)

Change-Id: If3721853d28937c8e821ca1d23cf200e228a409a

11 years agoMerge commit 'bd8ee3d3' into mm
Elliott Hughes [Tue, 30 Oct 2012 22:20:13 +0000 (15:20 -0700)]
Merge commit 'bd8ee3d3' into mm

11 years agoam a811d7a8: Upgrade to tzdata2012h.
Elliott Hughes [Tue, 30 Oct 2012 21:30:12 +0000 (14:30 -0700)]
am a811d7a8: Upgrade to tzdata2012h.

* commit 'a811d7a8e638ca49aee704c613cb9f1e03c3698d':
  Upgrade to tzdata2012h.

11 years agoam 06b59610: Merge "Fix bug in pthread_join, pthread_exit, pthread_detach"
Elliott Hughes [Tue, 30 Oct 2012 20:04:23 +0000 (13:04 -0700)]
am 06b59610: Merge "Fix bug in pthread_join, pthread_exit, pthread_detach"

* commit '06b596104a9ed3ac089abd00186a5698d7e8544f':
  Fix bug in pthread_join, pthread_exit, pthread_detach