OSDN Git Service

android-x86/bionic.git
9 years agoMerge "Improve math tests to allow a specific ulp bound."
Elliott Hughes [Wed, 5 Nov 2014 02:02:18 +0000 (02:02 +0000)]
Merge "Improve math tests to allow a specific ulp bound."

9 years agoImprove math tests to allow a specific ulp bound.
Elliott Hughes [Tue, 4 Nov 2014 01:03:20 +0000 (17:03 -0800)]
Improve math tests to allow a specific ulp bound.

At the moment our libm is only good enough for a 1 ulp bound on these tests,
but that's better than the 4 ulp bound you get from gtest by default.

I'm not really happy with the multiple structures and corresponding functions,
but at least they mean there's no duplication in the tests themselves, and it
should be easy enough for us to make further improvements in future.

Change-Id: I004e12970332e1d9531721361d6c34f908cfcecc

9 years agoMerge "Fix warning of missing field initializer."
Chih-Hung Hsieh [Wed, 5 Nov 2014 00:46:36 +0000 (00:46 +0000)]
Merge "Fix warning of missing field initializer."

9 years agoFix warning of missing field initializer.
Chih-Hung Hsieh [Tue, 4 Nov 2014 20:09:35 +0000 (12:09 -0800)]
Fix warning of missing field initializer.

BUG: 18241135
Change-Id: I91304eb608bc3336ce5fcd5744fbe080d64f1cc2

9 years agoMerge "Make host tests depend on /system/etc/hosts."
Dan Albert [Mon, 3 Nov 2014 21:38:50 +0000 (21:38 +0000)]
Merge "Make host tests depend on /system/etc/hosts."

9 years agoMerge "Ensure we initialize stdin/stdout/stderr's recursive mutexes."
Elliott Hughes [Mon, 3 Nov 2014 21:32:28 +0000 (21:32 +0000)]
Merge "Ensure we initialize stdin/stdout/stderr's recursive mutexes."

9 years agoMake host tests depend on /system/etc/hosts.
Dan Albert [Mon, 3 Nov 2014 21:26:16 +0000 (13:26 -0800)]
Make host tests depend on /system/etc/hosts.

Change-Id: I3e5ab1325d5e250a1d14b53f3a5a465d9f5de30c

9 years agoEnsure we initialize stdin/stdout/stderr's recursive mutexes.
Elliott Hughes [Mon, 3 Nov 2014 20:32:17 +0000 (12:32 -0800)]
Ensure we initialize stdin/stdout/stderr's recursive mutexes.

Bug: 18208568
Change-Id: I9da16ce0f9375bc363d1d02be706d73fd3b1e150

9 years agoMerge "Revert "Use local copy of the library name on dlopen""
Dmitriy Ivanov [Sat, 1 Nov 2014 02:32:22 +0000 (02:32 +0000)]
Merge "Revert "Use local copy of the library name on dlopen""

9 years agoRevert "Use local copy of the library name on dlopen"
Dmitriy Ivanov [Sat, 1 Nov 2014 02:30:38 +0000 (02:30 +0000)]
Revert "Use local copy of the library name on dlopen"

This reverts commit da8e591c3996879e41dc5f70b77d1b0fe6f9c225.

Change-Id: I3fd6f235b18c232af5cc5ecd481851486d7d68f6

9 years agoMerge "Fix arm64 and arm builds."
Dmitriy Ivanov [Sat, 1 Nov 2014 00:33:29 +0000 (00:33 +0000)]
Merge "Fix arm64 and arm builds."

9 years agoFix arm64 and arm builds.
Dmitriy Ivanov [Sat, 1 Nov 2014 00:27:02 +0000 (17:27 -0700)]
Fix arm64 and arm builds.

Change-Id: I2c8c41626768e792f27a2616f2cd5ae66606319d

9 years agoMerge "Fix symbol lookup order during relocation"
Dmitriy Ivanov [Fri, 31 Oct 2014 23:51:18 +0000 (23:51 +0000)]
Merge "Fix symbol lookup order during relocation"

9 years agoMerge "Use local copy of the library name on dlopen"
Dmitriy Ivanov [Fri, 31 Oct 2014 22:47:24 +0000 (22:47 +0000)]
Merge "Use local copy of the library name on dlopen"

