OSDN Git Service

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

14 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

14 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

14 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>
14 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>
14 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.

14 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.

14 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

14 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

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

14 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

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

14 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

14 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>
14 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

14 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.

14 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.

14 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

14 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.

15 years agoAdd Glibc-compatible macro aliases for the nanosecond time accessors in stat structure
David 'Digit' Turner [Mon, 22 Jun 2009 10:16:06 +0000 (12:16 +0200)]
Add Glibc-compatible macro aliases for the nanosecond time accessors in stat structure

15 years agoMerge change 4025
Android (Google) Code Review [Wed, 17 Jun 2009 22:36:55 +0000 (15:36 -0700)]
Merge change 4025

* changes:
  Make IPv6 definitions comply with RFC 3493:  - Add some definitions to netinet/in6.h  - Include netinet/in6.h from netinet/in.h

15 years agoRemoved non-standard declaration in cstring.
Nicolas Catania [Wed, 17 Jun 2009 21:30:33 +0000 (14:30 -0700)]
Removed non-standard declaration in cstring.

Aligned the list of the function declared in std:: to
match gcc.
In the first cut, too many functions were included.
The test under system/extras/tests/bionic/libstdc++ already
has the correct (shorter) list.

15 years agoMake IPv6 definitions comply with RFC 3493:
Lorenzo Colitti [Fri, 12 Jun 2009 02:33:45 +0000 (19:33 -0700)]
Make IPv6 definitions comply with RFC 3493:
 - Add some definitions to netinet/in6.h
 - Include netinet/in6.h from netinet/in.h

15 years agoam 9cfccefa: Update cleaned-up kernel headers
David 'Digit' Turner [Tue, 16 Jun 2009 15:37:54 +0000 (08:37 -0700)]
am 9cfccefa: Update cleaned-up kernel headers

Merge commit '9cfccefa055554c7e951741c01373a52a82d3fd6'

* commit '9cfccefa055554c7e951741c01373a52a82d3fd6':
  Update cleaned-up kernel headers

15 years agoUpdate cleaned-up kernel headers
David 'Digit' Turner [Fri, 12 Jun 2009 12:37:15 +0000 (14:37 +0200)]
Update cleaned-up kernel headers

15 years agoAdd LD_LIBRARY_PATH support to bionic's linker
David Bartley [Wed, 3 Jun 2009 01:27:28 +0000 (18:27 -0700)]
Add LD_LIBRARY_PATH support to bionic's linker

15 years agoam 3ddc15e1: Add new clean header for PPP on PPTP (VPN)
David 'Digit' Turner [Mon, 15 Jun 2009 03:49:29 +0000 (20:49 -0700)]
am 3ddc15e1: Add new clean header for PPP on PPTP (VPN)

Merge commit '3ddc15e10a6f5690e53e729c0da2c42f0eb944d1'

* commit '3ddc15e10a6f5690e53e729c0da2c42f0eb944d1':
  Add new clean header for PPP on PPTP (VPN)

15 years agoAdd new clean header for PPP on PPTP (VPN)
David 'Digit' Turner [Fri, 12 Jun 2009 12:21:49 +0000 (14:21 +0200)]
Add new clean header for PPP on PPTP (VPN)

15 years agoam bf8709f5: bionic: update msm_camera.h header
Iliyan Malchev [Fri, 5 Jun 2009 05:43:23 +0000 (22:43 -0700)]
am bf8709f5: bionic: update msm_camera.h header

Merge commit 'bf8709f54b1eabbd4e9bb81e91b9385a9863f505'

* commit 'bf8709f54b1eabbd4e9bb81e91b9385a9863f505':
  bionic: update msm_camera.h header

15 years agobionic: update msm_camera.h header
Iliyan Malchev [Thu, 4 Jun 2009 18:55:53 +0000 (11:55 -0700)]
bionic: update msm_camera.h header

Signed-off-by: Iliyan Malchev <malchev@google.com>
15 years agoam 3a654b1e: Revert "Fix the C library initialization to avoid calling static C+...
David 'Digit' Turner [Wed, 3 Jun 2009 20:00:20 +0000 (13:00 -0700)]
am 3a654b1e: Revert "Fix the C library initialization to avoid calling static C++ constructors twice."

Merge commit '3a654b1e04d4275ae315cfe1b196998acf10052c'

