- 02 Jun, 2009 1 commit
-
-
David 'Digit' Turner authored
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.
-
- 01 Jun, 2009 1 commit
-
-
Dima Zavin authored
Signed-off-by:
Dima Zavin <dima@android.com>
-
- 28 May, 2009 3 commits
-
-
Dima Zavin authored
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>
-
Dima Zavin authored
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>
-
Dima Zavin authored
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>
-
- 27 May, 2009 4 commits
-
-
Android (Google) Code Review authored
* 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.
-
Android (Google) Code Review authored
* 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
-
Iliyan Malchev authored
Signed-off-by:
Iliyan Malchev <malchev@google.com>
-
Iliyan Malchev authored
Signed-off-by:
Iliyan Malchev <malchev@google.com>
-
- 26 May, 2009 2 commits
-
-
David 'Digit' Turner authored
Also add a new document detailing known issues in the C library.
-
David 'Digit' Turner authored
Also add a small design overview document for the linker. The latter contains details on how the initialization/finalization is supposed to work.
-
- 20 May, 2009 2 commits
-
-
David 'Digit' Turner authored
Also update tools/update_all.py to not use perforce add/edit/delete commands automatically now that we're using git
-
David 'Digit' Turner authored
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
-
- 18 May, 2009 1 commit
-
-
David 'Digit' Turner authored
This is needed for upcoming STLport experimentation.
-
- 15 May, 2009 1 commit
-
-
David 'Digit' Turner authored
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...
-
- 14 May, 2009 1 commit
-
-
David 'Digit' Turner authored
Fix __aeabi_atexit to call __cxa_atexit properly. This function is defined by the C++ ABI for ARM document.
-
- 12 May, 2009 1 commit
-
-
Dima Zavin authored
Signed-off-by:
Dima Zavin <dima@android.com>
-
- 05 May, 2009 1 commit
-
-
David 'Digit' Turner authored
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.
-
- 01 May, 2009 2 commits
-
-
Android (Google) Code Review authored
* changes: Add the domain search list for VPN connection. The current solution is to read the net.dns.search property, and expand the list during the resolve initialization. In the future, we could implement search list per process.
-
James Dong authored
Increase the limit of loaded shared libraries from 64 to 96 This change is required for OpenCORE 2.0 This is the same as Change 71 in master branch.
-
- 24 Apr, 2009 1 commit
-
-
Dave Bort authored
We're soon going to stop using TARGET_BUILD_TYPE==debug to debug native modules. Signed-off-by:
Dave Bort <dbort@android.com>
-
- 23 Apr, 2009 1 commit
-
-
Jean-Baptiste Queru authored
-
- 13 Apr, 2009 1 commit
-
-
Chung-yih Wang authored
The current solution is to read the net.dns.search property, and expand the list during the resolve initialization. In the future, we could implement search list per process. Update: refine the code accordingly. Update: remove unnecessary code. Update: remove the unused variable.
-
- 10 Apr, 2009 1 commit
-
-
Niko Catania authored
In new, include cstddef which declares std::size_t. BUG=1601432 Automated import of CL 145714
-
- 08 Apr, 2009 1 commit
-
-
Niko Catania authored
The only one left is cstring. * bionic/libstdc++/include/cstdlib: * bionic/libstdc++/include/cstdio: * bionic/libstdc++/include/cstdint: * bionic/libstdc++/include/csignal: * bionic/libstdc++/include/csetjmp: Added header file. Checks the bionic headers file were picked up instead of the host ones. Added test for new header files * system/extras/tests/bionic/libstdc++/Android.mk: Added tests for the new header files. EXTRA_CFLAGS: include the bionic header files. BUG=1601432 Automated import of CL 145059
-
- 02 Apr, 2009 1 commit
-
-
Niko Catania authored
QA Impact:None BUG=1601432 Automated import of CL 144236
-
- 30 Mar, 2009 1 commit
-
-
Niko Catania authored
Even if we don't want to have a bloated stl implementation, having empty files around is probably not very good either. Added a test to make sure the header file compiles on host and kila-eng. QA Impact: In system/extras/test/bionic/libstdc++ build the tests using: mm BIONIC_TESTS=1 to build the host and target tests. BUG=1601432 Automated import of CL 143504
-
- 27 Mar, 2009 1 commit
-
-
Mathias Agopian authored
AI 143161: am: CL 142857 Add some bluring to the animation. This requires a new kernel which will be checked-in later, at which point the blur effect will automatically be enabled. Original author: mathias Merged from: //branches/cupcake/... Automated import of CL 143161
-
- 26 Mar, 2009 1 commit
-
-
Mathias Agopian authored
-
- 25 Mar, 2009 1 commit
-
-
Iliyan Malchev authored
-
- 20 Mar, 2009 1 commit
-
-
The Android Open Source Project authored
-
- 19 Mar, 2009 1 commit
-
-
The Android Open Source Project authored
-
- 04 Mar, 2009 2 commits
-
-
The Android Open Source Project authored
-
The Android Open Source Project authored
-
- 03 Mar, 2009 2 commits
-
-
The Android Open Source Project authored
-
The Android Open Source Project authored
-
- 20 Feb, 2009 1 commit
-
-
The Android Open Source Project authored
-
- 19 Feb, 2009 1 commit
-
-
The Android Open Source Project authored
-
- 13 Feb, 2009 1 commit
-
-
The Android Open Source Project authored
-
- 10 Feb, 2009 1 commit
-
-
The Android Open Source Project authored
-