OSDN Git Service

android-x86/bionic.git
14 years agobionic: add processed kernel headers a1026.h and tpa2018d1.h
Iliyan Malchev [Tue, 2 Feb 2010 19:56:26 +0000 (11:56 -0800)]
bionic: add processed kernel headers a1026.h and tpa2018d1.h

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agoRevert "Add qsort_r() implementation to the C library."
Mathias Agopian [Fri, 4 Dec 2009 00:14:40 +0000 (16:14 -0800)]
Revert "Add qsort_r() implementation to the C library."

This reverts commit 754c178ae551aedcbbfd3bfd1c1c3b710d9ad989.

Turns out we don't need it afterall (needed a stable sort anyways).
So, we'll make that change in the dev branch instead.

14 years agoAdd qsort_r() implementation to the C library.
David 'Digit' Turner [Thu, 3 Dec 2009 01:38:41 +0000 (17:38 -0800)]
Add qsort_r() implementation to the C library.

NOTE: This replaces qsort.c with the FreeBSD version. While
      the patch changes the source, it should not alter the
      implementation that should use the exact same algorithm.

14 years agoMerge change Ifa58a406 into eclair
Android (Google) Code Review [Thu, 3 Dec 2009 10:09:47 +0000 (02:09 -0800)]
Merge change Ifa58a406 into eclair

* changes:
  libc: kernel: Update msm_kgsl.h header

14 years agoAdd support for R_ARM_REL32 to the dynamic linker.
David 'Digit' Turner [Wed, 2 Dec 2009 18:54:53 +0000 (10:54 -0800)]
Add support for R_ARM_REL32 to the dynamic linker.

Merged from eclair-mr2

14 years agolibc: kernel: Update msm_kgsl.h header
Dima Zavin [Thu, 19 Nov 2009 17:55:56 +0000 (09:55 -0800)]
libc: kernel: Update msm_kgsl.h header

Change-Id: Ifa58a406c9419c5ad73a1f9456add6dd54bfb2ba
Signed-off-by: Dima Zavin <dima@android.com>
14 years agoRebuild the time zone data files in 32-bit format instead of 64-bit.
Eric Fischer [Tue, 24 Nov 2009 21:52:05 +0000 (13:52 -0800)]
Rebuild the time zone data files in 32-bit format instead of 64-bit.

The 64-bit data is not currently being used and more than doubles the size.

14 years agoCorrect the raw offsets in the time zone index for a few zones.
Eric Fischer [Tue, 24 Nov 2009 00:28:11 +0000 (16:28 -0800)]
Correct the raw offsets in the time zone index for a few zones.

ZoneCompactor was using the system time zone database to get the offsets
instead of using the data it was compiling, so for newly added or recently
changed zones the index could be inconsistent with the data.

Affected zones: San_Luis, Casey, Davis, Mawson, Kathmandu, Novokuznetsk

14 years agoUpdate zoneinfo time zone data to version 2009s
Eric Fischer [Fri, 20 Nov 2009 22:39:55 +0000 (14:39 -0800)]
Update zoneinfo time zone data to version 2009s

http://b/issue?id=2272477

14 years agolibc: kernel: Update msm_kgsl.h header
Dima Zavin [Fri, 13 Nov 2009 10:29:17 +0000 (02:29 -0800)]
libc: kernel: Update msm_kgsl.h header

Change-Id: I8b22bcb4816fca5e0b92fee4b2ccb0ef135be5a9
Signed-off-by: Dima Zavin <dima@android.com>
14 years agoImprove memcpy performance from 290 MiB/s to 340 MiB/s (17% improvment)
Mathias Agopian [Wed, 28 Oct 2009 09:54:37 +0000 (02:54 -0700)]
Improve memcpy performance from 290 MiB/s to 340 MiB/s (17% improvment)

use 64 bytes cache lines, reduce the main loop to 64-bytes instead of
128 bytes and adjust the prefetch distance to the optimal value.

14 years agoMerge changes Ibcba4b4f,I9af341e1 into eclair
Android (Google) Code Review [Sat, 24 Oct 2009 01:27:57 +0000 (21:27 -0400)]
Merge changes Ibcba4b4f,I9af341e1 into eclair

* changes:
  bionic/linker: make the buddy allocator compute max_order on its own
  bionic/linker: change the buddy allocator to take a handle to the managed area

