OSDN Git Service

android-x86/bionic.git
9 years agoAdd back symbols to fix Greed for Glory franchise.
Christopher Ferris [Fri, 10 Oct 2014 01:31:01 +0000 (18:31 -0700)]
Add back symbols to fix Greed for Glory franchise.

Bug: 17813018

(cherry picked from commit c891e24073830e07ba7373dee554ff2c70e1d313)

Change-Id: I4e891c2dbad9ea00d2377c5175317d9ae3840153

9 years agoMerge "Sync libm with upstream."
Elliott Hughes [Fri, 10 Oct 2014 01:26:18 +0000 (01:26 +0000)]
Merge "Sync libm with upstream."

9 years agoSync libm with upstream.
Elliott Hughes [Thu, 9 Oct 2014 23:20:37 +0000 (16:20 -0700)]
Sync libm with upstream.

Change-Id: I3b4e2c9c6ce6c5934f270a51ce5eb9154c5805d5

9 years agoMerge "Fix pthread_attr_getstack under valgrind."
Elliott Hughes [Thu, 9 Oct 2014 21:17:40 +0000 (21:17 +0000)]
Merge "Fix pthread_attr_getstack under valgrind."

9 years agoFix pthread_attr_getstack under valgrind.
Elliott Hughes [Thu, 9 Oct 2014 21:01:47 +0000 (14:01 -0700)]
Fix pthread_attr_getstack under valgrind.

valgrind seems to mess with the stack enough that the kernel will
report "[stack:pid]" rather than "[stack]" in /proc/self/maps, so
switch to the task-specific file instead to force "[stack]". (There
are two conditions in the kernel code that decides which form to
output.)

Bug: 17897476
Change-Id: Iff85ceb6d52e8716251fab4e45d95a27184c5529

9 years agoMerge "Re-add dlmalloc for 32 bit."
Christopher Ferris [Thu, 9 Oct 2014 18:50:32 +0000 (18:50 +0000)]
Merge "Re-add dlmalloc for 32 bit."

9 years agoRe-add dlmalloc for 32 bit.
Christopher Ferris [Thu, 9 Oct 2014 05:48:20 +0000 (22:48 -0700)]
Re-add dlmalloc for 32 bit.

It turns out that appportable has a version that calls dlmalloc directly.
Re-add the dlmalloc symbol for 32 bit only as a compatibility shim that
calls malloc.

Bug: 17881362

(cherry pick commit from c9734d24d92f4737f5ab3808c77d816a1b084582)

Change-Id: Iee9a777f66a1edb407d7563a60792b767ac4f83a

9 years agoMerge "Use snprintf(3) instead of sprintf(3)."
Dan Albert [Thu, 9 Oct 2014 00:32:10 +0000 (00:32 +0000)]
Merge "Use snprintf(3) instead of sprintf(3)."

9 years agoUse snprintf(3) instead of sprintf(3).
Dan Albert [Thu, 9 Oct 2014 00:10:26 +0000 (17:10 -0700)]
Use snprintf(3) instead of sprintf(3).

This change should probably be made upstream as well, but they have a
note about not using it because it isn't available on all systems.

Change-Id: I6d8404c031bd2f486532ced55d94bbb4a4cd2e71

9 years agoMerge "Replace uses of sprintf(3) with snprintf(3)."
Dan Albert [Wed, 8 Oct 2014 23:44:48 +0000 (23:44 +0000)]
Merge "Replace uses of sprintf(3) with snprintf(3)."

9 years agoMerge "Build dlext_testzip as custom module."
Ying Wang [Wed, 8 Oct 2014 23:43:49 +0000 (23:43 +0000)]
Merge "Build dlext_testzip as custom module."

9 years agoBuild dlext_testzip as custom module.
Ying Wang [Wed, 8 Oct 2014 23:22:03 +0000 (16:22 -0700)]
Build dlext_testzip as custom module.

Use $(BUILD_SYSTEM)/base_rules to build it as custom module, so that
it's exposed to utilities like mm/mmma etc.

Bug: 17887283
Change-Id: Idd7b62d08e4d56331a3ff15da6aa46eae8c41898

9 years agoReplace uses of sprintf(3) with snprintf(3).
Dan Albert [Wed, 8 Oct 2014 04:08:41 +0000 (21:08 -0700)]
Replace uses of sprintf(3) with snprintf(3).

