OSDN Git Service

android-x86/bionic.git
9 years agoam 75cd66aa: am 38ff8822: Merge "Revert "Use local copy of the library name on dlopen""
Dmitriy Ivanov [Sat, 1 Nov 2014 03:00:56 +0000 (03:00 +0000)]
am 75cd66aa: am 38ff8822: Merge "Revert "Use local copy of the library name on dlopen""

* commit '75cd66aaf60f47e04359738a9c8d92588a1f7834':
  Revert "Use local copy of the library name on dlopen"

9 years agoam 38ff8822: Merge "Revert "Use local copy of the library name on dlopen""
Dmitriy Ivanov [Sat, 1 Nov 2014 02:35:51 +0000 (02:35 +0000)]
am 38ff8822: Merge "Revert "Use local copy of the library name on dlopen""

* commit '38ff8822763a30d4c9033a38ec8b71fcd17aba87':
  Revert "Use local copy of the library name on dlopen"

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 agoam 6cba0e35: am 36ffc73e: Merge "Fix arm64 and arm builds."
Dmitriy Ivanov [Sat, 1 Nov 2014 00:39:45 +0000 (00:39 +0000)]
am 6cba0e35: am 36ffc73e: Merge "Fix arm64 and arm builds."

* commit '6cba0e35ec62e86689556142a08f547f27b703dd':
  Fix arm64 and arm builds.

9 years agoam 36ffc73e: Merge "Fix arm64 and arm builds."
Dmitriy Ivanov [Sat, 1 Nov 2014 00:36:23 +0000 (00:36 +0000)]
am 36ffc73e: Merge "Fix arm64 and arm builds."

* commit '36ffc73e992de77cc4bc397e41767b69ed9ac917':
  Fix arm64 and arm builds.

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 agoam a334934f: am f33ad400: Merge "Fix symbol lookup order during relocation"
Dmitriy Ivanov [Fri, 31 Oct 2014 23:57:29 +0000 (23:57 +0000)]
am a334934f: am f33ad400: Merge "Fix symbol lookup order during relocation"

* commit 'a334934f66386ecdf3ec07daf0b651fcf3b8dcce':
  Fix symbol lookup order during relocation

9 years agoam f33ad400: Merge "Fix symbol lookup order during relocation"
Dmitriy Ivanov [Fri, 31 Oct 2014 23:54:20 +0000 (23:54 +0000)]
am f33ad400: Merge "Fix symbol lookup order during relocation"

* commit 'f33ad400230fa1f16ba4501efb60a1b6035e06ca':
  Fix symbol lookup order during relocation

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 agoam 703581a3: am 74c0ccd4: Merge "Use local copy of the library name on dlopen"
Dmitriy Ivanov [Fri, 31 Oct 2014 22:57:06 +0000 (22:57 +0000)]
am 703581a3: am 74c0ccd4: Merge "Use local copy of the library name on dlopen"

* commit '703581a3220123a4fc44acbf3a94c835a7cf5ed0':
  Use local copy of the library name on dlopen

9 years agoam 74c0ccd4: Merge "Use local copy of the library name on dlopen"
Dmitriy Ivanov [Fri, 31 Oct 2014 22:51:38 +0000 (22:51 +0000)]
am 74c0ccd4: Merge "Use local copy of the library name on dlopen"

* commit '74c0ccd49b2f0a94078b565b60c10ecba1e9424e':
  Use local copy of the library name on dlopen

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 agoam 653263a9: Only use <atomic> for C++11 and newer.
Dan Albert [Fri, 31 Oct 2014 06:12:21 +0000 (06:12 +0000)]
am 653263a9: Only use <atomic> for C++11 and newer.

* commit '653263a96459c5c1811623bd84201c324a870280':
  Only use <atomic> for C++11 and newer.

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.

Bug:17736764

Change-Id: I62445c1f2541410a1569498c09433c7196635537
(cherry picked from commit 3ce0769aa5f9a991af1d167f730d987dd002253c)

9 years agoMerge remote-tracking branch 'goog/lmp-mr1-ub-dev' into manualmerge
Elliott Hughes [Thu, 30 Oct 2014 16:52:50 +0000 (09:52 -0700)]
Merge remote-tracking branch 'goog/lmp-mr1-ub-dev' into manualmerge