* commit '3a654b1e04d4275ae315cfe1b196998acf10052c':
  Revert "Fix the C library initialization to avoid calling static C++ constructors twice."

15 years agoRevert "Fix the C library initialization to avoid calling static C++ constructors...
David 'Digit' Turner [Wed, 3 Jun 2009 17:32:37 +0000 (19:32 +0200)]
Revert "Fix the C library initialization to avoid calling static C++ constructors twice."

This reverts commit 03eabfe65e1e2c36f4d26c78a730fa19a3bdada3.

15 years agoam 03eabfe6: Fix the C library initialization to avoid calling static C++ constructor...
David 'Digit' Turner [Wed, 3 Jun 2009 12:44:25 +0000 (05:44 -0700)]
am 03eabfe6: Fix the C library initialization to avoid calling static C++ constructors twice.

Merge commit '03eabfe65e1e2c36f4d26c78a730fa19a3bdada3'

* commit '03eabfe65e1e2c36f4d26c78a730fa19a3bdada3':
  Fix the C library initialization to avoid calling static C++ constructors twice.

15 years agoAdd mspace_merge_objects
Barry Hayes [Tue, 26 May 2009 17:33:04 +0000 (10:33 -0700)]
Add mspace_merge_objects

15 years agoFix the C library initialization to avoid calling static C++ constructors twice.
David 'Digit' Turner [Thu, 28 May 2009 13:54:03 +0000 (15:54 +0200)]
Fix the C library initialization to avoid calling static C++ constructors twice.

The problem was due to the fact that, in the case of dynamic executables,
the dynamic linker calls the DT_PREINIT_ARRAY, DT_INIT and DT_INIT_ARRAY
constructors when loading shared libraries and dynamic executables,
*before* calling the executable's entry point (i.e. arch-$ARCH/bionic/crtbegin_dynamic.c)
which in turns call __libc_init() in libc.so, as defined by bionic/libc_init_dynamic.c

The latter did call these constructors array again, mistakenly.

The patch also updates the documentation of many related functions.

Also adds a new section to linker/README.TXT explaining restrictions on
C library usage.

The patch has been tested on a Dream for stability issues with
proprietary blobs:

- H264 decoding works
- Camera + Video recording works
- GPS works
- Sensors work

The tests in system/extra/tests/bionic/libc/common/test_static_cpp_mutex.cpp has been
run and shows the static C++ constructor being called only once.

15 years agoam 0353195f: linker: Give more context for failures during library dependency resolution.
Dima Zavin [Mon, 1 Jun 2009 20:02:20 +0000 (13:02 -0700)]
am 0353195f: linker: Give more context for failures during library dependency resolution.

Merge commit '0353195f344666256dba474a15c9ba22cf0cccc9'

* commit '0353195f344666256dba474a15c9ba22cf0cccc9':
  linker: Give more context for failures during library dependency resolution.

15 years agolinker: Give more context for failures during library dependency resolution.
Dima Zavin [Sat, 30 May 2009 00:30:25 +0000 (17:30 -0700)]
linker: Give more context for failures during library dependency resolution.

Signed-off-by: Dima Zavin <dima@android.com>
15 years agoam 2e85579c: linker: Make the errors reported by dlopen/dlsym be more useful.
Dima Zavin [Thu, 28 May 2009 19:38:04 +0000 (12:38 -0700)]
am 2e85579c: linker: Make the errors reported by dlopen/dlsym be more useful.

Merge commit '2e85579c34047c305caf15fb0ebe02bf3d001d0e'

* commit '2e85579c34047c305caf15fb0ebe02bf3d001d0e':
  linker: Make the errors reported by dlopen/dlsym be more useful.

15 years agoam 49e55332: libc: Add an intermediate version of the static libc without malloc
Dima Zavin [Thu, 28 May 2009 19:38:02 +0000 (12:38 -0700)]
am 49e55332: libc: Add an intermediate version of the static libc without malloc

Merge commit '49e55332784b82f7112ee7c1ea3c176c9dc32d7a'

* commit '49e55332784b82f7112ee7c1ea3c176c9dc32d7a':
  libc: Add an intermediate version of the static libc without malloc

15 years agoam ca122b0e: libc: Cleanup the libc makefile.
Dima Zavin [Thu, 28 May 2009 19:38:00 +0000 (12:38 -0700)]
am ca122b0e: libc: Cleanup the libc makefile.