At -00, the compiler warns about sprintf(3), and it is promoted to an
error by -Werror.

Change-Id: Ibb380d27d7eb09dda8ac785be2478d656b379190

9 years agoMerge "Fix mma build: 'cd bionic && mma' case"
Dmitriy Ivanov [Wed, 8 Oct 2014 22:39:20 +0000 (22:39 +0000)]
Merge "Fix mma build: 'cd bionic && mma' case"

9 years agoFix mma build: 'cd bionic && mma' case
Dmitriy Ivanov [Wed, 8 Oct 2014 21:55:39 +0000 (14:55 -0700)]
Fix mma build: 'cd bionic && mma' case

Bug: 17887283
Change-Id: If2015f2361348eac8c53aed3f8715077b79ce2f5

9 years agoMerge "Don't silently return EINVAL for a NULL sem_t*."
Elliott Hughes [Wed, 8 Oct 2014 22:21:12 +0000 (22:21 +0000)]
Merge "Don't silently return EINVAL for a NULL sem_t*."

9 years agoMerge "Use ln(1) rather than cp(1) to set up host /system for testing."
Elliott Hughes [Wed, 8 Oct 2014 22:17:18 +0000 (22:17 +0000)]
Merge "Use ln(1) rather than cp(1) to set up host /system for testing."

9 years agoDon't silently return EINVAL for a NULL sem_t*.
Elliott Hughes [Wed, 8 Oct 2014 22:11:44 +0000 (15:11 -0700)]
Don't silently return EINVAL for a NULL sem_t*.

Bug: 17571197
Change-Id: Ied31d8de87fc10d20dc338be0457e9a4ddb9a0a5

9 years agoUse ln(1) rather than cp(1) to set up host /system for testing.
Elliott Hughes [Wed, 8 Oct 2014 21:56:27 +0000 (14:56 -0700)]
Use ln(1) rather than cp(1) to set up host /system for testing.

The trouble with cp is that if you're running a command directly (because
you're using gdb, say), you need to make sure you've copied the linker
and shell again if you've done a rebuild that caused a change there.

Change-Id: I312da30c0f92b515967e854e0faba272c961ecc7

9 years agoMerge "Fix compile-time tests for LP64."
Elliott Hughes [Wed, 8 Oct 2014 20:31:09 +0000 (20:31 +0000)]
Merge "Fix compile-time tests for LP64."

9 years agoFix compile-time tests for LP64.
Elliott Hughes [Wed, 8 Oct 2014 20:21:29 +0000 (13:21 -0700)]
Fix compile-time tests for LP64.

Change-Id: Ib9bec5c6c77c55679d64c2bc15ab70979c40e66c

9 years agoMerge "Add basic compile time tests for sn?printf."
Dan Albert [Wed, 8 Oct 2014 20:04:26 +0000 (20:04 +0000)]
Merge "Add basic compile time tests for sn?printf."

9 years agoAdd basic compile time tests for sn?printf.
Dan Albert [Wed, 8 Oct 2014 18:21:32 +0000 (11:21 -0700)]
Add basic compile time tests for sn?printf.

Bug: 17782583
Change-Id: I6443537c643d1cc6b4a8f2dab5c364f2fbc1faa3

9 years agoMerge "Revert "Work around a bug in Immersion's libImmEmulatorJ.so.""
Elliott Hughes [Wed, 8 Oct 2014 16:40:57 +0000 (16:40 +0000)]
Merge "Revert "Work around a bug in Immersion's libImmEmulatorJ.so.""

9 years agoMerge "Inline helpers need to be exported unmangled."
Dan Albert [Wed, 8 Oct 2014 00:01:08 +0000 (00:01 +0000)]
Merge "Inline helpers need to be exported unmangled."

9 years agoInline helpers need to be exported unmangled.
Dan Albert [Tue, 7 Oct 2014 18:10:36 +0000 (11:10 -0700)]
Inline helpers need to be exported unmangled.

__open_2() is used by the fortify implementation of open(2) in
fcntl.h, and as such needs an unmangled C name. For some reason
(inlining?), this doesn't cause problems at the default optimization
level, but does for -O0.

