OSDN Git Service
Elliott Hughes [Wed, 26 Sep 2012 19:04:58 +0000 (12:04 -0700)]
Merge "Fix tmpfile(3)."
Elliott Hughes [Tue, 25 Sep 2012 00:55:15 +0000 (17:55 -0700)]
Fix tmpfile(3).
This could be better, but at least now it works.
Change-Id: I88b7cf3f7ce8e5fa0b3fe678b7d1679a68ffffc9
Nick Kralevich [Wed, 26 Sep 2012 17:59:28 +0000 (10:59 -0700)]
Merge "FORTIFY_SOURCE: add umask check"
Elliott Hughes [Wed, 26 Sep 2012 17:38:10 +0000 (10:38 -0700)]
Merge "Revert dl_fbase initialization to the address where the shared object is loaded."
Nick Kralevich [Wed, 26 Sep 2012 17:02:30 +0000 (10:02 -0700)]
FORTIFY_SOURCE: add umask check
Verify that the call to umask makes sense. While this wouldn't
have detected bug
7094213 (because the low order bits were all zero),
it might detect other similar bugs.
References: https://code.google.com/p/android-source-browsing/source/detail?r=
acba45cc4b1f98f67fcdeda2f7c13ed57659b92a&repo=platform--libcore
Change-Id: I966a531d6b3cf8e1c5eacd69bd3cbec475b5fa58
Raghu Gandham [Tue, 25 Sep 2012 22:50:33 +0000 (15:50 -0700)]
Revert dl_fbase initialization to the address where the shared object is loaded.
Change-Id: If868cab774a1ae5ff370208216cecda9b8c3b9fd
Elliott Hughes [Mon, 24 Sep 2012 20:39:32 +0000 (13:39 -0700)]
Merge "Add the cleaned kernel headers"
Raghu Gandham [Mon, 24 Sep 2012 19:33:04 +0000 (12:33 -0700)]
Add the cleaned kernel headers
Change-Id: Ied4e3ca765672ebaebe9d4d0909b3278c2ff3cd8
Elliott Hughes [Mon, 24 Sep 2012 19:24:00 +0000 (12:24 -0700)]
Merge "[MIPS] Removed the unused header"
Raghu Gandham [Mon, 24 Sep 2012 18:52:00 +0000 (11:52 -0700)]
[MIPS] Removed the unused header
Change-Id: I8756a862669d4e5f283945496983f11a59dea30c
Elliott Hughes [Mon, 24 Sep 2012 17:03:51 +0000 (10:03 -0700)]
Merge "Fix dlsym and dladdr to use load_bias instead of base"
Elliott Hughes [Mon, 24 Sep 2012 15:41:55 +0000 (08:41 -0700)]
Merge "Add the libcutils localtime_tz and mktime_t extensions to bionic."
Elliott Hughes [Sun, 23 Sep 2012 18:08:18 +0000 (11:08 -0700)]
Merge "Use hidden visibility for several internal-use-only functions."
Elliott Hughes [Sat, 22 Sep 2012 01:27:40 +0000 (18:27 -0700)]
Use hidden visibility for several internal-use-only functions.
Change-Id: Ibeea6963ff0cc06479d0a3ed7e868eeece8c55a0
Elliott Hughes [Sat, 22 Sep 2012 01:20:03 +0000 (18:20 -0700)]
Merge "[MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. Some of the required structure definitons are defined under this macro."
Raghu Gandham [Sat, 22 Sep 2012 00:13:25 +0000 (17:13 -0700)]
[MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS.
Some of the required structure definitons are defined under this macro.
Change-Id: I7a9a986e371381697dcb56bd8ea362856ffa7509
Raghu Gandham [Fri, 21 Sep 2012 19:21:02 +0000 (12:21 -0700)]
Fix dlsym and dladdr to use load_bias instead of base
Change-Id: If0f9aa944ccb1f90451aa6674428e34494331d2d
Elliott Hughes [Tue, 18 Sep 2012 23:56:44 +0000 (16:56 -0700)]
Merge "Make pthread_create more forgiving of invalid sched_policy. Bug:
7005326"
Dave Burke [Tue, 18 Sep 2012 03:37:38 +0000 (20:37 -0700)]
Make pthread_create more forgiving of invalid sched_policy.
Bug:
7005326
(cherry-pick of
e58303249b9e799a4fe84c5a2dfe71518441a6ec.)
Change-Id: Ie81494e0f6a71caa6fd9fabbcfc47a23077554d6
Elliott Hughes [Mon, 17 Sep 2012 22:36:26 +0000 (15:36 -0700)]
Merge "Don't copy strerror(3) or strsignal(3) strings if we can share."
Elliott Hughes [Mon, 17 Sep 2012 22:23:35 +0000 (15:23 -0700)]
Don't copy strerror(3) or strsignal(3) strings if we can share.
Change-Id: Ic405269f63b945c6fb347e7c4346cd6f104aff35
Elliott Hughes [Fri, 14 Sep 2012 23:14:48 +0000 (16:14 -0700)]
Merge "Fix <sys/klog.h> to correspond to the kernel operations."
Elliott Hughes [Fri, 14 Sep 2012 22:45:46 +0000 (15:45 -0700)]
Merge "Add tty defaults to bionic"
Elliott Hughes [Fri, 14 Sep 2012 22:42:30 +0000 (15:42 -0700)]
Fix <sys/klog.h> to correspond to the kernel operations.
This makes the constants correspond to those in the Linux kernel's
include/linux/syslog.h, but keeping our old badly-named constants for
source compatibility.
Change-Id: Ia47d1299205754cbfffd29ed48b497b53d1edaae
Elliott Hughes [Thu, 13 Sep 2012 23:55:39 +0000 (16:55 -0700)]
Merge "libc: add ftw / nftw functions"
Nick Kralevich [Wed, 12 Sep 2012 20:21:25 +0000 (13:21 -0700)]
libc: add ftw / nftw functions
Please see "man 3 ftw" for a description of the
ftw / nftw functions.
This code is taken directly from netbsd unmodified.
Change-Id: Ia4879ac57212b424adf5281b5e92858e216d0f14
Elliott Hughes [Thu, 13 Sep 2012 23:52:34 +0000 (16:52 -0700)]
Merge "Update libc/NOTICE and record the incantation."
Elliott Hughes [Thu, 13 Sep 2012 23:51:57 +0000 (16:51 -0700)]
Update libc/NOTICE and record the incantation.
Change-Id: I0673d6263de2c5a21cd549f18c0648d0fa4bb40f
Kenny Root [Thu, 13 Sep 2012 22:26:13 +0000 (15:26 -0700)]
Merge changes I06ee0b67,I914d2205
* changes:
Print out shared app gids correctly
Add tests for Android-specific stubs
Kenny Root [Thu, 13 Sep 2012 21:31:50 +0000 (14:31 -0700)]
Print out shared app gids correctly
For applications that share resources across users such as
forward-locked applications, print out their group name correctly.
Change-Id: I06ee0b67e4325cfa415ffd7a03e301700399a66d
Kenny Root [Thu, 13 Sep 2012 17:52:52 +0000 (10:52 -0700)]
Add tests for Android-specific stubs
Also fix problem with multi-user IDs that the home directory was
returned as "/data" instead of "/" unlike all the other uids.
Change-Id: I914d22052e5a86552989f8969b85aadbc748c65d
Elliott Hughes [Thu, 13 Sep 2012 22:19:36 +0000 (15:19 -0700)]
Merge "Make strerror(3) and strsignal(3) thread-safe, and add psignal(3) and psiginfo(3)."
Irina Tirdea [Sat, 8 Sep 2012 06:17:54 +0000 (09:17 +0300)]
Make strerror(3) and strsignal(3) thread-safe, and add psignal(3) and psiginfo(3).
Change-Id: I426109db25e907980d6cb3a7a695796e45783b78
Elliott Hughes [Thu, 13 Sep 2012 22:15:08 +0000 (15:15 -0700)]
Merge "Upgrade to tzdata2012f."
Elliott Hughes [Thu, 13 Sep 2012 21:54:51 +0000 (14:54 -0700)]
Upgrade to tzdata2012f.
This release reflects the following change circulated on the tz
mailing list:
* australasia (Pacific/Fiji): Fiji DST is October 21 through January
20 this year. (Thanks to Steffen Thorsen.)
Change-Id: Ie21ea791ff5191264967aff685cbfa5c73f1fa5c
Elliott Hughes [Thu, 13 Sep 2012 18:02:22 +0000 (11:02 -0700)]
Merge "Fix Mac build."
Elliott Hughes [Thu, 13 Sep 2012 18:01:46 +0000 (11:01 -0700)]
Fix Mac build.
Change-Id: Id625806fab0f2f7f90f9508c5fce649afe970414
Elliott Hughes [Thu, 13 Sep 2012 16:46:30 +0000 (09:46 -0700)]
Merge "Add libdl into libc_malloc_debug_leak build"
Elliott Hughes [Thu, 13 Sep 2012 16:42:49 +0000 (09:42 -0700)]
Merge "Added new test for dlopen which is failing for MIPS."
Pavel Chupin [Mon, 10 Sep 2012 15:35:25 +0000 (19:35 +0400)]
Add libdl into libc_malloc_debug_leak build
Otherwise libc_malloc_debug_leak.so is failed to load runtime in x86
case
Change-Id: I8207ce06d1ec17b233f4e4fcfdd2b161673b4fa8
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
jeffhao [Thu, 13 Sep 2012 00:25:30 +0000 (17:25 -0700)]
Added new test for dlopen which is failing for MIPS.
Change-Id: I2240faefb387a11647f49b1a15699907a40f98c1
Elliott Hughes [Wed, 12 Sep 2012 22:56:10 +0000 (15:56 -0700)]
Merge "Update the kernel headers to match external/kernel-headers."
Elliott Hughes [Wed, 12 Sep 2012 02:03:02 +0000 (19:03 -0700)]
Update the kernel headers to match external/kernel-headers.
Note that the Linux kernel handed over responsibility for most of the
socket constants to glibc some time ago. Someone had updated our
external/kernel-headers file but not regenerated the bionic headers,
so this change copies the missing stuff from the old bionic <linux/socket.h>
into <sys/socket.h>. This is what glibc does.
I've hacked a few of the other files to #include <sys/socket.h> for
backward compatibility, but even so this requires numerous other
changes to switch people over from direct inclusion of <linux/...> headers.
Change-Id: I0e4af64e631d3cef911a31d90f2f806e058278a0
Elliott Hughes [Wed, 12 Sep 2012 17:51:48 +0000 (10:51 -0700)]
Merge "Backwards and forwards compatibility for an upcoming <sys/socket.h> change."
Elliott Hughes [Wed, 12 Sep 2012 17:51:05 +0000 (10:51 -0700)]
Backwards and forwards compatibility for an upcoming <sys/socket.h> change.
Change-Id: Iba58077a1f057a968eb2283ebba259975925ff4c
Elliott Hughes [Tue, 11 Sep 2012 23:38:43 +0000 (16:38 -0700)]
Merge "[MIPS] Check error status from pipe system call"
KwongYuan Wong [Tue, 27 Mar 2012 18:13:13 +0000 (11:13 -0700)]
[MIPS] Check error status from pipe system call
Change-Id: Iaaea0e826c2678aa7f6fad9d46b16302a4d3b876
Irina Tirdea [Sat, 8 Sep 2012 06:01:00 +0000 (09:01 +0300)]
Add tty defaults to bionic
Add ttydefaults.h bionic. Some userspace programs (e.g. perf) need the
definitions from this file. This header file is copied from NetBSD
(http://netbsd.org/) under the NetBSD Foundation's (TNF) license (“2 clause”
Berkeley-style license).
Change-Id: I9c862415b52b710f25adb1629a699627cd715775
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Elliott Hughes [Tue, 11 Sep 2012 18:15:53 +0000 (11:15 -0700)]
Add the libcutils localtime_tz and mktime_t extensions to bionic.
Bug:
7012465
Change-Id: Ib66f061e29199ba134545111dc79f9b50c8f4a21
Elliott Hughes [Mon, 10 Sep 2012 18:52:11 +0000 (11:52 -0700)]
Merge "Rename crtstart variables as crtbegin, to match reality."
Elliott Hughes [Mon, 10 Sep 2012 18:16:12 +0000 (11:16 -0700)]
Rename crtstart variables as crtbegin, to match reality.
No functional change, but it's confusing that the variable
names don't match the filenames.
Change-Id: I7109f917797be2f056e69fddb92e4a7306281813
Ying Wang [Mon, 10 Sep 2012 16:48:45 +0000 (09:48 -0700)]
Merge "Generate header dependency makefiles for the crt*.o"
Elliott Hughes [Sat, 8 Sep 2012 01:30:17 +0000 (18:30 -0700)]
Merge "Add more pthreads tests."
Ying Wang [Sat, 8 Sep 2012 00:06:56 +0000 (17:06 -0700)]
Generate header dependency makefiles for the crt*.o
Bug:
7127743
Change-Id: I606e5f7cd2b513f855a1fefd2b001abd365fc854
Elliott Hughes [Fri, 7 Sep 2012 23:47:54 +0000 (16:47 -0700)]
Add more pthreads tests.
Someone reported a bug if pthread_detach is called while a pthread_join is
already in progress, but I'm unable to reproduce it. Keep the tests I wrote,
though.
Change-Id: I3d71450bbbb5345f2cb213dc56310ec020d528cc
Elliott Hughes [Fri, 7 Sep 2012 17:59:20 +0000 (10:59 -0700)]
Merge "Rename __dso_handle_so.c to __dso_handle_so.h"
Elliott Hughes [Fri, 7 Sep 2012 17:51:49 +0000 (10:51 -0700)]
Merge "Add mlockall and munlockall for Google TV."
Andrew Hsieh [Wed, 5 Sep 2012 11:00:43 +0000 (19:00 +0800)]
Rename __dso_handle_so.c to __dso_handle_so.h
Also chang libc/arch-arm/bionic/crtbegin_so.c to include it
as a header.
Change-Id: Ib91b0b8caf5c8b936425aa8a4fc1a229b2b27929
Ian Rogers [Thu, 6 Sep 2012 18:41:52 +0000 (11:41 -0700)]
Merge "Fix build warning of initialization but no use."
Elliott Hughes [Thu, 6 Sep 2012 18:24:45 +0000 (11:24 -0700)]
Add mlockall and munlockall for Google TV.
Change-Id: I10e961d701e74aab07211ec7975f61167e387853
Elliott Hughes [Thu, 6 Sep 2012 17:31:52 +0000 (10:31 -0700)]
Merge "Don't corrupt the thread list in static executables."
Ian Rogers [Thu, 6 Sep 2012 16:55:36 +0000 (09:55 -0700)]
Fix build warning of initialization but no use.
first_run is only used with LOCK_AT_FORK, however, care needs to be
taken with the #if to avoid compiler warnings when LOCK_AT_FORK isn't
being used.
Change-Id: I6bcfac2ab8732c91607f4a1bcd7c0019f29c2eec
Elliott Hughes [Thu, 6 Sep 2012 00:47:37 +0000 (17:47 -0700)]
Don't corrupt the thread list in static executables.
Several previous changes conspired to make a mess of the thread list
in static binaries. This was most obvious when trying to call
pthread_key_delete(3) on the main thread.
Bug: http://code.google.com/p/android/issues/detail?id=36893
Change-Id: I2a2f553114d8fb40533c481252b410c10656da2e
Elliott Hughes [Wed, 5 Sep 2012 21:46:14 +0000 (14:46 -0700)]
Merge "Add missing dependencies."
Elliott Hughes [Wed, 5 Sep 2012 21:27:17 +0000 (14:27 -0700)]
Add missing dependencies.
Change-Id: I53c1cfb59ac7a89952a8d6b906b2b9e16a66624f
Elliott Hughes [Wed, 5 Sep 2012 17:18:43 +0000 (10:18 -0700)]
Merge "ARM: warn about atexit() calls from legacy shared libraries"
Elliott Hughes [Wed, 5 Sep 2012 16:43:35 +0000 (09:43 -0700)]
Merge "ARM: make CRT_LEGACY_WORKAROUND work as intended"
Ian Rogers [Wed, 5 Sep 2012 14:41:31 +0000 (07:41 -0700)]
Merge "Avoid malloc lock while calling pthread_atfork."
Elliott Hughes [Wed, 5 Sep 2012 00:52:39 +0000 (17:52 -0700)]
Merge "termios: add tcdrain"
Elliott Hughes [Tue, 4 Sep 2012 23:36:26 +0000 (16:36 -0700)]
Merge "Add getsid system call to bionic"
Elliott Hughes [Tue, 4 Sep 2012 22:51:55 +0000 (15:51 -0700)]
Merge "Add missing MALLOC_FAILURE_ACTION calls to dlmalloc."
Elliott Hughes [Tue, 4 Sep 2012 22:42:23 +0000 (15:42 -0700)]
Add missing MALLOC_FAILURE_ACTION calls to dlmalloc.
Without these, sometimes malloc(3) returns NULL without setting errno.
Change-Id: I4708c3f675bf2c878ddcaf012fde7848b255826b
Elliott Hughes [Tue, 4 Sep 2012 20:42:57 +0000 (13:42 -0700)]
Merge "bionic: Fix TINY_ANDROID build"
Benoit Goby [Sat, 1 Sep 2012 02:52:15 +0000 (19:52 -0700)]
bionic: Fix TINY_ANDROID build
(cherry-pick of
545d5dbbcb0dc9e44323c4f2e687a3aace75a483.)
Change-Id: Ifc91e84ffed5a3a287accabd7f08b02752688db6
Vitaly Wool [Tue, 4 Sep 2012 12:11:28 +0000 (14:11 +0200)]
termios: add tcdrain
Change-Id: I05c0007f7bcc6ef5295c32f86fafbf1ad31e07fa
Irina Tirdea [Wed, 29 Aug 2012 08:48:35 +0000 (11:48 +0300)]
Add getsid system call to bionic
Add getsid() system call to bionic for
all architectures. This is needed for various tools
(e.g. perf).
Adding the getsid system call was done in 3 steps:
() add getsid system call (function name and syscall
number) to libc/SYSCALLS.TXT
() generate all necessary headers by calling
libc/tools/gensyscalls.py. This patch is adding
the generated files since the build system
does not call gensyscalls.py.
() add the system call signature to libc/include/unistd.h
Change-Id: Id69a257e13ec02e1a44085a6b217a3f19ab025b1
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Kirill Artamonov [Fri, 31 Aug 2012 16:19:16 +0000 (09:19 -0700)]
Avoid malloc lock while calling pthread_atfork.
Expecting the memory in a forked child process to be sane wrt threading
is a bad idea. An example of a problem is when the parent process has
the malloc lock and a child process is forked. The malloc lock in the
child will appear locked by a thread that doesn't exist.
This change aims to make bionic more compatible with glibc by reseting
the malloc lock in the child forked process, as well as holding it
during the fork. This is a feature in dlmalloc 2.8.6 called
LOCK_AT_FORK. In general this feature isn't necessary as a forked
process will then exec. Some bad applications rely on being able to use
features like malloc before the exec and having multiple threads running
in the parent program. This isn't a problem with glibc and this patch
makes it not a problem for bionic.
Unfortunately for use in bionic, LOCK_AT_FORK has an issue as internally
it uses pthread_atfork that in bionic uses malloc. This leads to the
LOCK_AT_FORK initialization deadlocking with pthread_atfork's call to
malloc due to the malloc lock. This change moves the pthread_atfork logic
in LOCK_AT_FORK to be called without the malloc lock held.
Change-Id: Id68175a564a6abb936ee4488b44d9479f7311f69
Ian Rogers [Fri, 31 Aug 2012 15:42:40 +0000 (08:42 -0700)]
Merge "Upgrade to dlmalloc 2.8.6."
Ian Rogers [Wed, 29 Aug 2012 21:04:53 +0000 (14:04 -0700)]
Upgrade to dlmalloc 2.8.6.
This fixes a bug and enables the use of MORECORE_CONTIGUOUS.
Change-Id: Ia7c5d32bdc46e99b3ecb92ee94d1f702c4385d5d
Elliott Hughes [Wed, 29 Aug 2012 20:56:40 +0000 (13:56 -0700)]
Merge "Improve the dynamic linker diagnostics."
Nick Kralevich [Wed, 29 Aug 2012 20:54:49 +0000 (13:54 -0700)]
Merge "disable _FORTIFY_SOURCE under clang"
Elliott Hughes [Wed, 29 Aug 2012 20:10:54 +0000 (13:10 -0700)]
Improve the dynamic linker diagnostics.
Lose the pid, only show the name of the function (not its whole signature),
and include the name of the library we failed to load. (I hadn't noticed
that the library name was missing before because in Java we add that into
the UnsatisfiedLinkError detail message.)
The new output looks like this:
Cannot load library: soinfo_relocate(linker.cpp:968): cannot locate symbol "__libc_malloc_default_dispatch" referenced by "libc_malloc_debug_leak.so"...
Change-Id: I3bb5c9780d9aaf3a9e4418ea55bc98122a81f80f
Elliott Hughes [Wed, 29 Aug 2012 20:08:50 +0000 (13:08 -0700)]
Merge "Clean up warnings in the malloc_debug_* files."
Nick Kralevich [Wed, 29 Aug 2012 19:40:53 +0000 (12:40 -0700)]
disable _FORTIFY_SOURCE under clang
Clang and _FORTIFY_SOURCE are just plain incompatible with
each other. First of all, clang doesn't understand the
__attribute__((gnu_inline)) header. Second of all,
Clang doesn't have support for __builtin_va_arg_pack()
and __builtin_va_arg_pack_len() (see
http://clang.llvm.org/docs/UsersManual.html#c_unimpl_gcc)
Until we can resolve these issues, don't even try using
_FORTIFY_SOURCE under clang.
Change-Id: I81c2b8073bb3276fa9a4a6b93c427b641038356a
Elliott Hughes [Tue, 28 Aug 2012 21:15:04 +0000 (14:15 -0700)]
Clean up warnings in the malloc_debug_* files.
Also clean up cpplint.py-detected lint.
Change-Id: Ia18e89c4c6878764f8d7ed34b8247e7a8d8fe88b
Nick Kralevich [Tue, 28 Aug 2012 20:04:22 +0000 (13:04 -0700)]
Merge "ARM: make sure __on_dlclose() actually gets called"
Nick Kralevich [Tue, 28 Aug 2012 19:49:46 +0000 (12:49 -0700)]
Merge "ARM: remove dummy entries from .so init_array/fini_array"
Nick Kralevich [Tue, 28 Aug 2012 19:48:00 +0000 (12:48 -0700)]
Merge "linker: Fix ARM_R_COPY relocations"
Nick Kralevich [Fri, 24 Aug 2012 20:25:51 +0000 (13:25 -0700)]
linker: Fix ARM_R_COPY relocations
Per http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044d/IHI0044D_aaelf.pdf
Section 4.7.1.10, ARM_R_COPY relocations are only suppose to reference shared
libraries, not the executable itself. When resolving an R_ARM_COPY symbol,
ensure we don't look in our own symbol.
This partially addresses
http://code.google.com/p/android/issues/detail?id=28598 . After this
patch, the printfs generated by the test program are:
global = 0x42 (0x401c7000)
global = 0x42 (0x11000)
before, the output was:
global = 0x42 (0x40071000)
global = 0x0 (0x11000)
I'm still not very happy with this patch, but I think it's an improvement
over where we were at before.
This change was modeled after https://android-review.googlesource.com/38871
Change-Id: Id7ad921e58395e76a36875bcc742ec5eeba53f08
Nick Kralevich [Tue, 28 Aug 2012 17:20:27 +0000 (10:20 -0700)]
Merge "libc: remove ctors/dtors sections"
Ard Biesheuvel [Tue, 28 Aug 2012 09:23:06 +0000 (11:23 +0200)]
ARM: warn about atexit() calls from legacy shared libraries
Legacy ARM shared libraries use this generic version of atexit(),
which queues exit functions for invocation at program exit, at
which time the library may have been dlclose()'d, causing the
program to crash.
Change-Id: I41ae153c23268daa65ede7fb8966fc3e9caec369
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@gmail.com>
Ard Biesheuvel [Tue, 21 Aug 2012 12:13:50 +0000 (14:13 +0200)]
ARM: make CRT_LEGACY_WORKAROUND work as intended
To properly support legacy ARM shared libraries, libc.so needs
to export the symbols __dso_handle and atexit, even though
these are now supplied by the crt startup code.
This patch reshuffles the existing CRT_LEGACY_WORKAROUND
conditionally compiled code slightly so it works as the
original author likely intended.
Change-Id: Id6c0e94dc65b7928324a5f0bad7eba6eb2f464b9
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@gmail.com>
Ard Biesheuvel [Tue, 28 Aug 2012 07:06:07 +0000 (09:06 +0200)]
ARM: remove dummy entries from .so init_array/fini_array
The runtime linker parses the ELF section headers to
discover the size of the init_array and fini_array, so
there is no point in putting NULL terminators at the end.
Change-Id: I3246cd585efce9314155600277dd829e9f37d04f
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@gmail.com>
Nick Kralevich [Mon, 27 Aug 2012 23:00:50 +0000 (16:00 -0700)]
Merge "Allow linker to compile with -DLINKER_DEBUG=1"
Elliott Hughes [Mon, 27 Aug 2012 22:00:51 +0000 (15:00 -0700)]
Merge "Added missing cache failed notification"
Nick Kralevich [Fri, 24 Aug 2012 20:40:25 +0000 (13:40 -0700)]
Allow linker to compile with -DLINKER_DEBUG=1
Change-Id: I27e734048cbcb9ed936369115582b3c734de1280
Ian Rogers [Fri, 24 Aug 2012 22:10:07 +0000 (15:10 -0700)]
Merge "Add missing va_end() to prevent stack corruptions"
Ard Biesheuvel [Tue, 21 Aug 2012 12:47:58 +0000 (14:47 +0200)]
libc: remove ctors/dtors sections
None of the supported ARCHs actually populate these sections,
so there is no point in keeping them in the binaries.
Change-Id: I21a364f510118ac1114e1b49c53ec8c895c6bc6b
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@gmail.com>
Nick Kralevich [Wed, 22 Aug 2012 18:41:53 +0000 (11:41 -0700)]
Merge "hardening: remove pointless ARM __get_pc() function"
Ard Biesheuvel [Wed, 22 Aug 2012 08:37:08 +0000 (10:37 +0200)]
hardening: remove pointless ARM __get_pc() function
Useful if you're trying to defeat ASLR, otherwise not
so much ...
Change-Id: I17ebb50bb490a3967db9c3038f049adafe2b8ea7
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@gmail.com>