9 years agoam 25f4bb98: am e38bf839: Merge "limits.h: add define for HOST_NAME_MAX"
Elliott Hughes [Thu, 30 Oct 2014 16:08:28 +0000 (16:08 +0000)]
am 25f4bb98: am e38bf839: Merge "limits.h: add define for HOST_NAME_MAX"

* commit '25f4bb984cf9a27ebfac0e8f0ab5481ce3bebf15':
  limits.h: add define for HOST_NAME_MAX

9 years agoam e38bf839: Merge "limits.h: add define for HOST_NAME_MAX"
Elliott Hughes [Thu, 30 Oct 2014 16:02:29 +0000 (16:02 +0000)]
am e38bf839: Merge "limits.h: add define for HOST_NAME_MAX"

* commit 'e38bf839837d11542e7d1deb00d81542a0ef55b7':
  limits.h: add define for HOST_NAME_MAX

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 changes I0feda6b2,I22d13fde,I49d7d09d,Ice490bfe into lmp-mr1-dev
Elliott Hughes [Wed, 29 Oct 2014 23:22:30 +0000 (23:22 +0000)]
Merge changes I0feda6b2,I22d13fde,I49d7d09d,Ice490bfe into lmp-mr1-dev

* changes:
  Fix the type of u_ar0 in <sys/user.h>.
  Add greg_t for arm64.
  POSIX says <signal.h> gets you ucontext_t.
  Add in_port_t and move it and in_addr_t to the correct header file.

9 years agoam 4c29b1c2: am f362e9fb: Merge "Remove an unused file."
Elliott Hughes [Wed, 29 Oct 2014 20:56:29 +0000 (20:56 +0000)]
am 4c29b1c2: am f362e9fb: Merge "Remove an unused file."

* commit '4c29b1c266aa7ac81a7b67a6170f52c12aca712d':
  Remove an unused file.

9 years agoam f362e9fb: Merge "Remove an unused file."
Elliott Hughes [Wed, 29 Oct 2014 20:51:27 +0000 (20:51 +0000)]
am f362e9fb: Merge "Remove an unused file."

* commit 'f362e9fb33722f89cebe65ddf2f07d2b07e4390e':
  Remove an unused file.

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 agoam 24464b04: am d50495a5: Merge "Extra strtod/strtof tests."
Elliott Hughes [Wed, 29 Oct 2014 20:42:10 +0000 (20:42 +0000)]
am 24464b04: am d50495a5: Merge "Extra strtod/strtof tests."

* commit '24464b04a0d5a7645b8e751c6a9ef0c6574d52c2':
  Extra strtod/strtof tests.

9 years agoam 63edd69e: am cbb4606a: Merge "change unsigned int to uint32_t for api arc4random...
Yabin Cui [Wed, 29 Oct 2014 19:42:32 +0000 (19:42 +0000)]
am 63edd69e: am cbb4606a: Merge "change unsigned int to uint32_t for api arc4random/arc4random_uniform"

* commit '63edd69e576a9f1faebc493bc6d4e4729c70b02c':
  change unsigned int to uint32_t for api arc4random/arc4random_uniform

9 years agoam 91bfaed2: am 13dcb88b: Merge "Disable tzdata in ."
Elliott Hughes [Wed, 29 Oct 2014 19:42:31 +0000 (19:42 +0000)]
am 91bfaed2: am 13dcb88b: Merge "Disable tzdata in ."

* commit '91bfaed26a1e4595c387a27a789a71ec0eebfa73':
  Disable tzdata in $ANDROID_DATA.

9 years agoresolved conflicts for merge of 912fe0a6 to lmp-mr1-dev-plus-aosp
Elliott Hughes [Wed, 29 Oct 2014 19:38:36 +0000 (12:38 -0700)]
resolved conflicts for merge of 912fe0a6 to lmp-mr1-dev-plus-aosp

Change-Id: Ie1cc84f34ccaf27eae4f3c292d67d44a9f0276bc

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

(cherry picked from commit e03950fa0c5567edf70d011b856a027e03b1c0f7)