The rest of these didn't cause build failures, but they look suspect
and probably will, we just haven't caught them yet.

Bug: 17784968
Change-Id: I7391a7a8999ee204eaf6abd14a3d5373ea419d5b

9 years agoRevert "Work around a bug in Immersion's libImmEmulatorJ.so."
Elliott Hughes [Tue, 7 Oct 2014 23:31:06 +0000 (23:31 +0000)]
Revert "Work around a bug in Immersion's libImmEmulatorJ.so."

This reverts commit 7d3f553f989f830976efa92ddc3c84661d4d42aa.

Change-Id: I8909b6aa1d97e9a61dbe95a2d91b9fbe336b58f0

9 years agoMerge "Work around a bug in Immersion's libImmEmulatorJ.so."
Elliott Hughes [Tue, 7 Oct 2014 23:08:11 +0000 (23:08 +0000)]
Merge "Work around a bug in Immersion's libImmEmulatorJ.so."

9 years agoWork around a bug in Immersion's libImmEmulatorJ.so.
Elliott Hughes [Tue, 7 Oct 2014 23:02:11 +0000 (16:02 -0700)]
Work around a bug in Immersion's libImmEmulatorJ.so.

This library calls pthread_mutex_lock and pthread_mutex_unlock with a NULL
pthread_mutex_t*. This gives them (and their users) one release to fix things.

Bug: 17443936
Change-Id: I3b63c9a3dd63db0833f21073e323b3236a13b47a

9 years agoMerge "Use snprintf instead of sprintf."
Dan Albert [Tue, 7 Oct 2014 18:38:11 +0000 (18:38 +0000)]
Merge "Use snprintf instead of sprintf."

9 years agoUse snprintf instead of sprintf.
Dan Albert [Tue, 7 Oct 2014 18:07:53 +0000 (11:07 -0700)]
Use snprintf instead of sprintf.