14 years agoWrap ARM abort() to improve stack trace.
Andy McFadden [Thu, 15 Oct 2009 23:07:43 +0000 (16:07 -0700)]
Wrap ARM abort() to improve stack trace.

The code generated for Thumb and Thumb2 targets has different handling
for abort().  Because abort() is "noreturn", it doesn't need to preserve
the callee-save registers.  The Thumb2 version trashes LR and makes it
impossible to figure out who called abort().

This inserts a trivial stub function; net effect is stack traces are
reasonable after an abort().

For bug 2191452.

Eclair branch Dr. No approved by: hiroshi

14 years agobionic/linker: make the buddy allocator compute max_order on its own
Iliyan Malchev [Mon, 19 Oct 2009 21:25:17 +0000 (14:25 -0700)]
bionic/linker: make the buddy allocator compute max_order on its own

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agobionic/linker: change the buddy allocator to take a handle to the managed area
Iliyan Malchev [Sat, 17 Oct 2009 00:50:42 +0000 (17:50 -0700)]
bionic/linker: change the buddy allocator to take a handle to the managed area

-- rename struct ba_info to struct ba
-- move the static ba descriptor from ba.c to linker.c and rename it ba_prelink
-- ba_init, ba_allocate, ba_free, ba_start_addr, and ba_len all take a pointer
   to struct ba

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agouse local symbols in memset so it doesn't screw up profiling
Mathias Agopian [Mon, 19 Oct 2009 23:34:38 +0000 (16:34 -0700)]
use local symbols in memset so it doesn't screw up profiling

14 years agoMerge change I3c998761 into eclair
Android (Google) Code Review [Fri, 16 Oct 2009 19:27:36 +0000 (15:27 -0400)]
Merge change I3c998761 into eclair

* changes:
  Allow the dynamic linker to relocate references to thumb symbols in NDK libraries.

14 years agolibc: kernel: add linux/msm_q6venc.h kernel include for qsd8k h/w video encode
Dima Zavin [Wed, 14 Oct 2009 03:57:16 +0000 (20:57 -0700)]
libc: kernel: add linux/msm_q6venc.h kernel include for qsd8k h/w video encode

Change-Id: I58c6eb0d417d5a30fa245f693304a147631fd07f
Signed-off-by: Dima Zavin <dima@android.com>
14 years agoupdate msm_camera.h
Iliyan Malchev [Wed, 14 Oct 2009 03:28:29 +0000 (20:28 -0700)]
update msm_camera.h

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agoAllow the dynamic linker to relocate references to thumb symbols in NDK libraries.
David 'Digit' Turner [Tue, 13 Oct 2009 23:55:18 +0000 (16:55 -0700)]
Allow the dynamic linker to relocate references to thumb symbols in NDK libraries.

The lowest bit of the symbol's value should be ignored when looking at UNDEF symbols
for correctness. It is used as an ARM/Thumb flag by the linker.

14 years agolibc: kernel: Update linux/msm_kgsl.h to latest
Dima Zavin [Sat, 3 Oct 2009 23:38:49 +0000 (16:38 -0700)]
libc: kernel: Update linux/msm_kgsl.h to latest

Change-Id: I530cea1110fc6e6ccf150e6b176e708030ce8a94
Signed-off-by: Dima Zavin <dima@android.com>
14 years agofix [2170898] abort() doesn't print a stack tarce
Mathias Agopian [Tue, 6 Oct 2009 22:35:22 +0000 (15:35 -0700)]
fix [2170898] abort() doesn't print a stack tarce

the issue here is that abort() can be called from anywhere, in particular
from malloc or free. When we try to use the debug_log functions, these
can end up calling into some code (like malloc/free) that called abort()
in the first place and end up in an infinite recursion loop.

14 years agoRe-enable ARMv7 memcpy implementation.
David 'Digit' Turner [Mon, 5 Oct 2009 21:11:55 +0000 (14:11 -0700)]
Re-enable ARMv7 memcpy implementation.

Do not submit this patch before the one that modifies the Android emulator to
work-around a weird ARMv7 emulation issue. This is done to temporarily re-allow
the -user builds needed for QA.

14 years agoFix armv7-user builds by disabling the ARMv7-optimized memcpy.
David 'Digit' Turner [Sat, 3 Oct 2009 02:13:27 +0000 (19:13 -0700)]
Fix armv7-user builds by disabling the ARMv7-optimized memcpy.