Bug: 18172268
Change-Id: I0feda6b253882f68f47bcf30fad998286cc7f620

9 years agoAdd greg_t for arm64.
Elliott Hughes [Fri, 19 Sep 2014 17:31:49 +0000 (10:31 -0700)]
Add greg_t for arm64.

This was already present for the other architectures. I think we skipped
this because glibc seems to have an incorrect definition (int rather than
long), but the kernel has the sane definition (just not in a uapi header).

(cherry picked from commit 8e4d371091e5738346f5c6ad395b8487c2a5ec67)

Bug: 18172268
Change-Id: I22d13fdeb6431ea122dd028a229782dcaf2286b2

9 years agoPOSIX says <signal.h> gets you ucontext_t.
Elliott Hughes [Sat, 13 Sep 2014 03:04:40 +0000 (20:04 -0700)]
POSIX says <signal.h> gets you ucontext_t.

POSIX also says that ucontext_t's uc_sigmask has type sigset_t.

MIPS64 strace needs this.

The #define is to keep chromium off our lawn; otherwise it tries to redefine
all this stuff itself. We should probably clean that up and remove the #define.

(cherry picked from commit 26a8eb50a84e131d34d10d5d167d67e9995399bd)

Bug: 18172268
Change-Id: I49d7d09dabfc6c6926a8e1f4b235d041e2f2fc4d

9 years agoAdd in_port_t and move it and in_addr_t to the correct header file.
Elliott Hughes [Tue, 19 Aug 2014 19:43:50 +0000 (12:43 -0700)]
Add in_port_t and move it and in_addr_t to the correct header file.

No one's reported this, but I saw it in an Android port of fuser(1).

We still have lots of problems in our network headers because we
get most of the structs direct from the kernel, and it doesn't use
types like this (which is why we've got away without this one for
so long). One day we should probably look at cleaning that up, but
doing so can wait.

(cherry picked from commit 35d226e05d92824c6eb992e7a64ea22efc8bae03)

Bug: 18172268
Change-Id: Ice490bfe84afb04722d738128053d4c533b8a664

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

(cherry picked from commit 7d849ac378515efa1522e538e6e1d3b546cae97d)

Change-Id: Iae44785f37f9bb59103ab78fb9f74c92f8a95c7f

9 years agoam 382938d0: am ec58e29b: Merge "pthread_setname_np appears in glibc 2.12."
Elliott Hughes [Wed, 29 Oct 2014 17:46:53 +0000 (17:46 +0000)]
am 382938d0: am ec58e29b: Merge "pthread_setname_np appears in glibc 2.12."

* commit '382938d092c7427a74ae8a6507bbd49f01e5c2f9':
  pthread_setname_np appears in glibc 2.12.

9 years agoam 7dbb1cff: am 021b6412: Merge "Fix the type of u_ar0 in <sys/user.h>."
Elliott Hughes [Wed, 29 Oct 2014 17:46:53 +0000 (17:46 +0000)]
am 7dbb1cff: am 021b6412: Merge "Fix the type of u_ar0 in <sys/user.h>."

* commit '7dbb1cff0b40b4f6a2792b73f24ac912cfe121d5':
  Fix the type of u_ar0 in <sys/user.h>.

9 years agoam ee8faa5e: am 7f164f60: Merge "POSIX says pthread_mutex_trylock returns EBUSY,...
Elliott Hughes [Wed, 29 Oct 2014 17:46:52 +0000 (17:46 +0000)]
am ee8faa5e: am 7f164f60: Merge "POSIX says pthread_mutex_trylock returns EBUSY, not EDEADLK."

* commit 'ee8faa5e74eadc12231f59f2bbe13cfa644922cd':
  POSIX says pthread_mutex_trylock returns EBUSY, not EDEADLK.

9 years agoam d50495a5: Merge "Extra strtod/strtof tests."
Elliott Hughes [Wed, 29 Oct 2014 17:36:16 +0000 (17:36 +0000)]
am d50495a5: Merge "Extra strtod/strtof tests."