At -O0, the attribute warning on sprintf is actually triggered (why
doesn't this happen with -Os?!) and promoted to an error by -Werror.
asctime64_r() is a non-standard function, but the IBM docs state that
the buffer is assumed to be at least 26 characters wide, and the
format string does limit to that (assuming a 4 digit year, also
defined by the IBM docs).

http://www-01.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.bpxbd00/asctimer.htm

Change-Id: I1c884474a769aa16c53e985c3d8d694c478c1189

9 years agoMerge "Fix 2nd arch prefix application"
Dmitriy Ivanov [Tue, 7 Oct 2014 17:04:23 +0000 (17:04 +0000)]
Merge "Fix 2nd arch prefix application"

9 years agoFix 2nd arch prefix application
Dmitriy Ivanov [Tue, 7 Oct 2014 16:46:46 +0000 (09:46 -0700)]
Fix 2nd arch prefix application

Bug: 17887283
Change-Id: I7b3b2332212fe416d6b5f5c2e5c1e07605ba09aa

9 years agoMerge "Force export symbols on all x86 variants in libc."
Christopher Ferris [Mon, 6 Oct 2014 23:45:02 +0000 (23:45 +0000)]
Merge "Force export symbols on all x86 variants in libc."

9 years agoForce export symbols on all x86 variants in libc.
Christopher Ferris [Mon, 6 Oct 2014 22:11:28 +0000 (15:11 -0700)]
Force export symbols on all x86 variants in libc.

For silvermont, the __popcountsi2 symbol does not get exported by libc.
But for atom, this symbol is exported. Since we already exported this symbol
for previous releases, it's better to just follow through and force
the export, but only for 32 bit. x86 64 bit will not export this symbol.

Bug: 17681440

(cherry picked from commit d11eac3455a059a092ceee92eda9905e1d661e94)

Change-Id: I93704c721d98d569922f606f214069bda24872ba

9 years agoMerge "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions"
Nick Kralevich [Mon, 6 Oct 2014 23:21:03 +0000 (23:21 +0000)]
Merge "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions"

9 years agocdefs.h: add artificial attribute to FORTIFY_SOURCE functions
Nick Kralevich [Mon, 6 Oct 2014 21:49:00 +0000 (14:49 -0700)]
cdefs.h: add artificial attribute to FORTIFY_SOURCE functions

Otherwise the gcc compiler warning doesn't show up.

Add -Wno-error to fortify related tests. Fortify related tests
are expected to be examples of bad programs, and in many
cases shouldn't compile cleanly. Rewriting them to compile
cleanly isn't feasible nor desirable.

Bug: 17784968
Change-Id: I93bececa7444d965f18c7c27d46e7abce5c49a02

9 years agoMerge "Add compile time test infrastructure for bionic."
Dan Albert [Mon, 6 Oct 2014 19:45:31 +0000 (19:45 +0000)]
Merge "Add compile time test infrastructure for bionic."

9 years agoMerge "Resolve "unused DT entry" warnings for x86_64"
Dmitriy Ivanov [Mon, 6 Oct 2014 19:07:57 +0000 (19:07 +0000)]
Merge "Resolve "unused DT entry" warnings for x86_64"

9 years agoAdd compile time test infrastructure for bionic.
Dan Albert [Fri, 3 Oct 2014 20:46:42 +0000 (13:46 -0700)]
Add compile time test infrastructure for bionic.

Actual tests to follow...

Bug: 17782583
Change-Id: I22857f19899c3b39dbc2e5473ad3be1a8a291139

9 years agoResolve "unused DT entry" warnings for x86_64
Dmitriy Ivanov [Mon, 6 Oct 2014 18:30:43 +0000 (11:30 -0700)]
Resolve "unused DT entry" warnings for x86_64

Change-Id: I3a2c87bf6e6259313cd9203389623f13b7405ef3

9 years agoMerge "Add file_offset parameter to android_extinfo"
Dmitriy Ivanov [Mon, 6 Oct 2014 17:19:38 +0000 (17:19 +0000)]
Merge "Add file_offset parameter to android_extinfo"

9 years agoAdd file_offset parameter to android_extinfo
Dmitriy Ivanov [Sat, 4 Oct 2014 00:52:44 +0000 (17:52 -0700)]
Add file_offset parameter to android_extinfo

Bug: 17762003
Change-Id: I8fb267a3155acef3dba534038cf5d1ef00d7154b

9 years agoMerge "Revert "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions""
Nick Kralevich [Mon, 6 Oct 2014 00:40:07 +0000 (00:40 +0000)]
Merge "Revert "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions""

9 years agoRevert "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions"
Nick Kralevich [Mon, 6 Oct 2014 00:39:47 +0000 (00:39 +0000)]
Revert "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions"

Broke the build.

In file included from frameworks/rs/cpu_ref/rsCpuCore.cpp:36:
system/core/include/cutils/properties.h:118:1: error: unknown attribute '__artificial__' ignored [-Werror,-Wunknown-attributes]
__BIONIC_FORTIFY_INLINE
^
bionic/libc/include/sys/cdefs.h:537:110: note: expanded from macro '__BIONIC_FORTIFY_INLINE'
#define __BIONIC_FORTIFY_INLINE extern __inline__ __always_inline __attribute__((gnu_inline)) __attribute__((__artificial__))
                                                                                                             ^
1 error generated.
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuCore.o] Error 1
This reverts commit 9b543ffeac216189cc8125f7624da9a8cbcbe2e4.

Change-Id: I6a1198747505dcb402b722887c1bfbc3a628a8b8

9 years agoMerge "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions"
Nick Kralevich [Mon, 6 Oct 2014 00:10:47 +0000 (00:10 +0000)]
Merge "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions"

9 years agoMerge "further cleanup memcpy fortify implementation"
Nick Kralevich [Sun, 5 Oct 2014 16:43:24 +0000 (16:43 +0000)]
Merge "further cleanup memcpy fortify implementation"

9 years agofurther cleanup memcpy fortify implementation
Nick Kralevich [Sun, 5 Oct 2014 13:52:24 +0000 (06:52 -0700)]
further cleanup memcpy fortify implementation

Change-Id: I0380f3c8ca8f9bb8a206accd839c32c9daf13c56

9 years agocdefs.h: add artificial attribute to FORTIFY_SOURCE functions
Nick Kralevich [Sat, 4 Oct 2014 22:26:29 +0000 (15:26 -0700)]
cdefs.h: add artificial attribute to FORTIFY_SOURCE functions

Otherwise the gcc compiler warning doesn't show up.

Delete some unittests. These unittests no longer compile cleanly
using -Wall -Werror, and rewriting them to compile cleanly
isn't feasible.