9 years agoUse local copy of the library name on dlopen
Dmitriy Ivanov [Fri, 31 Oct 2014 20:46:42 +0000 (13:46 -0700)]
Use local copy of the library name on dlopen

Bug: 18052100
Change-Id: Idbc2a3691db3b5525d4e9bca81d78d5f29bc438f

9 years agoFix symbol lookup order during relocation
Dmitriy Ivanov [Thu, 28 Aug 2014 21:12:12 +0000 (14:12 -0700)]
Fix symbol lookup order during relocation

  Relocate symbol against DF_1_GLOBAL shared libraries
  loaded before this shared library. This includes
  main executable, ld_preloads and other libraries
  that have DF_1_GLOBAL flag set.

Bug: 2643900
Bug: 15432753
Change-Id: Ia788748be59b739d1c7e62b978e7e255f9e65c7b

9 years agoMerge "limits.h: add define for HOST_NAME_MAX"
Elliott Hughes [Thu, 30 Oct 2014 15:56:44 +0000 (15:56 +0000)]
Merge "limits.h: add define for HOST_NAME_MAX"

9 years agolimits.h: add define for HOST_NAME_MAX
Yongqin Liu [Wed, 29 Oct 2014 06:47:47 +0000 (14:47 +0800)]
limits.h: add define for HOST_NAME_MAX

according to the rules defined here:
    http://pubs.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html
add the definition for HOST_NAME_MAX to limits.h file,
and set the default value to _POSIX_HOST_NAME_MAX as 255

Change-Id: Iddd5c6c569f4e0a14994c7a7c54985f3e7809fc4
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agoMerge "Remove an unused file."
Elliott Hughes [Wed, 29 Oct 2014 20:46:30 +0000 (20:46 +0000)]
Merge "Remove an unused file."

9 years agoRemove an unused file.
Elliott Hughes [Wed, 29 Oct 2014 20:42:23 +0000 (13:42 -0700)]
Remove an unused file.

We don't have any FreeBSD stdio left.

Bug: 17154680
Change-Id: I145627f564364ac8d4707d431d451cc3115c1c6a

9 years agoMerge "Extra strtod/strtof tests."
Elliott Hughes [Wed, 29 Oct 2014 17:22:33 +0000 (17:22 +0000)]
Merge "Extra strtod/strtof tests."

9 years agoExtra strtod/strtof tests.
Elliott Hughes [Wed, 29 Oct 2014 00:54:23 +0000 (17:54 -0700)]
Extra strtod/strtof tests.

Check that libc doesn't suffer from a couple of bugs that affected
Java in the past.

Bug: 2206701
Change-Id: I9eb64d7ff2fa0b79e93079b897a5fb78bef866be

9 years agoMerge "change unsigned int to uint32_t for api arc4random/arc4random_uniform"
Yabin Cui [Tue, 28 Oct 2014 22:58:39 +0000 (22:58 +0000)]
Merge "change unsigned int to uint32_t for api arc4random/arc4random_uniform"

9 years agochange unsigned int to uint32_t for api arc4random/arc4random_uniform
Yabin Cui [Tue, 28 Oct 2014 19:04:02 +0000 (12:04 -0700)]
change unsigned int to uint32_t for api arc4random/arc4random_uniform

Bug: 17894480
Change-Id: Ia4b5a7cd2b2c6002ed70955f86f7780d26d15e26

9 years agoMerge "Disable tzdata in $ANDROID_DATA."
Elliott Hughes [Tue, 28 Oct 2014 16:34:45 +0000 (16:34 +0000)]
Merge "Disable tzdata in $ANDROID_DATA."

9 years agoDisable tzdata in $ANDROID_DATA.
Elliott Hughes [Mon, 27 Oct 2014 20:38:21 +0000 (13:38 -0700)]
Disable tzdata in $ANDROID_DATA.

(cherry picked from 4c30130a2155c37e80af4c3b53bf4f6ce832e760.)

Bug: 18139284
Change-Id: I2670dc1791d635139a5d39a438dc08777439476b