* commit 'd50495a56760fdc116b7484bcdf1183c76db9b37':
  Extra strtod/strtof tests.

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 agoam 3a3a4b8a: am e23f564b: Merge "Fix *tests-run-on-host target"
Dmitriy Ivanov [Wed, 29 Oct 2014 17:13:49 +0000 (17:13 +0000)]
am 3a3a4b8a: am e23f564b: Merge "Fix *tests-run-on-host target"

* commit '3a3a4b8ae6c03b58c59717ab3c3be85099939d3b':
  Fix *tests-run-on-host target

9 years agoam 44331e8b: am c716dd1e: Merge "bionic tests: migrate test for mutex type from syste...
Elliott Hughes [Wed, 29 Oct 2014 17:13:49 +0000 (17:13 +0000)]
am 44331e8b: am c716dd1e: Merge "bionic tests: migrate test for mutex type from system/extras"

* commit '44331e8bb0ba17be0387e9353d2309f980136273':
  bionic tests: migrate test for mutex type from system/extras

9 years agoam 85d77021: am f56a2f5e: Merge "Remove unnecessary reinterpret_cast"
Dmitriy Ivanov [Wed, 29 Oct 2014 17:13:32 +0000 (17:13 +0000)]
am 85d77021: am f56a2f5e: Merge "Remove unnecessary reinterpret_cast"

* commit '85d770211b33ede2d7bf1b37a6e01bcb308cb666':
  Remove unnecessary reinterpret_cast

9 years agoam f3b0d9cd: am 57c5a556: Merge "Disable clang compilation due to lack of ifunc."
Chih-Hung Hsieh [Wed, 29 Oct 2014 17:13:31 +0000 (17:13 +0000)]
am f3b0d9cd: am 57c5a556: Merge "Disable clang compilation due to lack of ifunc."

* commit 'f3b0d9cd79574ac43d41e50bf81f57016c620624':
  Disable clang compilation due to lack of ifunc.

9 years agoam 1dd65cc3: am c83837ec: Merge "Make the netdb unit tests work on the host."
Elliott Hughes [Wed, 29 Oct 2014 17:13:30 +0000 (17:13 +0000)]
am 1dd65cc3: am c83837ec: Merge "Make the netdb unit tests work on the host."

* commit '1dd65cc30c43921f9a0fc604597701b349e3e028':
  Make the netdb unit tests work on the host.

9 years agoam 3f5d8a00: am cad8d226: Merge "Use mxcr_mask instead of mxcsr_mask to match glibc."
Elliott Hughes [Wed, 29 Oct 2014 17:13:29 +0000 (17:13 +0000)]
am 3f5d8a00: am cad8d226: Merge "Use mxcr_mask instead of mxcsr_mask to match glibc."

* commit '3f5d8a00e4b57fdf7ec8cc01cc33fbfab5ae1316':
  Use mxcr_mask instead of mxcsr_mask to match glibc.

9 years agoam 43ec1fb7: am a4c0b756: Merge "Add mkfifoat(3)."
Elliott Hughes [Wed, 29 Oct 2014 17:13:26 +0000 (17:13 +0000)]
am 43ec1fb7: am a4c0b756: Merge "Add mkfifoat(3)."

* commit '43ec1fb76c679738011adc0706e6ef2e01058e79':
  Add mkfifoat(3).

9 years agoam 3db80168: am f33a7d7f: Merge "Fix mips build"
Dmitriy Ivanov [Wed, 29 Oct 2014 17:13:25 +0000 (17:13 +0000)]
am 3db80168: am f33a7d7f: Merge "Fix mips build"

* commit '3db80168ff376c08f1faa948b9a41a0c823c9631':
  Fix mips build

9 years agoam fee054f3: am 398eb5a7: Merge "Remove unnecessary lookups during relocations"
Dmitriy Ivanov [Wed, 29 Oct 2014 17:13:24 +0000 (17:13 +0000)]
am fee054f3: am 398eb5a7: Merge "Remove unnecessary lookups during relocations"

* commit 'fee054f3ecd7c26705f544ecf0d76ce4ec57a2d4':
  Remove unnecessary lookups during relocations

9 years agoam 1babff27: am 566f2bc6: Merge "Fix relocation to look for symbols in local group"
Dmitriy Ivanov [Wed, 29 Oct 2014 17:13:23 +0000 (17:13 +0000)]
am 1babff27: am 566f2bc6: Merge "Fix relocation to look for symbols in local group"