Bug: 17784968
Change-Id: I9bbdc7b6a1c2ac75754f5d0f90782e0dfae66721

9 years agoMerge "string.h: remove unused variable"
Nick Kralevich [Sat, 4 Oct 2014 22:38:08 +0000 (22:38 +0000)]
Merge "string.h: remove unused variable"

9 years agostring.h: remove unused variable
Nick Kralevich [Sat, 4 Oct 2014 22:20:00 +0000 (15:20 -0700)]
string.h: remove unused variable

Change-Id: I08b7dab1b374ad427fcbee4183f2c7d93d0199a9

9 years agoMerge "Reimplement clock(3) using clock_gettime(3)"
Elliott Hughes [Sat, 4 Oct 2014 01:57:42 +0000 (01:57 +0000)]
Merge "Reimplement clock(3) using clock_gettime(3)"

9 years agoReimplement clock(3) using clock_gettime(3)
Alex Van Brunt [Fri, 26 Sep 2014 20:32:47 +0000 (13:32 -0700)]
Reimplement clock(3) using clock_gettime(3)

Unlike times(), clock_gettime() is implemented as a vDSO on many architectures.
So, using clock_gettime() will return a more accurate time and do so with less
overhead because it does have the overhead of calling into the kernel.

It is also significantly more accurate because it measures the actual time in
nanoseconds rather than the number of ticks (typically 1 millisecond or more).

Bug: 17814435
Change-Id: Id4945d9f387330518f78669809639952e9227ed9

9 years agoMerge "Add RTLD_NODELETE flag support"
Dmitriy Ivanov [Thu, 2 Oct 2014 21:47:29 +0000 (21:47 +0000)]
Merge "Add RTLD_NODELETE flag support"

9 years agoMerge "Make memory_order_acquire visible in global namespace"
Hans Boehm [Wed, 1 Oct 2014 19:16:49 +0000 (19:16 +0000)]
Merge "Make memory_order_acquire visible in global namespace"

9 years agoMerge "Add stpcpy assembler version."
Christopher Ferris [Wed, 1 Oct 2014 18:16:14 +0000 (18:16 +0000)]
Merge "Add stpcpy assembler version."

9 years agoAdd RTLD_NODELETE flag support
Dmitriy Ivanov [Mon, 19 May 2014 22:06:58 +0000 (15:06 -0700)]
Add RTLD_NODELETE flag support

Bug: https://code.google.com/p/android/issues/detail?id=64069
Change-Id: Ie5f90482feae86391172be4b32d6cb7d76f446fb

9 years agoMerge "Update bionic to tzdata 2014h."
Elliott Hughes [Wed, 1 Oct 2014 17:20:33 +0000 (17:20 +0000)]
Merge "Update bionic to tzdata 2014h."

9 years agoMerge "Fix update-tzdata.py to rebuild icu4c .dat file."
Elliott Hughes [Wed, 1 Oct 2014 17:00:23 +0000 (17:00 +0000)]
Merge "Fix update-tzdata.py to rebuild icu4c .dat file."

9 years agoAdd stpcpy assembler version.
Christopher Ferris [Tue, 30 Sep 2014 18:53:13 +0000 (11:53 -0700)]
Add stpcpy assembler version.

For generic, continue to use the C version of the code.

Bug: 13746695
Change-Id: I77426a70b06131f2373bb51265bea1240bb3f101

9 years agoMake memory_order_acquire visible in global namespace
Hans Boehm [Wed, 1 Oct 2014 01:31:04 +0000 (18:31 -0700)]
Make memory_order_acquire visible in global namespace

We were missing that using directive when including <atomic>.

Bug:17736764
Change-Id: Ie8ca92a952749415567bcd5fa21d56629a364660

9 years agoMerge "Add coverage flag for libm."
Dan Albert [Wed, 1 Oct 2014 01:28:24 +0000 (01:28 +0000)]
Merge "Add coverage flag for libm."

9 years agoUpdate bionic to tzdata 2014h.
Elliott Hughes [Wed, 1 Oct 2014 00:35:38 +0000 (17:35 -0700)]
Update bionic to tzdata 2014h.