9 years agoMerge "[x86,x86_64] Fix libgcc unwinding through signal"
Elliott Hughes [Mon, 27 Oct 2014 23:30:55 +0000 (23:30 +0000)]
Merge "[x86,x86_64] Fix libgcc unwinding through signal"

9 years ago[x86,x86_64] Fix libgcc unwinding through signal
Pavel Chupin [Fri, 26 Sep 2014 12:02:09 +0000 (16:02 +0400)]
[x86,x86_64] Fix libgcc unwinding through signal

This change provides __restore/__restore_rt on x86 and __restore_rt on
x86_64 with unwinding information to be able to unwind through signal
frame via libgcc provided unwinding interface. See comments inlined for
more details.

Also remove the test that had a dependency on
__attribute__((cleanup(foo_cleanup))). It doesn't provide us with any
better test coverage than we have from the newer tests, and it doesn't
work well across a variety architectures (presumably because no one uses
this attribute in the real world).

Tested this on host via bionic-unit-tests-run-on-host on both x86 and
x86-64.

Bug: 17436734
Change-Id: I2f06814e82c8faa732cb4f5648868dc0fd2e5fe4
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
9 years agoMerge "pthread_setname_np appears in glibc 2.12."
Elliott Hughes [Mon, 27 Oct 2014 20:01:36 +0000 (20:01 +0000)]
Merge "pthread_setname_np appears in glibc 2.12."

9 years agopthread_setname_np appears in glibc 2.12.
Elliott Hughes [Mon, 27 Oct 2014 19:01:51 +0000 (12:01 -0700)]
pthread_setname_np appears in glibc 2.12.

And our emulator kernels are now new enough to not require a workaround.

Change-Id: Id56c983dbfd8abc69f72a78411a5502391941dfc

9 years agoMerge "Fix the type of u_ar0 in <sys/user.h>."
Elliott Hughes [Mon, 27 Oct 2014 17:40:59 +0000 (17:40 +0000)]
Merge "Fix the type of u_ar0 in <sys/user.h>."

9 years agoMerge "POSIX says pthread_mutex_trylock returns EBUSY, not EDEADLK."
Elliott Hughes [Mon, 27 Oct 2014 17:38:33 +0000 (17:38 +0000)]
Merge "POSIX says pthread_mutex_trylock returns EBUSY, not EDEADLK."

9 years agoMerge "Fix *tests-run-on-host target"
Dmitriy Ivanov [Sun, 26 Oct 2014 05:47:52 +0000 (05:47 +0000)]
Merge "Fix *tests-run-on-host target"

9 years agoFix *tests-run-on-host target
Dmitriy Ivanov [Sat, 25 Oct 2014 19:41:23 +0000 (12:41 -0700)]
Fix *tests-run-on-host target

Change-Id: Id0e5060977a2df91c47b5a916989eb7e2e3f8153

9 years agoFix the type of u_ar0 in <sys/user.h>.
Elliott Hughes [Sat, 25 Oct 2014 03:57:09 +0000 (20:57 -0700)]
Fix the type of u_ar0 in <sys/user.h>.

Change-Id: I9332dea60f7c60b45bc80026686c266bfa7a782c

9 years agoPOSIX says pthread_mutex_trylock returns EBUSY, not EDEADLK.
Elliott Hughes [Sat, 25 Oct 2014 02:33:11 +0000 (19:33 -0700)]
POSIX says pthread_mutex_trylock returns EBUSY, not EDEADLK.

Found by unit test.

Change-Id: Iffbd2f04213616927fbd7b5419460031f7a078e9

9 years agoMerge "bionic tests: migrate test for mutex type from system/extras"
Elliott Hughes [Sat, 25 Oct 2014 02:03:19 +0000 (02:03 +0000)]
Merge "bionic tests: migrate test for mutex type from system/extras"

9 years agobionic tests: migrate test for mutex type from system/extras
Derek Xue [Thu, 25 Sep 2014 10:05:32 +0000 (11:05 +0100)]
bionic tests: migrate test for mutex type from system/extras

Migrate the test about pthread mutex type in file
    system/extras/tests/bionic/libc/bionic/test_mutex.c
to the new place
    bionic/tests/pthread_test.cpp
in the gtest format.