* commit '1babff27fd0e62bd719d04e789da01adbb0b01cd':
  Fix relocation to look for symbols in local group

9 years agoam ac5df33e: am 6c5694b6: Merge "Migrate system/extra getaddrinfo test, and fix a...
Elliott Hughes [Wed, 29 Oct 2014 17:13:22 +0000 (17:13 +0000)]
am ac5df33e: am 6c5694b6: Merge "Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3)."

* commit 'ac5df33e091c079d667354d225ed37d23326a270':
  Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3).

9 years agoam 7f558f60: am cf8ea37f: Merge "bionic/tests: migrate gethostbyname bionic test...
Elliott Hughes [Wed, 29 Oct 2014 17:10:58 +0000 (17:10 +0000)]
am 7f558f60: am cf8ea37f: Merge "bionic/tests: migrate gethostbyname bionic test from system/extra to bionic/tests"

* commit '7f558f60cb51c54782f6d51cd3537082e00970bc':
  bionic/tests: migrate gethostbyname bionic test from system/extra to bionic/tests

9 years agoam 96a6f401: am e516321d: Merge "Update bionic to tzdata2014i."
Elliott Hughes [Wed, 29 Oct 2014 16:42:51 +0000 (16:42 +0000)]
am 96a6f401: am e516321d: Merge "Update bionic to tzdata2014i."

* commit '96a6f40163b5a2b97c470894ef81041e18265192':
  Update bionic to tzdata2014i.

9 years agoam 274f5e73: am efd2ec8f: Merge "Fix race condition in timer disarm/delete."
Christopher Ferris [Wed, 29 Oct 2014 16:42:50 +0000 (16:42 +0000)]
am 274f5e73: am efd2ec8f: Merge "Fix race condition in timer disarm/delete."

* commit '274f5e737dcae3c9d328f89f4f7df29acee41230':
  Fix race condition in timer disarm/delete.

9 years agoam cbb4606a: Merge "change unsigned int to uint32_t for api arc4random/arc4random_uni...
Yabin Cui [Wed, 29 Oct 2014 12:32:36 +0000 (12:32 +0000)]
am cbb4606a: Merge "change unsigned int to uint32_t for api arc4random/arc4random_uniform"

* commit 'cbb4606ad00f084f984c92a8674400a112ea200e':
  change unsigned int to uint32_t for api arc4random/arc4random_uniform

9 years agoam 13dcb88b: Merge "Disable tzdata in ."
Elliott Hughes [Wed, 29 Oct 2014 12:32:23 +0000 (12:32 +0000)]
am 13dcb88b: Merge "Disable tzdata in ."

* commit '13dcb88b0f8ce238456059fdc0b6c946caed1e3a':
  Disable tzdata in $ANDROID_DATA.

9 years agoam f96eaf62: Merge "[x86,x86_64] Fix libgcc unwinding through signal"
Elliott Hughes [Wed, 29 Oct 2014 12:31:52 +0000 (12:31 +0000)]
am f96eaf62: Merge "[x86,x86_64] Fix libgcc unwinding through signal"

* commit 'f96eaf6202351a1b5153cfaad3137e4b63846f8f':
  [x86,x86_64] Fix libgcc unwinding through signal

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.

Bug: 18157900

(cherry picked from commit c8bd2abab24afe563240297018c4fa79944f193b)

Change-Id: Ifa1c3d16553d142eaa0d744af040f0352538106c

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 agoFix merge-induced makefile error.
Elliott Hughes [Tue, 28 Oct 2014 23:58:11 +0000 (16:58 -0700)]
Fix merge-induced makefile error.

Change-Id: I6ac7e5e3b9d55108681916044cf2de0e01bca0b2

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

(cherry picked from commit 8cf61dab5f11ed5654a5760ab47cec0239caafe0)

Change-Id: I91e66ca0c26f04b50308059f9c89d388d55f6e3a

9 years agoMerge remote-tracking branch 'goog/lmp-mr1-ub-dev' into manualmerge
Elliott Hughes [Tue, 28 Oct 2014 23:01:58 +0000 (16:01 -0700)]
Merge remote-tracking branch 'goog/lmp-mr1-ub-dev' into manualmerge