From the release notes:

  Changes affecting past time stamps

    America/Jamaica's 1974 spring-forward transition was Jan. 6, not Apr. 28.

    Shanks says Asia/Novokuznetsk switched from LMT (not "NMT") on 1924-05-01,
    not 1920-01-06.  The old entry was based on a misinterpretation of Shanks.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Blantyre, Africa/Bujumbura,
    Africa/Gaborone, Africa/Harare, Africa/Kigali, Africa/Lubumbashi,
    Africa/Lusaka, Africa/Maseru, and Africa/Mbabane.

Bug: 17731498
Change-Id: If65b740d4e3a67075cca770655a1df17952c3da0

9 years agoFix update-tzdata.py to rebuild icu4c .dat file.
Elliott Hughes [Wed, 1 Oct 2014 00:30:01 +0000 (17:30 -0700)]
Fix update-tzdata.py to rebuild icu4c .dat file.

Bug: 17731498
Change-Id: I4c810507c0ca9883dde1bece14530db80485b8f6

9 years agoAdd coverage flag for libm.
Dan Albert [Tue, 30 Sep 2014 23:56:43 +0000 (16:56 -0700)]
Add coverage flag for libm.

Change-Id: I195d38c5e1f50d1cc6d4353dc8857f11b803b7a3

9 years agoMerge "Update our FreeBSD realpath(3) to upstream head."
Elliott Hughes [Tue, 30 Sep 2014 23:55:57 +0000 (23:55 +0000)]
Merge "Update our FreeBSD realpath(3) to upstream head."

9 years agoMerge "Fix mips build"
Dmitriy Ivanov [Tue, 30 Sep 2014 23:42:24 +0000 (23:42 +0000)]
Merge "Fix mips build"

9 years agoMerge "Clean up the pthread key tests."
Dan Albert [Tue, 30 Sep 2014 23:41:06 +0000 (23:41 +0000)]
Merge "Clean up the pthread key tests."

9 years agoUpdate our FreeBSD realpath(3) to upstream head.
Elliott Hughes [Tue, 30 Sep 2014 23:15:42 +0000 (16:15 -0700)]
Update our FreeBSD realpath(3) to upstream head.

Change-Id: I8c89728184ecd2c1a28a05cefa84a5037d28b552

9 years agoFix mips build
Dmitriy Ivanov [Tue, 30 Sep 2014 23:30:22 +0000 (16:30 -0700)]
Fix mips build

Change-Id: I4454e69a982f239b168678c5a681d1078b4bd4f1

9 years agoClean up the pthread key tests.
Dan Albert [Tue, 30 Sep 2014 18:48:24 +0000 (11:48 -0700)]
Clean up the pthread key tests.

The previous pthread_key_create_many test was really
pthread_key_create_all, which has proven very difficult to test
correctly (because it is affected by any other parts of the system using
pthread keys, and that can vary with test ordering). It also tested
expected values of PTHREAD_KEYS_MAX and the associated sysconf() value,
rather than those being in their own test.

Instead, split this test into a few distinct tests:

 * pthread.pthread_keys_max
 * pthread._SC_THREAD_KEYS_MAX_big_enough_for_POSIX
 * pthread.pthread_key_many_distinct
     * We actually didn't have a test to ensure that the keys we were
       creating were distinct.
 * pthread.pthread_key_EAGAIN
     * Make sure pthread_key_create() will _eventually_ fail with
       EAGAIN, not at a (sometimes incorrectly) predetermined maximum.

Change-Id: Iff1e4fdcc02404094bde0418122c64c227cf1702

9 years agoMerge "Fix unused DT entry warnings."
Dmitriy Ivanov [Tue, 30 Sep 2014 22:14:32 +0000 (22:14 +0000)]
Merge "Fix unused DT entry warnings."

9 years agoFix unused DT entry warnings.
Dmitriy Ivanov [Tue, 30 Sep 2014 02:14:45 +0000 (19:14 -0700)]
Fix unused DT entry warnings.

 DT_STRSZ Implement strtab boundary checks
 DT_FLAGS_1 Warn if flags other than DF_1_NOW|DF_1_GLOBAL are set

Bug: 17552334
Change-Id: Iaad29cd52f5b2d7d2f785fb351697906dc1617d9