Merge commit 'ca122b0e34df0e8c485be0d3ab1b80f728b76276'

* commit 'ca122b0e34df0e8c485be0d3ab1b80f728b76276':
  libc: Cleanup the libc makefile.

15 years agolinker: Make the errors reported by dlopen/dlsym be more useful.
Dima Zavin [Thu, 21 May 2009 01:28:09 +0000 (18:28 -0700)]
linker: Make the errors reported by dlopen/dlsym be more useful.

Changed it so that when the linker generates error messages, they are
scribbled away into a buffer that dlfcn and friends can read from.

Since the error messages are generetad with snprintf, and snprintf
MAY call malloc during some code paths, we now link against a version
of libc that does not contain malloc/free/realloc/calloc. We then define
malloc and friends in the dynamic loader, and make them abort() if they
are ever called.

Signed-off-by: Dima Zavin <dima@android.com>
15 years agolibc: Add an intermediate version of the static libc without malloc
Dima Zavin [Wed, 27 May 2009 17:52:37 +0000 (10:52 -0700)]
libc: Add an intermediate version of the static libc without malloc

For now, this will only used by the dynamic loader to ensure that
malloc and friends are never called.

Signed-off-by: Dima Zavin <dima@android.com>
15 years agolibc: Cleanup the libc makefile.
Dima Zavin [Wed, 27 May 2009 17:52:37 +0000 (10:52 -0700)]
libc: Cleanup the libc makefile.

Removes a lot of redundant code, and reorganizes the file. We first
setup all the comomn variables we may need, and then define the
actual libraries that need to be generated.

Signed-off-by: Dima Zavin <dima@android.com>
15 years agoam cdb68bf8: Merge change 2470 into donut
Android (Google) Code Review [Wed, 27 May 2009 10:31:12 +0000 (03:31 -0700)]
am cdb68bf8: Merge change 2470 into donut

Merge commit 'cdb68bf8ce26448cfe173d86f1c074e167c3420f'

* commit 'cdb68bf8ce26448cfe173d86f1c074e167c3420f':
  Fix getservent() so that it returns s_port in network byte order.

15 years agoMerge change 2470 into donut
Android (Google) Code Review [Wed, 27 May 2009 10:29:35 +0000 (03:29 -0700)]
Merge change 2470 into donut

* changes:
  Fix getservent() so that it returns s_port in network byte order. Also add a new document detailing known issues in the C library.

15 years agoam 5c106fca: Merge change 1852 into donut
Android (Google) Code Review [Wed, 27 May 2009 08:50:28 +0000 (01:50 -0700)]
am 5c106fca: Merge change 1852 into donut

Merge commit '5c106fcaa5b9d0a3ebeb2e8cdca589129d6a7ebd'

* commit '5c106fcaa5b9d0a3ebeb2e8cdca589129d6a7ebd':
  Fix __eabi_atexit() implementation, as well as a bug in the BSD-originated __cxa_finalize() implementation

15 years agoMerge change 1852 into donut
Android (Google) Code Review [Wed, 27 May 2009 08:48:26 +0000 (01:48 -0700)]
Merge change 1852 into donut

* changes:
  Fix __eabi_atexit() implementation, as well as a bug in the BSD-originated __cxa_finalize() implementation This patch uses "#if ANDROID" instead of "#if 1" in the __cxa_finalize() fix

15 years agoam 94a144ea: add msm_camera.h header and .gitignore file to bionic
Iliyan Malchev [Wed, 27 May 2009 00:55:26 +0000 (17:55 -0700)]
am 94a144ea: add msm_camera.h header and .gitignore file to bionic

Merge commit '94a144eabd1c7477e77e81e83aa04d43c8a79791'

* commit '94a144eabd1c7477e77e81e83aa04d43c8a79791':
  add msm_camera.h header and .gitignore file to bionic

15 years agoam 1c8e1094: update msm_adsp.h header
Iliyan Malchev [Wed, 27 May 2009 00:51:49 +0000 (17:51 -0700)]
am 1c8e1094: update msm_adsp.h header

Merge commit '1c8e10945eb1ab1352f73c7fb026b99397a8ca70'

* commit '1c8e10945eb1ab1352f73c7fb026b99397a8ca70':
  update msm_adsp.h header