Conflicts:
libc/arch-arm/bionic/__restore.S
libc/arch-arm/cortex-a15/bionic/stpcpy.S
libc/arch-arm/cortex-a9/bionic/stpcpy.S
libc/arch-arm64/generic/bionic/memcpy_base.S
libc/arch-x86/bionic/__restore.S
libc/arch-x86/x86.mk
libc/arch-x86_64/bionic/__restore_rt.S
tests/stack_unwinding_test.cpp
tests/stack_unwinding_test_impl.c

Change-Id: I2cb250ad78e9da6f390bc279aec742564b75e6c7

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 agoClean up the architecture-specific makefiles.
Elliott Hughes [Wed, 17 Sep 2014 02:06:31 +0000 (19:06 -0700)]
Clean up the architecture-specific makefiles.

Group things appropriately and name each group.

Bug: 18160821

(cherry picked from commit 7c02d9428ca18ac600f7ba7d51bb24ca71e733f6)

Change-Id: I863242515af44058154d03e2d8c34678e682d66a

9 years agoNo arm source refers to SOFTFLOAT.
Elliott Hughes [Tue, 16 Sep 2014 23:27:35 +0000 (16:27 -0700)]
No arm source refers to SOFTFLOAT.

So why bother #defining it?

Bug: 18160821

(cherry picked from commit b1a6c319c40674d71e30313040d3b33b8bddf24b)

Change-Id: I9cd9c144ba7071fddda12fa16d1232ad861b66be

9 years agoFix mips signed/unsigned signal_test.cpp build breakage.
Elliott Hughes [Thu, 4 Sep 2014 22:43:10 +0000 (15:43 -0700)]
Fix mips signed/unsigned signal_test.cpp build breakage.

(cherry picked from commit aa13e839f06231b9299bb683a71abd954294b49b)

Bug: 17436734
Change-Id: I167fc5d74c49cca7031c5739bc53fdf3bde71887

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 agoam ec58e29b: Merge "pthread_setname_np appears in glibc 2.12."
Elliott Hughes [Tue, 28 Oct 2014 19:28:35 +0000 (19:28 +0000)]
am ec58e29b: Merge "pthread_setname_np appears in glibc 2.12."

* commit 'ec58e29b276b0f98eb624430fb70703dc32057bf':
  pthread_setname_np appears in glibc 2.12.

9 years agoam 021b6412: Merge "Fix the type of u_ar0 in <sys/user.h>."
Elliott Hughes [Tue, 28 Oct 2014 19:28:34 +0000 (19:28 +0000)]
am 021b6412: Merge "Fix the type of u_ar0 in <sys/user.h>."

* commit '021b6412f7b7ce73b383480b25a8e5d69323f78c':
  Fix the type of u_ar0 in <sys/user.h>.

9 years agoam 7f164f60: Merge "POSIX says pthread_mutex_trylock returns EBUSY, not EDEADLK."
Elliott Hughes [Tue, 28 Oct 2014 19:28:32 +0000 (19:28 +0000)]
am 7f164f60: Merge "POSIX says pthread_mutex_trylock returns EBUSY, not EDEADLK."

* commit '7f164f6052b6dcee1c2cc70accdfac4b2c790b19':
  POSIX says pthread_mutex_trylock returns EBUSY, not EDEADLK.

9 years agoRemove the unnecessary generic-neon code.
Christopher Ferris [Wed, 24 Sep 2014 01:31:45 +0000 (18:31 -0700)]
Remove the unnecessary generic-neon code.

Bug: 18156619
(cherry picked from commit 2169e17482da91865e412e55b52b88d7c8db47f6)

Change-Id: I4a7f5bb9ad4c27b274f3a3c86c1617ca0578b98f

9 years agoam e23f564b: Merge "Fix *tests-run-on-host target"
Dmitriy Ivanov [Tue, 28 Oct 2014 17:34:12 +0000 (17:34 +0000)]
am e23f564b: Merge "Fix *tests-run-on-host target"

* commit 'e23f564b52fed0dce661cf6db25cf3a89bd66f18':
  Fix *tests-run-on-host target