9 years agoMerge "Switch benchmarks and tests to libc++."
Dan Albert [Tue, 30 Sep 2014 17:30:57 +0000 (17:30 +0000)]
Merge "Switch benchmarks and tests to libc++."

9 years agoMerge "Ignore multiple symbol definition errors."
Dan Albert [Tue, 30 Sep 2014 17:30:52 +0000 (17:30 +0000)]
Merge "Ignore multiple symbol definition errors."

9 years agoSwitch benchmarks and tests to libc++.
Dan Albert [Fri, 26 Sep 2014 22:37:52 +0000 (15:37 -0700)]
Switch benchmarks and tests to libc++.

Change-Id: I3b9c8f8c14a1e227e67ae1977cc29b0e8fccef5d

9 years agoIgnore multiple symbol definition errors.
Dan Albert [Mon, 29 Sep 2014 22:16:46 +0000 (15:16 -0700)]
Ignore multiple symbol definition errors.

libc and libc++ both define std::nothrow. libc's is a private symbol,
but this still causes issues when linking libc.a and libc++.a, since
private isn't effective until it has been linked. To fix this, just
allow multiple symbol definitions for the static tests.

Change-Id: Idbf19fefda47298c39360e3f5b6242b0b1a52fcc

9 years agoMerge "Return has_DT_SYMBOLIC flag."
Dmitriy Ivanov [Tue, 30 Sep 2014 16:40:25 +0000 (16:40 +0000)]
Merge "Return has_DT_SYMBOLIC flag."

9 years agoMerge "Remove arch-mips64/bionic/__get_sp.S"
Andrew Hsieh [Tue, 30 Sep 2014 00:01:01 +0000 (00:01 +0000)]
Merge "Remove arch-mips64/bionic/__get_sp.S"

9 years agoRemove arch-mips64/bionic/__get_sp.S
Andrew Hsieh [Mon, 29 Sep 2014 23:54:38 +0000 (07:54 +0800)]
Remove arch-mips64/bionic/__get_sp.S

__get_sp.S doesn't exist

Change-Id: Id84f8904c8022c683263a317a18fabeb50fed992

9 years agoMerge "Cleanup arm assembly."
Christopher Ferris [Mon, 29 Sep 2014 23:12:39 +0000 (23:12 +0000)]
Merge "Cleanup arm assembly."

9 years agoCleanup arm assembly.
Christopher Ferris [Mon, 29 Sep 2014 22:34:20 +0000 (15:34 -0700)]
Cleanup arm assembly.

Remove the old arm directives.
Change the non-local labels to .L labels.
Add cfi directives to strcpy.S.

Change-Id: I9bafee1ffe5d85c92d07cfa8a85338cef9759562

9 years agoReturn has_DT_SYMBOLIC flag.
Dmitriy Ivanov [Mon, 29 Sep 2014 19:10:36 +0000 (12:10 -0700)]
Return has_DT_SYMBOLIC flag.