This is required to work-around some corny bugs in ARMv7 emulation.

The emulation itself is required to run the dex pre-optimization pass
for -user builds.

14 years agoMerge changes I3bd27087,I0c9ec550,I3a0e5e86 into eclair
Android (Google) Code Review [Tue, 29 Sep 2009 22:21:53 +0000 (18:21 -0400)]
Merge changes I3bd27087,I0c9ec550,I3a0e5e86 into eclair

* changes:
  bionic/linker: allow resolving of symbols from library back to executable
  bionic/linker: change lookup() to return soinfo, not base
  Revert "Revert "bionic/linker: fix symbol lookup during relocations""

14 years agoMerge change I2a7ad975 into eclair
Android (Google) Code Review [Tue, 29 Sep 2009 22:04:51 +0000 (18:04 -0400)]
Merge change I2a7ad975 into eclair

* changes:
  Fix ABI breakage in libc.so and libm.so between 1.6 and Eclair.

14 years agoFix ABI breakage in libc.so and libm.so between 1.6 and Eclair.
David 'Digit' Turner [Tue, 29 Sep 2009 21:43:38 +0000 (14:43 -0700)]
Fix ABI breakage in libc.so and libm.so between 1.6 and Eclair.

For a detailed description of the problem and why this fix is
needed, plrease read the comments in libgcc_compat.c

14 years agobionic/linker: allow resolving of symbols from library back to executable
Iliyan Malchev [Tue, 29 Sep 2009 18:43:20 +0000 (11:43 -0700)]
bionic/linker: allow resolving of symbols from library back to executable

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agobionic/linker: change lookup() to return soinfo, not base
Iliyan Malchev [Tue, 29 Sep 2009 01:21:30 +0000 (18:21 -0700)]
bionic/linker: change lookup() to return soinfo, not base

14 years agoRevert "Revert "bionic/linker: fix symbol lookup during relocations""
Iliyan Malchev [Tue, 29 Sep 2009 02:38:04 +0000 (19:38 -0700)]
Revert "Revert "bionic/linker: fix symbol lookup during relocations""

This reverts commit 33acbf0719c4f3db059bc9e1f52cf554a5d0295f.

14 years agoNEON optimized memcpy.
Mathias Agopian [Mon, 28 Sep 2009 00:46:43 +0000 (17:46 -0700)]
NEON optimized memcpy.

372 MB/s for large transfers, 440 MB/s for smaller ones down to 1KB. 130 MB/s for very small transfers ( < 32 bytes )
Performance is similar with non-congruent buffers.

14 years agoRevert "bionic/linker: fix symbol lookup during relocations"
Mathias Agopian [Mon, 28 Sep 2009 05:04:15 +0000 (22:04 -0700)]
Revert "bionic/linker: fix symbol lookup during relocations"

This reverts commit 8d0c0334f1106d36f2fd5c1cf6d5dc75a4b88850.

14 years agoMerge change 27075 into eclair
Android (Google) Code Review [Mon, 28 Sep 2009 00:23:22 +0000 (20:23 -0400)]
Merge change 27075 into eclair

* changes:
  bionic/linker: fix symbol lookup during relocations

14 years agobionic/linker: fix symbol lookup during relocations
Iliyan Malchev [Fri, 25 Sep 2009 00:14:33 +0000 (17:14 -0700)]
bionic/linker: fix symbol lookup during relocations

When resolving relocations while loading a library, the linker used to find
symbols by looking them up in the list of all linked libraries for the current
process, as opposed to following just the library's DT_NEEDED entries.  This
can cause a problem where the symbol is picked up from the wrong library.

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agoRemove NEON optimizations for memcpy
David 'Digit' Turner [Sun, 27 Sep 2009 14:08:46 +0000 (07:08 -0700)]
Remove NEON optimizations for memcpy

14 years agoFix a typo that resulted in a crash in the boot sequence
David 'Digit' Turner [Wed, 23 Sep 2009 22:56:50 +0000 (15:56 -0700)]
Fix a typo that resulted in a crash in the boot sequence

14 years agoMerge change 26419 into eclair
Android (Google) Code Review [Wed, 23 Sep 2009 19:10:02 +0000 (15:10 -0400)]
Merge change 26419 into eclair

* changes:
  Add pthread_mutex_lock_timeout_np