Change-Id: I6aab10170ccad5b9a4892d52dba2403876c86659
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agoMerge "Remove unnecessary reinterpret_cast"
Dmitriy Ivanov [Fri, 24 Oct 2014 22:05:35 +0000 (22:05 +0000)]
Merge "Remove unnecessary reinterpret_cast"

9 years agoRemove unnecessary reinterpret_cast
Dmitriy Ivanov [Fri, 24 Oct 2014 21:46:12 +0000 (14:46 -0700)]
Remove unnecessary reinterpret_cast

Change-Id: Id2ddf4e74bc66825206d1287f899d716537a68d0

9 years agoMerge "Disable clang compilation due to lack of ifunc."
Chih-Hung Hsieh [Fri, 24 Oct 2014 18:34:40 +0000 (18:34 +0000)]
Merge "Disable clang compilation due to lack of ifunc."

9 years agoMerge "Make the netdb unit tests work on the host."
Elliott Hughes [Fri, 24 Oct 2014 18:30:36 +0000 (18:30 +0000)]
Merge "Make the netdb unit tests work on the host."

9 years agoDisable clang compilation due to lack of ifunc.
Chih-Hung Hsieh [Fri, 24 Oct 2014 18:04:51 +0000 (11:04 -0700)]
Disable clang compilation due to lack of ifunc.

BUG: 18055309
Change-Id: I0f36011cf7872a20ddd36a6c3c607eb96f0a8ec2

9 years agoMake the netdb unit tests work on the host.
Elliott Hughes [Fri, 24 Oct 2014 05:14:32 +0000 (22:14 -0700)]
Make the netdb unit tests work on the host.

Bug: 18111005
Change-Id: I79c6929c3827716e19b44d7469db69740f4b449c

9 years agoMerge "Use mxcr_mask instead of mxcsr_mask to match glibc."
Elliott Hughes [Fri, 24 Oct 2014 15:40:43 +0000 (15:40 +0000)]
Merge "Use mxcr_mask instead of mxcsr_mask to match glibc."

9 years agoUse mxcr_mask instead of mxcsr_mask to match glibc.
Elliott Hughes [Fri, 24 Oct 2014 03:29:42 +0000 (20:29 -0700)]
Use mxcr_mask instead of mxcsr_mask to match glibc.

Bug: 18097559
Change-Id: Iaca301d7d4c4902989d4699117f72b88d5c4bd78

9 years agoMerge "Add mkfifoat(3)."
Elliott Hughes [Fri, 24 Oct 2014 02:57:11 +0000 (02:57 +0000)]
Merge "Add mkfifoat(3)."

9 years agoAdd mkfifoat(3).
Elliott Hughes [Fri, 24 Oct 2014 02:10:23 +0000 (19:10 -0700)]
Add mkfifoat(3).

Looks like I missed one of the *at functions when I added the rest.

Change-Id: If16de82dbf6f9a3ea7bfdcba406ca1c74a3f2279

9 years agoMerge "Fix mips build"
Dmitriy Ivanov [Thu, 23 Oct 2014 22:53:23 +0000 (22:53 +0000)]
Merge "Fix mips build"

9 years agoMerge "Remove unnecessary lookups during relocations"
Dmitriy Ivanov [Thu, 23 Oct 2014 22:53:13 +0000 (22:53 +0000)]
Merge "Remove unnecessary lookups during relocations"

9 years agoFix mips build
Dmitriy Ivanov [Thu, 23 Oct 2014 21:34:12 +0000 (14:34 -0700)]
Fix mips build

Change-Id: Ia2dc2e07740bdbb91ee92bfea459230015fcc99b

9 years agoRemove unnecessary lookups during relocations
Dmitriy Ivanov [Thu, 23 Oct 2014 21:19:07 +0000 (14:19 -0700)]
Remove unnecessary lookups during relocations

  local_group includes this library and its dependencies.

Change-Id: Ib02474b2355bb147de3889f60092cb2f312997ef

9 years agoMerge "Fix relocation to look for symbols in local group"
Dmitriy Ivanov [Thu, 23 Oct 2014 20:48:59 +0000 (20:48 +0000)]
Merge "Fix relocation to look for symbols in local group"