This reverts commit 8f61d991831f0ea515fa50a5c38dbbcfbab0dd28

 Despite the fact that static linker does all the work while linking
 -Bsymbolic executables, according to the SCO doc following DT_SYMBOLIC
 and DF_SYMBOLIC flags is still a requirement for the dynamic linker
 as well.

 (see http://www.sco.com/developers/gabi/2012-12-31/ch5.dynamic.html)

Change-Id: I23f6a5e9b662e40cdbc462b64feff912431e800c

9 years agoMerge "Static libc++ is being renamed libc++_static."
Dan Albert [Mon, 29 Sep 2014 16:08:35 +0000 (16:08 +0000)]
Merge "Static libc++ is being renamed libc++_static."

9 years agoStatic libc++ is being renamed libc++_static.
Dan Albert [Sat, 27 Sep 2014 16:22:07 +0000 (09:22 -0700)]
Static libc++ is being renamed libc++_static.

Change-Id: I1596110e4ed7e8f9ab9e2605dfcd9fd0489ca0d1

9 years agoMerge "Make __aeabi_*() symbols weak."
Dan Albert [Sat, 27 Sep 2014 00:19:14 +0000 (00:19 +0000)]
Merge "Make __aeabi_*() symbols weak."

9 years agoMerge "Add a dummy libdl.a."
Dan Albert [Sat, 27 Sep 2014 00:19:05 +0000 (00:19 +0000)]
Merge "Add a dummy libdl.a."

9 years agoMerge "Fix gdb could not get shared library list issue"
Elliott Hughes [Fri, 26 Sep 2014 23:00:59 +0000 (23:00 +0000)]
Merge "Fix gdb could not get shared library list issue"

9 years agoFix gdb could not get shared library list issue
Ningsheng Jian [Tue, 16 Sep 2014 07:22:10 +0000 (15:22 +0800)]
Fix gdb could not get shared library list issue

Get dynamic flags from phdr table's correct entry rather the first
entry, so that the following DT_DEBUG entry can be set.

Also fix the undefined reference to LoadTask::deleter issue under gcc
-O0 option.

Bug: 17524778
Change-Id: I9c679af197b034761fb739d6c980e628ff2ab84c

9 years agoMake __aeabi_*() symbols weak.
Dan Albert [Fri, 26 Sep 2014 22:36:14 +0000 (15:36 -0700)]
Make __aeabi_*() symbols weak.

This is needed to avoid multiple symbol definitions when linking with
libstdc++ or with compiler-rt.

Change-Id: I2f713bcff113222f0d2538e49691e715d8a8475d

9 years agoAdd a dummy libdl.a.
Dan Albert [Fri, 26 Sep 2014 22:23:07 +0000 (15:23 -0700)]
Add a dummy libdl.a.

Change-Id: I4b30b8875f14352bae2948ab8cf544ae818795ab

9 years agoMerge "Add __memcpy_chk assembly for 64 bit."
Christopher Ferris [Fri, 26 Sep 2014 20:39:21 +0000 (20:39 +0000)]
Merge "Add __memcpy_chk assembly for 64 bit."

9 years agoAdd __memcpy_chk assembly for 64 bit.
Christopher Ferris [Thu, 25 Sep 2014 00:05:20 +0000 (17:05 -0700)]
Add __memcpy_chk assembly for 64 bit.

Bug: 17623887
Change-Id: I443723bc941b40f84884b330d222baabee01f868

9 years agoMerge "Prevent benchmarks from being optimized away."
Dan Albert [Thu, 25 Sep 2014 22:52:53 +0000 (22:52 +0000)]
Merge "Prevent benchmarks from being optimized away."

9 years agoPrevent benchmarks from being optimized away.
Dan Albert [Thu, 25 Sep 2014 22:43:48 +0000 (15:43 -0700)]
Prevent benchmarks from being optimized away.

Change-Id: I2d27b39ecdfc50e78098314567c295a2f113f8d3

9 years agoMerge "Re-expose more stdio implementation details for LP32."
Elliott Hughes [Thu, 25 Sep 2014 03:08:23 +0000 (03:08 +0000)]
Merge "Re-expose more stdio implementation details for LP32."

9 years agoRe-expose more stdio implementation details for LP32.
Elliott Hughes [Thu, 25 Sep 2014 00:20:53 +0000 (17:20 -0700)]
Re-expose more stdio implementation details for LP32.

Keeps a variety of apps running.

(cherry-pick of 5def2f5aecd968e4022b0afbe4441fa7ba3e7c7e.)

Bug: 17047819
Change-Id: I55882ec95f2b59a5df76e5a89c23aa315609e01d

9 years agoMerge "Fix sys_stat.mkfifo when not run as root."
Christopher Ferris [Wed, 24 Sep 2014 23:56:06 +0000 (23:56 +0000)]
Merge "Fix sys_stat.mkfifo when not run as root."

9 years agoFix sys_stat.mkfifo when not run as root.
Christopher Ferris [Wed, 24 Sep 2014 23:01:18 +0000 (16:01 -0700)]
Fix sys_stat.mkfifo when not run as root.

It's not allowed for a shell user to create a fifo in /data/local/tmp.
Make the test do nothing if not run as root.

Bug: 17646702

(cherry picked from commit 6c69afdb6ddd56e011b59e3060f12a5bdffb5f5c)

Change-Id: Ia3a862ed4586413b7bb393557ab57e0a7141d888

9 years agoMerge "Switch to OpenBSD fopen/fclose."
Elliott Hughes [Wed, 24 Sep 2014 20:24:47 +0000 (20:24 +0000)]
Merge "Switch to OpenBSD fopen/fclose."