15 years agoadd msm_camera.h header and .gitignore file to bionic
Iliyan Malchev [Thu, 30 Apr 2009 19:29:52 +0000 (12:29 -0700)]
add msm_camera.h header and .gitignore file to bionic

Signed-off-by: Iliyan Malchev <malchev@google.com>
15 years agoupdate msm_adsp.h header
Iliyan Malchev [Wed, 20 May 2009 23:51:12 +0000 (16:51 -0700)]
update msm_adsp.h header

Signed-off-by: Iliyan Malchev <malchev@google.com>
15 years agoFix getservent() so that it returns s_port in network byte order.
David 'Digit' Turner [Tue, 26 May 2009 21:54:37 +0000 (23:54 +0200)]
Fix getservent() so that it returns s_port in network byte order.
Also add a new document detailing known issues in the C library.

15 years agoam 8215679b: Fix the parsing of the .fini_array in the dynamic linker (it should...
David 'Digit' Turner [Tue, 26 May 2009 17:11:25 +0000 (10:11 -0700)]
am 8215679b: Fix the parsing of the .fini_array in the dynamic linker (it should happen in reverse order). Also add a small design overview document for the linker. The latter contains details on how the initialization/finalization is supposed to work.

Merge commit '8215679b355efe3829bab571bd566dc818ea4ccc'

* commit '8215679b355efe3829bab571bd566dc818ea4ccc':
  Fix the parsing of the .fini_array in the dynamic linker (it should happen in reverse order).

15 years agoFix the parsing of the .fini_array in the dynamic linker (it should happen in reverse...
David 'Digit' Turner [Mon, 18 May 2009 12:37:41 +0000 (14:37 +0200)]
Fix the parsing of the .fini_array in the dynamic linker (it should happen in reverse order).
Also add a small design overview document for the linker. The latter contains details on
how the initialization/finalization is supposed to work.

15 years agoam e5446feb: Add <linux/ipsec.h> and <linux/if_pppolac.h> for VPN support.
David 'Digit' Turner [Mon, 25 May 2009 15:36:49 +0000 (08:36 -0700)]
am e5446feb: Add <linux/ipsec.h> and <linux/if_pppolac.h> for VPN support.

Merge commit 'e5446feb21a991426fb683d077a1a8ca5831ac0f'

* commit 'e5446feb21a991426fb683d077a1a8ca5831ac0f':
  Add <linux/ipsec.h> and <linux/if_pppolac.h> for VPN support.

15 years agoAdd <linux/ipsec.h> and <linux/if_pppolac.h> for VPN support.
David 'Digit' Turner [Wed, 20 May 2009 11:00:10 +0000 (13:00 +0200)]
Add <linux/ipsec.h> and <linux/if_pppolac.h> for VPN support.

Also update tools/update_all.py to not use perforce add/edit/delete commands automatically now that we're using git

15 years agoFix __eabi_atexit() implementation, as well as a bug in the BSD-originated __cxa_fina...
David 'Digit' Turner [Wed, 20 May 2009 09:42:52 +0000 (11:42 +0200)]
Fix __eabi_atexit() implementation, as well as a bug in the BSD-originated __cxa_finalize() implementation
This patch uses "#if ANDROID" instead of "#if 1" in the __cxa_finalize() fix

15 years agoam 8169573c: Add <cmath> standard C++ header. This is needed for upcoming STLport...
David 'Digit' Turner [Tue, 19 May 2009 09:53:26 +0000 (02:53 -0700)]
am 8169573c: Add <cmath> standard C++ header. This is needed for upcoming STLport experimentation.

Merge commit '8169573c8744ee3a484ea74bd5e06a8a4f708e37'

* commit '8169573c8744ee3a484ea74bd5e06a8a4f708e37':
  Add <cmath> standard C++ header.

15 years agoAdd <cmath> standard C++ header.
David 'Digit' Turner [Mon, 18 May 2009 21:23:32 +0000 (23:23 +0200)]
Add <cmath> standard C++ header.
This is needed for upcoming STLport experimentation.

15 years agoAdd standalone_months field to libc strftime().
Eric Fischer [Fri, 15 May 2009 20:33:20 +0000 (13:33 -0700)]
Add standalone_months field to libc strftime().

Replicate my change 722a5c0462f38827f4097065bfc3826b9e0e9fb4 into
bionic in an attempt to fix the build.

15 years agoam d386afcc: revert to previous implementation of __aeabi_atexit() since the new...
David 'Digit' Turner [Fri, 15 May 2009 00:14:08 +0000 (17:14 -0700)]
am d386afcc: revert to previous implementation of __aeabi_atexit() since the new one seems to crash a static ICU String destructor. I don\'t have the time to investigate why right now, so a revert is preferred. Damn...

Merge commit 'd386afcc41e92c96778d9b1a498199f48fa2d4aa'

* commit 'd386afcc41e92c96778d9b1a498199f48fa2d4aa':
  revert to previous implementation of __aeabi_atexit() since the new one seems to crash a static ICU String destructor.

15 years agorevert to previous implementation of __aeabi_atexit() since the new one seems to...
David 'Digit' Turner [Fri, 15 May 2009 00:11:12 +0000 (02:11 +0200)]
revert to previous implementation of __aeabi_atexit() since the new one seems to crash a static ICU String destructor.
I don't have the time to investigate why right now, so a revert is preferred. Damn...

15 years agoam 3e16f84f: Fix __aeabi_atexit to call __cxa_atexit properly. This function is defin...
David 'Digit' Turner [Thu, 14 May 2009 22:39:55 +0000 (15:39 -0700)]
am 3e16f84f: Fix __aeabi_atexit to call __cxa_atexit properly. This function is defined by the C++ ABI for ARM document.

Merge commit '3e16f84fcad103c97a2df4a58948835277043569'

* commit '3e16f84fcad103c97a2df4a58948835277043569':
  Fix __aeabi_atexit to call __cxa_atexit properly. This function is defined by the C++ ABI for ARM document.

15 years agoFix __aeabi_atexit to call __cxa_atexit properly. This function is defined by the...
David 'Digit' Turner [Thu, 14 May 2009 12:25:26 +0000 (14:25 +0200)]
Fix __aeabi_atexit to call __cxa_atexit properly. This function is defined by the C++ ABI for ARM document.

15 years agoam d1b40d8: linker: Compute symbol name before lookup so we can also use
Dima Zavin [Tue, 12 May 2009 18:31:39 +0000 (11:31 -0700)]
am d1b40d8: linker: Compute symbol name before lookup so we can also use

Merge commit 'd1b40d8c69dfca94185ea9231f6cb16f70c02e39'

* commit 'd1b40d8c69dfca94185ea9231f6cb16f70c02e39':
  linker: Compute symbol name before lookup so we can also use it for error msg

15 years agolinker: Compute symbol name before lookup so we can also use it for error msg
Dima Zavin [Tue, 12 May 2009 17:59:09 +0000 (10:59 -0700)]
linker: Compute symbol name before lookup so we can also use it for error msg

Signed-off-by: Dima Zavin <dima@android.com>
15 years agoam 5e56370: change getaddrinfo() implementation to match GLibc.
David 'Digit' Turner [Tue, 5 May 2009 14:13:33 +0000 (07:13 -0700)]
am 5e56370: change getaddrinfo() implementation to match GLibc.

Merge commit '5e563700380eade647f347669ea61dbb0ede9814'

* commit '5e563700380eade647f347669ea61dbb0ede9814':
  change getaddrinfo() implementation to match GLibc.

15 years agochange getaddrinfo() implementation to match GLibc.
David 'Digit' Turner [Tue, 5 May 2009 13:50:24 +0000 (15:50 +0200)]
change getaddrinfo() implementation to match GLibc.

the issue is that the BSD implementation doesn't accept a call like:

  getaddrinfo(SERVER_NAME, "9999", NULL, &res);

because if will reject a numerical string in the second parameter if no hints are explicitely
provided. This technically doesn't violate POSIX but might make porting Linux software a bit
difficult. For more details see:

http://groups.google.com/group/android-ndk/browse_thread/thread/818ab9c53f24c87

also comment debugging printf() calls which shouldn't be there.

15 years agoam 85a01ff: Merge change 57 into donut
Android (Google) Code Review [Sat, 2 May 2009 06:01:54 +0000 (23:01 -0700)]
am 85a01ff: Merge change 57 into donut

Merge commit '85a01ffba337b123436f57eba4daae38c7c90d1e'

* commit '85a01ffba337b123436f57eba4daae38c7c90d1e':
  Add the domain search list for VPN connection.