9 years agoFix relocation to look for symbols in local group
Dmitriy Ivanov [Tue, 21 Oct 2014 16:23:18 +0000 (09:23 -0700)]
Fix relocation to look for symbols in local group

  The local group is a sequence of libraries in default (breadth-first)
  order. It allows RTLD_LOCALLY loaded library to correctly relocate
  symbols within its group (see test-cases).

  Local group lookup is performed after main executable and ld_preloads.

Bug: 2643900
Bug: 15432753
Change-Id: I9bb013b46d17dbb5cbdfb8fef26f552748385541

9 years agoMerge "Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3)."
Elliott Hughes [Thu, 23 Oct 2014 17:57:05 +0000 (17:57 +0000)]
Merge "Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3)."

9 years agoMigrate system/extra getaddrinfo test, and fix a bug in getservbyname(3).
Derek Xue [Wed, 13 Aug 2014 13:19:17 +0000 (14:19 +0100)]
Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3).

This change is to migrate the getaddrinfo tests defined in the old file
system/extras/tests/bionic/libc/common/test_getaddrinfo.c
to the new place bionic/tests/netdb_test.cpp.

The test here is more thorough, and catches a bug in getservbyname(3)
that was breaking getaddrinfo(3)'s ability to look up services by name
without a hint that would cause it to ask for a specific protocol.

Change-Id: Ief5ebd0869496d1bc6a97861dfefa04bdf24bab1
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agoMerge "bionic/tests: migrate gethostbyname bionic test from system/extra to bionic...
Elliott Hughes [Wed, 22 Oct 2014 21:30:39 +0000 (21:30 +0000)]
Merge "bionic/tests: migrate gethostbyname bionic test from system/extra to bionic/tests"

9 years agobionic/tests: migrate gethostbyname bionic test from system/extra to bionic/tests
Derek Xue [Wed, 13 Aug 2014 13:19:17 +0000 (14:19 +0100)]
bionic/tests: migrate gethostbyname bionic test from system/extra to bionic/tests

this change migrate the gethostbyname test defined in the old file
system/extras/tests/bionic/libc/common/test_gethostbyname.c
to the new place bionic/tests/netdb_test.cpp

Change-Id: I342171090f681581fb54d68ea4a09adf61f52081
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agoMerge "Update bionic to tzdata2014i."
Elliott Hughes [Wed, 22 Oct 2014 20:41:44 +0000 (20:41 +0000)]
Merge "Update bionic to tzdata2014i."

9 years agoMerge "Fix race condition in timer disarm/delete."
Christopher Ferris [Wed, 22 Oct 2014 20:33:05 +0000 (20:33 +0000)]
Merge "Fix race condition in timer disarm/delete."

9 years agoFix race condition in timer disarm/delete.
Christopher Ferris [Tue, 21 Oct 2014 02:09:19 +0000 (19:09 -0700)]
Fix race condition in timer disarm/delete.

When setting a repeat timer using the SIGEV_THREAD mechanism, it's possible
that the callback can be called after the timer is disarmed or deleted.
This happens because the kernel can generate signals that the timer thread
will continue to handle even after the timer is supposed to be off.

Add two new tests to verify that disarming/deleting doesn't continue to
call the callback.

Modify the repeat test to finish more quickly than before.

Refactor the Counter implementation a bit.

Bug: 18039727

(cherry pick from commit 0724132c3263145f2a667f453a199d313a5b3d9f)

Change-Id: I135726ea4038a47920a6c511708813b1a9996c42

9 years agoUpdate bionic to tzdata2014i.
Elliott Hughes [Wed, 22 Oct 2014 19:31:02 +0000 (12:31 -0700)]
Update bionic to tzdata2014i.