9 years agoam c716dd1e: Merge "bionic tests: migrate test for mutex type from system/extras"
Elliott Hughes [Tue, 28 Oct 2014 17:34:01 +0000 (17:34 +0000)]
am c716dd1e: Merge "bionic tests: migrate test for mutex type from system/extras"

* commit 'c716dd1e21438ac6585be79fb799b3135e9b381f':
  bionic tests: migrate test for mutex type from system/extras

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 "Don't mask out SA_RESTORER from sa_flags." into lmp-mr1-dev
Elliott Hughes [Tue, 28 Oct 2014 15:36:55 +0000 (15:36 +0000)]
Merge "Don't mask out SA_RESTORER from sa_flags." into lmp-mr1-dev

9 years agoMerge "Disable tzdata in $ANDROID_DATA." into lmp-mr1-dev
Elliott Hughes [Tue, 28 Oct 2014 15:06:30 +0000 (15:06 +0000)]
Merge "Disable tzdata in $ANDROID_DATA." into lmp-mr1-dev

9 years agoDon't mask out SA_RESTORER from sa_flags.
Elliott Hughes [Thu, 4 Sep 2014 20:54:42 +0000 (13:54 -0700)]
Don't mask out SA_RESTORER from sa_flags.

glibc doesn't do this, and we probably shouldn't either.

Bug: 16703540
Bug: 17436734

(cherry picked from commit afe58ad9892de27a7acb0aaded6312ee0f958314)

Change-Id: Iada5d0ae814f438cb276f056b2b5e3675f0e3666

9 years agoam f56a2f5e: Merge "Remove unnecessary reinterpret_cast"
Dmitriy Ivanov [Tue, 28 Oct 2014 04:51:51 +0000 (04:51 +0000)]
am f56a2f5e: Merge "Remove unnecessary reinterpret_cast"

* commit 'f56a2f5ed2508e0743581003420c0f2d9cb54c7b':
  Remove unnecessary reinterpret_cast

9 years agoam 57c5a556: Merge "Disable clang compilation due to lack of ifunc."
Chih-Hung Hsieh [Tue, 28 Oct 2014 04:51:47 +0000 (04:51 +0000)]
am 57c5a556: Merge "Disable clang compilation due to lack of ifunc."

* commit '57c5a5562b08007dbe6379a4b68ca3a0225747c0':
  Disable clang compilation due to lack of ifunc.

9 years agoam c83837ec: Merge "Make the netdb unit tests work on the host."
Elliott Hughes [Tue, 28 Oct 2014 04:51:46 +0000 (04:51 +0000)]
am c83837ec: Merge "Make the netdb unit tests work on the host."

* commit 'c83837ec158a14bf84ea702c04f606de3b0599a8':
  Make the netdb unit tests work on the host.

9 years agoam cad8d226: Merge "Use mxcr_mask instead of mxcsr_mask to match glibc."
Elliott Hughes [Tue, 28 Oct 2014 04:51:25 +0000 (04:51 +0000)]
am cad8d226: Merge "Use mxcr_mask instead of mxcsr_mask to match glibc."

* commit 'cad8d226c3589a65775fda972d4cd3ebd3877dab':
  Use mxcr_mask instead of mxcsr_mask to match glibc.

9 years agoam a4c0b756: Merge "Add mkfifoat(3)."
Elliott Hughes [Tue, 28 Oct 2014 04:49:11 +0000 (04:49 +0000)]
am a4c0b756: Merge "Add mkfifoat(3)."

* commit 'a4c0b7567190968d263bedd1073ea633510f9a45':
  Add mkfifoat(3).

9 years agoam f33a7d7f: Merge "Fix mips build"
Dmitriy Ivanov [Tue, 28 Oct 2014 04:46:55 +0000 (04:46 +0000)]
am f33a7d7f: Merge "Fix mips build"

* commit 'f33a7d7f1cc96cf1445013fe49f6db0f03cbd44f':
  Fix mips build

9 years agoam 398eb5a7: Merge "Remove unnecessary lookups during relocations"
Dmitriy Ivanov [Tue, 28 Oct 2014 04:46:54 +0000 (04:46 +0000)]
am 398eb5a7: Merge "Remove unnecessary lookups during relocations"