14 years agoAdd pthread_mutex_lock_timeout_np
David 'Digit' Turner [Tue, 22 Sep 2009 19:40:22 +0000 (12:40 -0700)]
Add pthread_mutex_lock_timeout_np

This is used to perform a mutex lock for a given amount of
milliseconds before giving up. Using the _np prefix since this
is absolutely not portable.

Also remove a compiler warning in pthread_attr_getstackaddr

14 years agoFix TLS access for ARMv6 and beyond.
David 'Digit' Turner [Fri, 18 Sep 2009 20:35:05 +0000 (13:35 -0700)]
Fix TLS access for ARMv6 and beyond.

For performance reasons, we don't call the kernel helper. Instead, we directly
access the TLS register on ARMv6 and higher. For ARMv5TE, keep using the hard-coded
address populated by the kernel on each task switch.

NOTE: Since we don't call the kernel helper, this must precisely match your
      kernel configuration. This is controlled by setting the ARCH_ARM_HAVE_TLS_REGISTER
      variable to 'true' in your board configuration file.

14 years agolibc: kernel-headers: update msm_mdp.h to include premultiplied alpha
Dima Zavin [Mon, 21 Sep 2009 02:11:02 +0000 (19:11 -0700)]
libc: kernel-headers: update msm_mdp.h to include premultiplied alpha

Change-Id: I653d638353d9246287bcf568bbffd0f5dbc64019
Signed-off-by: Dima Zavin <dima@android.com>
14 years agoAdd stack unwinding directives to assembly leaf functions.
Ben Cheng [Tue, 15 Sep 2009 20:41:14 +0000 (13:41 -0700)]
Add stack unwinding directives to assembly leaf functions.

So that the real culprit of native crashes can surface in the stack trace.

14 years agobionic: update processed msm_camera.h
Iliyan Malchev [Fri, 11 Sep 2009 07:29:59 +0000 (00:29 -0700)]
bionic: update processed msm_camera.h

Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agoMerge change 24463 into eclair
Android (Google) Code Review [Thu, 10 Sep 2009 00:53:15 +0000 (20:53 -0400)]
Merge change 24463 into eclair

* changes:
  Fix an infinite loop in time2sub.

14 years agoFix an infinite loop in time2sub.
David 'Digit' Turner [Thu, 10 Sep 2009 00:41:59 +0000 (17:41 -0700)]
Fix an infinite loop in time2sub.

The problem is that time_t is signed, and the original code relied on the
fact that (X + c < X) in case of overflow for c >= 0. Unfortunately, this
condition is only guaranteed by the standard for unsigned arithmetic, and
the gcc 4.4.0 optimizer did completely remove the corresponding test from
the code. This resulted in a missing boundary check, and an infinite loop.

The problem is solved by testing explicitely for TIME_T_MIN and TIME_T_MAX
in the loop that uses this.

Also fix increment_overflow and long_increment_overflow which were buggy
for exactly the same reasons.

Note: a similar fix is needed for system/core/libcutils

14 years agolibc: add void to clock() function prototype
Erik Gilling [Wed, 9 Sep 2009 21:58:19 +0000 (14:58 -0700)]
libc: add void to clock() function prototype

Signed-off-by: Erik Gilling <konkers@android.com>
14 years agoMerge change 22848 into eclair
Android (Google) Code Review [Wed, 2 Sep 2009 22:06:32 +0000 (15:06 -0700)]
Merge change 22848 into eclair

* changes:
  Neon-optimized versions of memcpy.

14 years agoNeon-optimized versions of memcpy.
David 'Digit' Turner [Wed, 26 Aug 2009 19:50:42 +0000 (21:50 +0200)]
Neon-optimized versions of memcpy.

This optimization come from the external 0xdroid repository.
Original patch can be found here:

http://gitorious.org/0xdroid/bionic/commit/ebafe41c2c02f8c09a3c1d7746047083df180ac5

14 years agolibc: kernel-headers: Add qdsp6 vdec header
Dima Zavin [Mon, 31 Aug 2009 02:17:26 +0000 (19:17 -0700)]
libc: kernel-headers: Add qdsp6 vdec header

Change-Id: Ib6cd13e86cea84c1cc0901dee3e9ef05eb8279cd
Signed-off-by: Dima Zavin <dima@android.com>
15 years agobionic: add sanitized lightsensor kernel header
Iliyan Malchev [Thu, 20 Aug 2009 23:31:28 +0000 (16:31 -0700)]
bionic: add sanitized lightsensor kernel header