From the release notes:

   Changes affecting future time stamps

     Pacific/Fiji will observe DST from 2014-11-02 02:00 to
     2015-01-18 03:00.  (Thanks to Ken Rylander for the heads-up.)
     Guess that future years will use a similar pattern.

     A new Zone Pacific/Bougainville, for the part of Papua New
     Guinea that plans to switch from UTC+10 to UTC+11 on
     2014-12-28 at 02:00.  (Thanks to Kiley Walbom for the
     heads-up.)

   Changes affecting time zone abbreviations

     Since Belarus is not changing its clocks even though Moscow
     is, the time zone abbreviation in Europe/Minsk is changing
     from FET to its more-traditional value MSK on 2014-10-26 at
     01:00.  (Thanks to Alexander Bokovoy for the heads-up about
     Belarus.)

     The new abbreviation IDT stands for the pre-1976 use of UT+8
     in Indochina, to distinguish it better from ICT (UT+7).

   Changes affecting past time stamps

     Many time stamps have been corrected for Asia/Ho_Chi_Minh
     before 1976 (thanks to Trần Ngọc Quân for an indirect pointer
     to Trần Tiến Bình's authoritative book).  Asia/Ho_Chi_Minh has
     been added to zone1970.tab, to give tzselect users in Vietnam
     two choices, since north and south Vietnam disagreed after our
     1970 cutoff.

     Asia/Phnom_Penh and Asia/Vientiane have been turned into
     links, as they differed from existing zones only for older
     time stamps.  As usual, these changes affect pre-1970 time
     stamps only.  Their old contents have been moved to the
     'backzone' file.

Bug: 18085936
Change-Id: I89c065b4788b10ed7530cc4e8cfbc1b65c05c1b7

9 years agoMerge "Replace ambiguous cmp operator with cmpl."
Chih-Hung Hsieh [Wed, 22 Oct 2014 00:55:14 +0000 (00:55 +0000)]
Merge "Replace ambiguous cmp operator with cmpl."

9 years agoReplace ambiguous cmp operator with cmpl.
Chih-Hung Hsieh [Tue, 21 Oct 2014 23:25:35 +0000 (16:25 -0700)]
Replace ambiguous cmp operator with cmpl.

Clang assembler rejects ambiguous cmp instruction.

BUG: 17302482
Change-Id: Ie8dca7e4f46e0906c47076bba21c1941482ba6b3

9 years agoMerge "Rename library_offset to library_fd_offset"
Dmitriy Ivanov [Tue, 21 Oct 2014 21:06:18 +0000 (21:06 +0000)]
Merge "Rename library_offset to library_fd_offset"

9 years agoRename library_offset to library_fd_offset
Dmitriy Ivanov [Tue, 21 Oct 2014 19:09:18 +0000 (12:09 -0700)]
Rename library_offset to library_fd_offset

 replace lseek() and use pread() instead
 add test for library_fd_offset > file_size case

Bug: 17762003
Change-Id: I4555f0be635124efe849c1f226985bcba72ffcbd

9 years agoMerge "Never use ASAN."
Dan Albert [Tue, 21 Oct 2014 18:28:18 +0000 (18:28 +0000)]
Merge "Never use ASAN."

9 years agoNever use ASAN.
Dan Albert [Fri, 17 Oct 2014 17:33:25 +0000 (10:33 -0700)]
Never use ASAN.

Unless we completely redo how we build bionic (so that the object
files for libc.so get built separately from libc.a), we can't enable
ASAN here, as libc.a gets linked into static executables.

Change-Id: I2ce4f51248bd51c4213a555ff481b6faabbf53f8

9 years agoMerge "Fix generic __memcpy_chk implementation."
Christopher Ferris [Mon, 20 Oct 2014 18:21:21 +0000 (18:21 +0000)]
Merge "Fix generic __memcpy_chk implementation."

9 years agoMerge "Add -no-integrated-as at local level."
Chih-Hung Hsieh [Mon, 20 Oct 2014 16:51:05 +0000 (16:51 +0000)]
Merge "Add -no-integrated-as at local level."

9 years agoAdd -no-integrated-as at local level.
Chih-Hung Hsieh [Fri, 17 Oct 2014 23:27:03 +0000 (16:27 -0700)]
Add -no-integrated-as at local level.

Later we will enable integrated-as as default at the global level.

BUG: 17820427
BUG: 17302991
Change-Id: I233204ca04d7222b2cb1fbd0fa48a482f8b63f6f

9 years agoFix generic __memcpy_chk implementation.
Christopher Ferris [Fri, 17 Oct 2014 21:08:54 +0000 (14:08 -0700)]
Fix generic __memcpy_chk implementation.

- Clean up the labels (add .L to make them local).
- Change to using cfi directives.
- Fix unwinding of the __memcpy_chk fail path.

Bug: 18033671
Change-Id: I12845f10c7ce5e6699c15c558bda64c83f6a392a

9 years agoMerge "Correct way to specify additional dependencies"
Dmitriy Ivanov [Fri, 17 Oct 2014 20:19:18 +0000 (20:19 +0000)]
Merge "Correct way to specify additional dependencies"

9 years agoCorrect way to specify additional dependencies
Dmitriy Ivanov [Fri, 17 Oct 2014 18:47:18 +0000 (11:47 -0700)]
Correct way to specify additional dependencies

 Previous one was not covering all the targets

Bug: 17548097
Change-Id: I425e0f8d6e5a43feabd29dcb327049b82754d249

9 years agoMerge "Fix misleading comment."
Dmitriy Ivanov [Thu, 16 Oct 2014 17:54:02 +0000 (17:54 +0000)]
Merge "Fix misleading comment."

9 years agoMerge "Only use <atomic> for C++11 and newer."
Dan Albert [Thu, 16 Oct 2014 16:19:43 +0000 (16:19 +0000)]
Merge "Only use <atomic> for C++11 and newer."

9 years agoMerge "Don't use an STL for libm."
Dan Albert [Thu, 16 Oct 2014 15:56:31 +0000 (15:56 +0000)]
Merge "Don't use an STL for libm."

9 years agoOnly use <atomic> for C++11 and newer.
Dan Albert [Thu, 16 Oct 2014 14:52:51 +0000 (07:52 -0700)]
Only use <atomic> for C++11 and newer.

Any pre-C++11 clients of stdatomic.h that use libc++ are being forced
over to <atomic>, which they don't have the language support to use.

Change-Id: I62445c1f2541410a1569498c09433c7196635537

9 years agoDon't use an STL for libm.
Dan Albert [Thu, 16 Oct 2014 14:44:47 +0000 (07:44 -0700)]
Don't use an STL for libm.

The default is none right now, but this will be needed when the
default becomes libc++.

Change-Id: Ib022adac2b9dc08fbfae830908128043cfffb91e

9 years agoMerge "Ignore DT_BIND_NOW (0x18)"
Dmitriy Ivanov [Wed, 15 Oct 2014 23:46:26 +0000 (23:46 +0000)]
Merge "Ignore DT_BIND_NOW (0x18)"

9 years agoIgnore DT_BIND_NOW (0x18)
Dmitriy Ivanov [Wed, 15 Oct 2014 21:59:01 +0000 (14:59 -0700)]
Ignore DT_BIND_NOW (0x18)

Bug: 17552334
Change-Id: Ibe93fd3d6580f369f9a6ef8d235bf0df00fe7607

9 years agoFix misleading comment.
Robert Grosse [Wed, 15 Oct 2014 21:32:19 +0000 (14:32 -0700)]
Fix misleading comment.

Change-Id: I9e2aa6c2ba938c8f8d7c74eba32d313c866c77b2

9 years agoMerge "We don't actually need all of libc++ here."
Dan Albert [Wed, 15 Oct 2014 19:59:08 +0000 (19:59 +0000)]
Merge "We don't actually need all of libc++ here."

9 years agoWe don't actually need all of libc++ here.
Dan Albert [Tue, 14 Oct 2014 21:19:34 +0000 (14:19 -0700)]
We don't actually need all of libc++ here.

All we're actually interested in is the unwinder. Since that's now a
separate library, just use that.

Change-Id: If86071a0d850da961336a58147b70369ace7bd12

9 years agoMerge "Add clock_settime and clock_nanosleep."
Elliott Hughes [Tue, 14 Oct 2014 03:07:42 +0000 (03:07 +0000)]
Merge "Add clock_settime and clock_nanosleep."

9 years agoAdd clock_settime and clock_nanosleep.
Haruki Hasegawa [Sun, 12 Oct 2014 15:50:47 +0000 (00:50 +0900)]
Add clock_settime and clock_nanosleep.

Add the missing prototypes, fix the existing prototypes to use clockid_t
rather than int, fix clock_nanosleep's failure behavior, and add simple
tests.

Bug: 17644443
Bug: https://code.google.com/p/android/issues/detail?id=77372
Change-Id: I03fba369939403918abcabae9551a7123953d780
Signed-off-by: Haruki Hasegawa <h6a.h4i.0@gmail.com>
9 years agoMerge "Add glibc alias for NT_PRFPREG"
Dmitriy Ivanov [Mon, 13 Oct 2014 22:08:51 +0000 (22:08 +0000)]
Merge "Add glibc alias for NT_PRFPREG"

9 years agoAdd glibc alias for NT_PRFPREG
Dmitriy Ivanov [Mon, 13 Oct 2014 19:23:55 +0000 (12:23 -0700)]
Add glibc alias for NT_PRFPREG

 Also fix comment style for DF_1_ constants

Change-Id: I7c3ed1d834f0a2b85ee8cc8016c79020955084f8

9 years agoMerge "Return total footprint, not high water mark."
Christopher Ferris [Mon, 13 Oct 2014 19:48:35 +0000 (19:48 +0000)]
Merge "Return total footprint, not high water mark."

9 years agoReturn total footprint, not high water mark.
Christopher Ferris [Fri, 10 Oct 2014 15:40:21 +0000 (08:40 -0700)]
Return total footprint, not high water mark.

The mallinfo usmblks value returned by dlmalloc is a little misleading.
It's not the current max, it's the historical high water mark. This
leads to dumpsys meminfo producing native memory numbers that don't add up.
Change this to the real total footprint, not this high water mark.

Bug: 17265653

(cherry pick from commit f4ada9c9ce31c7e56146a4cb703747385bc043a5)

Change-Id: I2fba10285859dccfe8331063c9be14cc169f2d91

9 years agoMerge "Use LOCAL_CXX_STL to select libc++_static."
Dan Albert [Mon, 13 Oct 2014 19:08:59 +0000 (19:08 +0000)]
Merge "Use LOCAL_CXX_STL to select libc++_static."

9 years agoUse LOCAL_CXX_STL to select libc++_static.
Dan Albert [Mon, 13 Oct 2014 18:20:29 +0000 (11:20 -0700)]
Use LOCAL_CXX_STL to select libc++_static.

Directly adding the library to LOCAL_STATIC_LIBRARIES thwarts a few
build system checks.

Change-Id: Ib23c43badfa85de21c691f79ccdcc2cbe2a89b33

9 years agoMerge "Fix some formatting so GitHub displays it nicely."
Dan Albert [Sat, 11 Oct 2014 00:48:32 +0000 (00:48 +0000)]
Merge "Fix some formatting so GitHub displays it nicely."

9 years agoFix some formatting so GitHub displays it nicely.
Dan Albert [Sat, 11 Oct 2014 00:14:37 +0000 (17:14 -0700)]
Fix some formatting so GitHub displays it nicely.

Change-Id: Id6ce9a61bebd98544c85e5780147715c73d0e78b

9 years agoMerge "Improve documentation for testing and coverage."
Dan Albert [Fri, 10 Oct 2014 18:59:02 +0000 (18:59 +0000)]
Merge "Improve documentation for testing and coverage."

9 years agoImprove documentation for testing and coverage.
Dan Albert [Fri, 10 Oct 2014 05:57:49 +0000 (22:57 -0700)]
Improve documentation for testing and coverage.

Also rename HACKING.txt to README.md so it will display on the GitHub
mirror.

Change-Id: I70157a4ad262700212bf9afd87253d195c7013a9

9 years agoMerge "Catch up on upstream's round/roundf/roundl."
Elliott Hughes [Fri, 10 Oct 2014 17:29:51 +0000 (17:29 +0000)]
Merge "Catch up on upstream's round/roundf/roundl."

9 years agoCatch up on upstream's round/roundf/roundl.
Elliott Hughes [Fri, 10 Oct 2014 17:21:43 +0000 (10:21 -0700)]
Catch up on upstream's round/roundf/roundl.

Not sure how we missed these, but better late than never...

Change-Id: Ib08d1bb6e340a1907cbeb1cbe220e33f70642bdc

9 years agoMerge "Add back symbols to fix Greed for Glory franchise."
Christopher Ferris [Fri, 10 Oct 2014 05:25:25 +0000 (05:25 +0000)]
Merge "Add back symbols to fix Greed for Glory franchise."

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