* commit '398eb5a7ee1f0f7173e463e82381431ef4b21a17':
  Remove unnecessary lookups during relocations

9 years agoam 566f2bc6: Merge "Fix relocation to look for symbols in local group"
Dmitriy Ivanov [Tue, 28 Oct 2014 04:46:52 +0000 (04:46 +0000)]
am 566f2bc6: Merge "Fix relocation to look for symbols in local group"

* commit '566f2bc623dbd1d6e8bcf3a6c6e7a6fffe7f68fd':
  Fix relocation to look for symbols in local group

9 years agoam 6c5694b6: Merge "Migrate system/extra getaddrinfo test, and fix a bug in getservby...
Elliott Hughes [Tue, 28 Oct 2014 04:33:09 +0000 (04:33 +0000)]
am 6c5694b6: Merge "Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3)."

* commit '6c5694b6c8343d740c36adbe904442cecd8030a6':
  Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3).

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
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
(cherry picked from commit 50321e2e66f19998970e59d666bc9af387345b3a)

Change-Id: Iba90e36958b00c7cc7db5eeebf888dc89ce4d619

9 years agoStack unwinding unit tests.
Elliott Hughes [Thu, 18 Sep 2014 00:21:20 +0000 (17:21 -0700)]
Stack unwinding unit tests.

Bug: 17436734

(cherry picked from commit bee1993a14b47bc7acda544242f405ae45e42566)

Change-Id: I7205a862ba2c3b474e287f5e9c8982cef4610af9

9 years agoUse the kernel's sa_restorer for aarch64.
Elliott Hughes [Tue, 16 Sep 2014 22:49:50 +0000 (15:49 -0700)]
Use the kernel's sa_restorer for aarch64.

gdb was happy with what we had, but libgcc and libunwind weren't.
libgcc is happy with the kernel's restorer (because of the extra nop),
though libunwind looks like it's going to need code changes regardless.

We could make our restorer more like the kernel's one, but why bother
when we can just let the kernel supply the canonical one?

Bug: 17436734

(cherry picked from commit 1cff9a89645a8f362a9ce19c7f9544e98c1fd9e7)

Change-Id: Ie13d73fd97395e1979a67c2294e036a97c50000d

9 years agoFix 32-bit arm unwinding through signal frames.
Elliott Hughes [Tue, 16 Sep 2014 20:57:39 +0000 (13:57 -0700)]
Fix 32-bit arm unwinding through signal frames.

gdb was already okay; libgcc and libunwind need a little extra help.

Bug: 17436734

(cherry picked from commit 148dff3ec6114a03acc722ae43990f1b342abad9)

Change-Id: I2cc997017acc57c930284af5264f353656b98c7b

9 years agoFix signal trampolines.
Elliott Hughes [Wed, 10 Sep 2014 22:20:40 +0000 (15:20 -0700)]
Fix signal trampolines.

* LP32 should use sa_restorer too. gdb expects this, and future (>= 3.15) x86
  kernels will apparently stop supporting the case where SA_RESTORER isn't
  set.

* gdb and libunwind care about the exact instruction sequences, so we need to
  modify the code slightly in a few cases to match what they're looking for.

* gdb also cares about the exact function names (for some architectures),
  so we need to use __restore and __restore_rt rather than __sigreturn and
  __rt_sigreturn.

* It's possible that we don't have a VDSO; dl_iterate_phdr shouldn't assume
  that getauxval(AT_SYSINFO_EHDR) will return a non-null pointer.

This fixes unwinding through a signal handler in gdb for all architectures.
It doesn't fix libunwind for arm and arm64. I'll keep investigating that...

(cherry picked from commit 36f451a6d93b6807944d99fa23396e039c47e845)

Bug: 17436734
Change-Id: Ic1ea1184db6655c5d96180dc07bcc09628e647cb

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 agoDisable tzdata in $ANDROID_DATA.
Elliott Hughes [Mon, 27 Oct 2014 20:38:21 +0000 (13:38 -0700)]
Disable tzdata in $ANDROID_DATA.

Bug: 18139284
Change-Id: I2670dc1791d635139a5d39a438dc08777439476b

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