Signed-off-by: Iliyan Malchev <malchev@google.com>
15 years agoUpdate pmem/hw3d/mdp headers
Dima Zavin [Thu, 20 Aug 2009 01:48:57 +0000 (18:48 -0700)]
Update pmem/hw3d/mdp headers

Signed-off-by: Dima Zavin <dima@android.com>
15 years agobionic: linker: add error message if link failed due to previous error
Erik Gilling [Thu, 13 Aug 2009 23:05:30 +0000 (16:05 -0700)]
bionic: linker: add error message if link failed due to previous error

Signed-off-by: Erik Gilling <konkers@android.com>
15 years agoMerge change 9642
Android (Google) Code Review [Sat, 8 Aug 2009 16:46:30 +0000 (09:46 -0700)]
Merge change 9642

* changes:
  Don't request IPv6 addresses if AI_ADDRCONFIG is specified and the system has no IPv6 connectivity.

15 years agomerge from open-source master
Jean-Baptiste Queru [Sat, 8 Aug 2009 00:04:35 +0000 (17:04 -0700)]
merge from open-source master

15 years agoMerge change 10057
Android Code Review [Fri, 7 Aug 2009 23:43:33 +0000 (16:43 -0700)]
Merge change 10057

* changes:
  Add mspace_merge_objects

15 years agolibc: add linux/msm_kgsl.h kernel include
Dima Zavin [Thu, 6 Aug 2009 00:51:29 +0000 (17:51 -0700)]
libc: add linux/msm_kgsl.h kernel include

Signed-off-by: Dima Zavin <dima@android.com>
15 years agolibc: kernel: let clean_header tool take path to kernel originals as argument
Dima Zavin [Thu, 6 Aug 2009 00:55:30 +0000 (17:55 -0700)]
libc: kernel: let clean_header tool take path to kernel originals as argument

Signed-off-by: Dima Zavin <dima@android.com>
15 years agoDon't request IPv6 addresses if AI_ADDRCONFIG is specified and the system has no...
Lorenzo Colitti [Tue, 4 Aug 2009 05:36:31 +0000 (22:36 -0700)]
Don't request IPv6 addresses if AI_ADDRCONFIG is specified and the system has no IPv6 connectivity.

15 years agoMerge change 9546
Android (Google) Code Review [Tue, 4 Aug 2009 17:06:58 +0000 (10:06 -0700)]
Merge change 9546

* changes:
  Fix strftime to use localized month names.

15 years agomerge from open-source master
Jean-Baptiste Queru [Tue, 4 Aug 2009 16:00:15 +0000 (09:00 -0700)]
merge from open-source master

15 years agoFix strftime to use localized month names.
Eric Fischer [Mon, 3 Aug 2009 22:43:18 +0000 (15:43 -0700)]
Fix strftime to use localized month names.

It was using the default locale (capital L) instead of the
current locale (lowercase l).

Bug 2030864

15 years agomerge from donut
Jean-Baptiste Queru [Mon, 3 Aug 2009 14:45:26 +0000 (07:45 -0700)]
merge from donut

15 years agoam fde8642f: bionic/linker: keep track of opened libraries by basename
Erik Gilling [Thu, 30 Jul 2009 13:57:18 +0000 (06:57 -0700)]
am fde8642f: bionic/linker: keep track of opened libraries by basename

Merge commit 'fde8642fc43bdd224e43e5ee9583a49a758fb03c'

* commit 'fde8642fc43bdd224e43e5ee9583a49a758fb03c':
  bionic/linker: keep track of opened libraries by basename

15 years agomerge from donut
Jean-Baptiste Queru [Wed, 29 Jul 2009 21:56:48 +0000 (14:56 -0700)]
merge from donut

15 years agoam 22b5eb85: Merge change 8281 into donut
Android (Google) Code Review [Wed, 29 Jul 2009 21:47:55 +0000 (14:47 -0700)]
am 22b5eb85: Merge change 8281 into donut

Merge commit '22b5eb858dcbb537f2522ad920ca793348d574a2'

* commit '22b5eb858dcbb537f2522ad920ca793348d574a2':
  linker: remove newlines from DL_ERR so that dlerror works correctly

15 years agobionic/linker: keep track of opened libraries by basename
Erik Gilling [Wed, 29 Jul 2009 03:28:19 +0000 (20:28 -0700)]
bionic/linker: keep track of opened libraries by basename

Prior to this change, the dynamic loader kept track of opened libraries
either by their base name (i.e., libfoo.so instead of /system/lib/libfoo.so)
when the shared library was loaded through the DT_NEEDED tag in an ELF header,
or by whatever name was passed to dlopen(). This created a number of problems,
among which:

1. dlopen("libfoo.so") and dlopen("/path/to/libfoo.so") would open the same
library twice;
2. dlopen("/path/to/libfoo.so") and then dlopen("libbar.so"), where libbar.so
depends on libfoo.so, would open libfoo.so twice.

This patch makes the dynamic loader keep track of each loaded library by
basename, which resolves the above ambiguity. The patch also enforces
library lookup by base name, which means that it will refuse to load another
library that has the same name.

Thanks for the inspiration Iliyan.

Signed-off-by: Erik Gilling <konkers@android.com>
Cc: Iliyan Malchev <malchev@google.com>
15 years agoMerge change 8281 into donut
Android (Google) Code Review [Wed, 29 Jul 2009 00:35:12 +0000 (17:35 -0700)]
Merge change 8281 into donut

* changes:
  linker: remove newlines from DL_ERR so that dlerror works correctly

15 years agoam 3773d35e: Make the DNS resolver accept domain names with an underscore.
David 'Digit' Turner [Tue, 28 Jul 2009 22:27:33 +0000 (15:27 -0700)]
am 3773d35e: Make the DNS resolver accept domain names with an underscore.

Merge commit '3773d35eb98e22b5edab4d82fb72bdf86ff80494'

* commit '3773d35eb98e22b5edab4d82fb72bdf86ff80494':
  Make the DNS resolver accept domain names with an underscore.

15 years agoMake the DNS resolver accept domain names with an underscore.
David 'Digit' Turner [Mon, 27 Jul 2009 17:19:29 +0000 (19:19 +0200)]
Make the DNS resolver accept domain names with an underscore.

More precisely, this accepts domain labels with an underscore in
the middle (i.e. not at the start or the end of the label). This
is needed to perform complex CNAME chain resolution in certain
VPN networks.

15 years agoreconcile korg/master into goog/master
Jean-Baptiste Queru [Sun, 26 Jul 2009 18:43:53 +0000 (11:43 -0700)]
reconcile korg/master into goog/master

15 years agoMerge korg/donut into korg/master
Jean-Baptiste Queru [Sun, 26 Jul 2009 00:48:00 +0000 (17:48 -0700)]
Merge korg/donut into korg/master

15 years agolinker: remove newlines from DL_ERR so that dlerror works correctly
Erik Gilling [Thu, 23 Jul 2009 00:06:11 +0000 (17:06 -0700)]
linker: remove newlines from DL_ERR so that dlerror works correctly

Signed-off-by: Erik Gilling <konkers@android.com>
15 years agoam 39f3745c: Restore malloc debug.
Andy McFadden [Tue, 21 Jul 2009 23:40:00 +0000 (16:40 -0700)]
am 39f3745c: Restore malloc debug.

Merge commit '39f3745cf30efe38482ffead1c32f4e62f6fe32e'

* commit '39f3745cf30efe38482ffead1c32f4e62f6fe32e':
  Restore malloc debug.

15 years agoRestore malloc debug.
Andy McFadden [Tue, 21 Jul 2009 22:25:23 +0000 (15:25 -0700)]
Restore malloc debug.

Some libc changes were preventing the initialization call from being made.
The basic problem appears to be that libc_init_common.c is only built once,
and it's only built for the non-debug libc.

15 years agoam b56b5659: Fix the C library runtime initialization order.
David 'Digit' Turner [Mon, 20 Jul 2009 07:13:21 +0000 (00:13 -0700)]
am b56b5659: Fix the C library runtime initialization order.

Merge commit 'b56b5659b3996e98c2060f168d1cff1474e77d2a'

* commit 'b56b5659b3996e98c2060f168d1cff1474e77d2a':
  Fix the C library runtime initialization order.

15 years agoam ef0bd185: Pass the elfdata pointer in a slot of the temporary TLS area.
David 'Digit' Turner [Mon, 20 Jul 2009 07:12:01 +0000 (00:12 -0700)]
am ef0bd185: Pass the elfdata pointer in a slot of the temporary TLS area.

Merge commit 'ef0bd1857041ffde069cf52138aaf22c1af7130e'

* commit 'ef0bd1857041ffde069cf52138aaf22c1af7130e':
  Pass the elfdata pointer in a slot of the temporary TLS area.

15 years agoFix the C library runtime initialization order.
David 'Digit' Turner [Fri, 17 Jul 2009 23:11:10 +0000 (01:11 +0200)]
Fix the C library runtime initialization order.

This allows libc.so to run the C runtime initializer as soon as the
dynamic linker loads the shared library, i.e. before any other initializers
(e.g. static C++ constructors in other shared libraries the executable depends
on).

This also removes the bug where the initializers from the executable itself
were run twice: once by the dynamic linker, and another time by __libc_init
as defined by libc_init_dynamic.c

15 years agoMerge change 7652
Android (Google) Code Review [Fri, 17 Jul 2009 22:34:38 +0000 (15:34 -0700)]
Merge change 7652

* changes:
  Updating v4l2 headers from kernel

15 years agoPass the elfdata pointer in a slot of the temporary TLS area.
David 'Digit' Turner [Fri, 17 Jul 2009 15:55:01 +0000 (17:55 +0200)]
Pass the elfdata pointer in a slot of the temporary TLS area.

This is needed to properly initialize the C runtime when libc.so
is loaded by the dynamic linker.

Move the temporary TLS setup before the first system call, just
in case something really horrible happens, we won't crash when
trying to write an error code in 'errno'

Remove the broken TLS_SLOT_THREAD_ID setup. First, this slot
should normally receive the address of a pthread_internal_t,
not a kernel thread identifier. Second, it is never used by
the linker anyway.

Also remove an obsolete comment.

15 years agoUpdating v4l2 headers from kernel
Rebecca Schultz Zavin [Fri, 17 Jul 2009 01:33:52 +0000 (18:33 -0700)]
Updating v4l2 headers from kernel

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
15 years agoMerge change 7610
Android (Google) Code Review [Thu, 16 Jul 2009 23:20:28 +0000 (16:20 -0700)]
Merge change 7610

* changes:
  linux: add headers for lis331dlh and sfh7743 sensor drivers.

15 years agoAdd linux/ethtool.h header file
Dmitry Shmidt [Thu, 16 Jul 2009 22:31:30 +0000 (15:31 -0700)]
Add linux/ethtool.h header file

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
15 years agolinux: add headers for lis331dlh and sfh7743 sensor drivers.
Mike Lockwood [Thu, 16 Jul 2009 22:53:41 +0000 (18:53 -0400)]
linux: add headers for lis331dlh and sfh7743 sensor drivers.

Signed-off-by: Mike Lockwood <lockwood@android.com>
15 years agoallow pthread_mutexattr_setpshared to accept SHARED mutexes, since our current impl...
Mathias Agopian [Tue, 14 Jul 2009 05:00:33 +0000 (22:00 -0700)]
allow pthread_mutexattr_setpshared to accept SHARED mutexes, since our current impl actually uses shared mutexes

15 years agoadded pthread_cond_timedwait_relative_np()
Mathias Agopian [Mon, 13 Jul 2009 22:00:46 +0000 (15:00 -0700)]
added pthread_cond_timedwait_relative_np()

15 years agoam 34806558: Add new C++ headers <cerrno> and <cfloat>
David 'Digit' Turner [Mon, 13 Jul 2009 04:56:33 +0000 (21:56 -0700)]
am 34806558: Add new C++ headers <cerrno> and <cfloat>

Merge commit '348065586a2e6154d6cff36afa6e00af6bbc5918'

* commit '348065586a2e6154d6cff36afa6e00af6bbc5918':
  Add new C++ headers <cerrno> and <cfloat>

15 years agoAdd new C++ headers <cerrno> and <cfloat>
David 'Digit' Turner [Fri, 10 Jul 2009 10:23:09 +0000 (12:23 +0200)]
Add new C++ headers <cerrno> and <cfloat>

Also add std::malloc/realloc/calloc/free to <cstdlib>
Rename <cwchar_is_not_supported> to <cwchar>

15 years agoam db4616b2: Add <linux/uinput.h> to C library kernel headers
David 'Digit' Turner [Thu, 9 Jul 2009 23:11:43 +0000 (16:11 -0700)]
am db4616b2: Add <linux/uinput.h> to C library kernel headers

Merge commit 'db4616b2d3234a1916cafb48e65c50cf302afcde'

* commit 'db4616b2d3234a1916cafb48e65c50cf302afcde':
  Add <linux/uinput.h> to C library kernel headers

15 years agoAdd <linux/uinput.h> to C library kernel headers
David 'Digit' Turner [Thu, 9 Jul 2009 22:59:56 +0000 (00:59 +0200)]
Add <linux/uinput.h> to C library kernel headers

15 years agoam c4eee376: Prevent a crash in the memory leak checker (which happened in chk_free())
David 'Digit' Turner [Thu, 9 Jul 2009 22:51:54 +0000 (15:51 -0700)]
am c4eee376: Prevent a crash in the memory leak checker (which happened in chk_free())

Merge commit 'c4eee3765bf9dd81ff055e70ff7daa83a3926d2a'

* commit 'c4eee3765bf9dd81ff055e70ff7daa83a3926d2a':
  Prevent a crash in the memory leak checker (which happened in chk_free())

15 years agoPrevent a crash in the memory leak checker (which happened in chk_free())
David 'Digit' Turner [Wed, 8 Jul 2009 12:22:41 +0000 (14:22 +0200)]
Prevent a crash in the memory leak checker (which happened in chk_free())

Simplify the code a little, removing un-necessary mutex locks/unlocks.
Provide slightly better diagnostic message in case of corruption.
Use snprintf/strlcat instead of sprintf/strcat

15 years agobionic: add cleaned-up proximity-sensor header
Iliyan Malchev [Wed, 8 Jul 2009 21:04:16 +0000 (14:04 -0700)]
bionic: add cleaned-up proximity-sensor header

Signed-off-by: Iliyan Malchev <malchev@google.com>
15 years agoam 6ee8f1b0: Merge change 2990 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 22:17:28 +0000 (15:17 -0700)]
am 6ee8f1b0: Merge change 2990 into donut

Merge commit '6ee8f1b0444c0db94931d2cd64427ded8fba38b0'

* commit '6ee8f1b0444c0db94931d2cd64427ded8fba38b0':
  Add LD_LIBRARY_PATH support to bionic's linker

15 years agoMerge change 2990 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 22:15:14 +0000 (15:15 -0700)]
Merge change 2990 into donut

* changes:
  Add LD_LIBRARY_PATH support to bionic's linker

15 years agoam 380f2498: Merge change 5184 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 22:45:01 +0000 (15:45 -0700)]
am 380f2498: Merge change 5184 into donut

Merge commit '380f24983e8e33d0b189dda198ec64c1766a359d'

* commit '380f24983e8e33d0b189dda198ec64c1766a359d':
  update clean msm_camera.h

15 years agoMerge change 5184 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 19:45:35 +0000 (12:45 -0700)]
Merge change 5184 into donut

* changes:
  update clean msm_camera.h

15 years agoupdate clean msm_camera.h
Iliyan Malchev [Wed, 24 Jun 2009 03:08:10 +0000 (20:08 -0700)]
update clean msm_camera.h

Signed-off-by: Iliyan Malchev <malchev@google.com>
15 years agodelete akm8973.h from original headers
Iliyan Malchev [Tue, 23 Jun 2009 18:13:19 +0000 (11:13 -0700)]
delete akm8973.h from original headers

Signed-off-by: Iliyan Malchev <malchev@google.com>
15 years agoadd header for akm8973
Iliyan Malchev [Mon, 22 Jun 2009 22:07:34 +0000 (15:07 -0700)]
add header for akm8973

Signed-off-by: Iliyan Malchev <malchev@google.com>
15 years agoam 09baf4e8: Add Glibc-compatible macro aliases for the nanosecond time accessors...
David 'Digit' Turner [Mon, 22 Jun 2009 16:56:46 +0000 (09:56 -0700)]
am 09baf4e8: Add Glibc-compatible macro aliases for the nanosecond time accessors in stat structure

Merge commit '09baf4e881c78e67c7849aa81432ceb34e72e913'

* commit '09baf4e881c78e67c7849aa81432ceb34e72e913':
  Add Glibc-compatible macro aliases for the nanosecond time accessors in stat structure

15 years agoMerge change 4509
Android (Google) Code Review [Mon, 22 Jun 2009 16:25:27 +0000 (09:25 -0700)]
Merge change 4509

* changes:
  Removed non-standard declaration in cstring.