OSDN Git Service

android-x86/bionic.git
10 years agoam dc9b54c1: am f945732e: Merge "Fix a TODO; we\'ve had SOCK_CLOEXEC for a while...
Elliott Hughes [Thu, 7 Nov 2013 01:21:35 +0000 (17:21 -0800)]
am dc9b54c1: am f945732e: Merge "Fix a TODO; we\'ve had SOCK_CLOEXEC for a while now."

* commit 'dc9b54c11c3b20fe5d1dc5c591ff058788e7b376':
  Fix a TODO; we've had SOCK_CLOEXEC for a while now.

10 years agoam f945732e: Merge "Fix a TODO; we\'ve had SOCK_CLOEXEC for a while now."
Elliott Hughes [Thu, 7 Nov 2013 01:19:30 +0000 (17:19 -0800)]
am f945732e: Merge "Fix a TODO; we\'ve had SOCK_CLOEXEC for a while now."

* commit 'f945732e21e3c1291943d21fa5fee0c43792bbec':
  Fix a TODO; we've had SOCK_CLOEXEC for a while now.

10 years agoMerge "Fix a TODO; we've had SOCK_CLOEXEC for a while now."
Elliott Hughes [Thu, 7 Nov 2013 01:16:47 +0000 (01:16 +0000)]
Merge "Fix a TODO; we've had SOCK_CLOEXEC for a while now."

10 years agoam 76833a7c: am 9e63e03d: Merge "Clean up the 32-bit kernel support, fix LP64 fcntl...
Elliott Hughes [Thu, 7 Nov 2013 01:07:35 +0000 (17:07 -0800)]
am 76833a7c: am 9e63e03d: Merge "Clean up the 32-bit kernel support, fix LP64 fcntl declaration."

* commit '76833a7c575ca372b41cb6e2a964918d69fc0dbe':
  Clean up the 32-bit kernel support, fix LP64 fcntl declaration.

10 years agoam 9e63e03d: Merge "Clean up the 32-bit kernel support, fix LP64 fcntl declaration."
Elliott Hughes [Thu, 7 Nov 2013 01:05:46 +0000 (17:05 -0800)]
am 9e63e03d: Merge "Clean up the 32-bit kernel support, fix LP64 fcntl declaration."

* commit '9e63e03d34fc0b4d87cff047a4bc55f8ebc5e12a':
  Clean up the 32-bit kernel support, fix LP64 fcntl declaration.

10 years agoFix a TODO; we've had SOCK_CLOEXEC for a while now.
Elliott Hughes [Thu, 7 Nov 2013 01:04:56 +0000 (17:04 -0800)]
Fix a TODO; we've had SOCK_CLOEXEC for a while now.

Change-Id: I4bc39b57f3c33441ead74127f576bf5a4e311566

10 years agoMerge "Clean up the 32-bit kernel support, fix LP64 fcntl declaration."
Elliott Hughes [Thu, 7 Nov 2013 01:02:54 +0000 (01:02 +0000)]
Merge "Clean up the 32-bit kernel support, fix LP64 fcntl declaration."

10 years agoClean up the 32-bit kernel support, fix LP64 fcntl declaration.
Elliott Hughes [Thu, 7 Nov 2013 00:20:54 +0000 (16:20 -0800)]
Clean up the 32-bit kernel support, fix LP64 fcntl declaration.

In practice, thanks to all the registers the stubs don't actually change,
but it's confusing to have an incorrect declaration.

I suspect that fcntl remains broken for aarch64; it happens to work for
x86_64 because the first vararg argument gets placed in the right register
anyway, but I have no reason to believe that's true for aarch64.

This patch adds a unit test, though, so we'll be able to tell when we get
as far as running the unit tests.

Change-Id: I58dd0054fe99d7d51d04c22781d8965dff1afbf3

10 years agoam 99205dc9: am af10f9e9: Merge "Add processed uapi kernel headers for ARM."
Ben Cheng [Thu, 7 Nov 2013 00:10:15 +0000 (16:10 -0800)]
am 99205dc9: am af10f9e9: Merge "Add processed uapi kernel headers for ARM."

* commit '99205dc987735e1d57f2e1b8446448f655808ab5':
  Add processed uapi kernel headers for ARM.

10 years agoam 3721a7e7: am 7115c802: Merge "Fix pread/pwrite for LP64."
Elliott Hughes [Thu, 7 Nov 2013 00:10:14 +0000 (16:10 -0800)]
am 3721a7e7: am 7115c802: Merge "Fix pread/pwrite for LP64."

* commit '3721a7e71fc831f6d58b7253627043d0658ad977':
  Fix pread/pwrite for LP64.

10 years agoam afc51b92: am c4dbc16e: Merge "Make cpp.py less braindead."
Elliott Hughes [Thu, 7 Nov 2013 00:10:12 +0000 (16:10 -0800)]
am afc51b92: am c4dbc16e: Merge "Make cpp.py less braindead."

* commit 'afc51b92a0e531f05e0e5477ea857a8669e5e5d1':
  Make cpp.py less braindead.

10 years agoam af10f9e9: Merge "Add processed uapi kernel headers for ARM."
Ben Cheng [Wed, 6 Nov 2013 23:58:39 +0000 (15:58 -0800)]
am af10f9e9: Merge "Add processed uapi kernel headers for ARM."

* commit 'af10f9e927ed22c8bccc80919e10df4d5f4aecdd':
  Add processed uapi kernel headers for ARM.

10 years agoMerge "Add processed uapi kernel headers for ARM."
Ben Cheng [Wed, 6 Nov 2013 23:55:25 +0000 (23:55 +0000)]
Merge "Add processed uapi kernel headers for ARM."

10 years agoAdd processed uapi kernel headers for ARM.
Ben Cheng [Wed, 6 Nov 2013 23:51:05 +0000 (15:51 -0800)]
Add processed uapi kernel headers for ARM.

Change-Id: Id34de841b7b4b5a1bf7d22eb793860f92f24a6e5

10 years agoam 7115c802: Merge "Fix pread/pwrite for LP64."
Elliott Hughes [Wed, 6 Nov 2013 22:26:58 +0000 (14:26 -0800)]
am 7115c802: Merge "Fix pread/pwrite for LP64."

* commit '7115c80231aa88272294076c8775c09727ece85a':
  Fix pread/pwrite for LP64.

10 years agoMerge "Fix pread/pwrite for LP64."
Elliott Hughes [Wed, 6 Nov 2013 22:25:17 +0000 (22:25 +0000)]
Merge "Fix pread/pwrite for LP64."

10 years agoFix pread/pwrite for LP64.
Elliott Hughes [Wed, 6 Nov 2013 21:10:37 +0000 (13:10 -0800)]
Fix pread/pwrite for LP64.

Unlike on 32-bit systems where off_t is 32-bit, we don't want to
throw away the top 32 bits of an LP64 system's 64-bit off_t.

Change-Id: Ib2e0daeb4fc0b8ab3d1b983d0b371d8f81033b50

10 years agoam c4dbc16e: Merge "Make cpp.py less braindead."
Elliott Hughes [Wed, 6 Nov 2013 20:34:22 +0000 (12:34 -0800)]
am c4dbc16e: Merge "Make cpp.py less braindead."

* commit 'c4dbc16eb03bcc0a3ea04cd32ce7551ad94b2bfc':
  Make cpp.py less braindead.

10 years agoMerge "Make cpp.py less braindead."
Elliott Hughes [Wed, 6 Nov 2013 20:31:09 +0000 (20:31 +0000)]
Merge "Make cpp.py less braindead."

10 years agoMake cpp.py less braindead.
Elliott Hughes [Tue, 5 Nov 2013 22:54:29 +0000 (14:54 -0800)]
Make cpp.py less braindead.

The old code ignored operator precedence (!), despite having two tables
of operator precedence. The code's still pretty awful, but I've cleaned
it up enough to fix this, the most important bug.

This patch lets us correctly clean the uapi unistd.h, stat.h, and swab.h files,
and also fixes the mess we were already making of various old kernel
header files. I've added a bunch more tests, fixed the existing tests that
the existing script was already failing (!), and changed the script so that
the tests are run every time the script is run.

We can probably remove some of the old kernel header files that we were
parsing incorrectly, but we can worry about that later.

Bug: 11253477
Change-Id: Ie66c65b3a7ae13b4e98ed8038a6a534f06eae0e5

10 years agoam ffe06880: am f1258672: Merge "Fix <sys/select.h> for LP64, clean up <time.h>."
Elliott Hughes [Tue, 5 Nov 2013 22:01:49 +0000 (14:01 -0800)]
am ffe06880: am f1258672: Merge "Fix <sys/select.h> for LP64, clean up <time.h>."

* commit 'ffe068808909c9825807dbaf8679b9f9efc2c690':
  Fix <sys/select.h> for LP64, clean up <time.h>.

10 years agoam f1258672: Merge "Fix <sys/select.h> for LP64, clean up <time.h>."
Elliott Hughes [Tue, 5 Nov 2013 21:58:18 +0000 (13:58 -0800)]
am f1258672: Merge "Fix <sys/select.h> for LP64, clean up <time.h>."

* commit 'f1258672d1eed41da30612a70690c19ff1966b73':
  Fix <sys/select.h> for LP64, clean up <time.h>.

10 years agoMerge "Fix <sys/select.h> for LP64, clean up <time.h>."
Elliott Hughes [Tue, 5 Nov 2013 21:54:38 +0000 (21:54 +0000)]
Merge "Fix <sys/select.h> for LP64, clean up <time.h>."

10 years agoFix <sys/select.h> for LP64, clean up <time.h>.
Elliott Hughes [Tue, 5 Nov 2013 21:28:36 +0000 (13:28 -0800)]
Fix <sys/select.h> for LP64, clean up <time.h>.

The 64-bit uapi headers don't define FD_CLR and friends, so this
patch updates libc/kernel/common/linux/time.h after the change
b934bbec145e9e084bf48149a3a94ae3dd132157 in external/kernel-headers,
then fixes <sys/select.h> to work in this new world, and removes
some now-unnecessary duplication from <time.h> (with other cruft
cleaned up while I'm here).

Change-Id: Ifd26f901b4d200c65065b3e6ef1b74055127e052

10 years agoam 3c5d651c: am 9b9f0d0c: Merge "Remove unnecessary #include."
Elliott Hughes [Tue, 5 Nov 2013 20:06:58 +0000 (12:06 -0800)]
am 3c5d651c: am 9b9f0d0c: Merge "Remove unnecessary #include."

* commit '3c5d651c051e56e7fb48214e334600cd3f361460':
  Remove unnecessary #include.

10 years agoam 9b9f0d0c: Merge "Remove unnecessary #include."
Elliott Hughes [Tue, 5 Nov 2013 20:04:34 +0000 (12:04 -0800)]
am 9b9f0d0c: Merge "Remove unnecessary #include."

* commit '9b9f0d0cd05b5249e4b8119a8bd12ec17712b9da':
  Remove unnecessary #include.

10 years agoMerge "Remove unnecessary #include."
Elliott Hughes [Tue, 5 Nov 2013 20:00:29 +0000 (20:00 +0000)]
Merge "Remove unnecessary #include."

10 years agoRemove unnecessary #include.
Elliott Hughes [Tue, 5 Nov 2013 19:59:06 +0000 (11:59 -0800)]
Remove unnecessary #include.

Change-Id: I99dade0b3803272ee29eba2ad36b0311f8a24c31

10 years agoam 00889af0: am 943cc1b5: Merge "Refresh libc/kernel/common/linux/uinput.h"
Elliott Hughes [Thu, 31 Oct 2013 23:07:39 +0000 (16:07 -0700)]
am 00889af0: am 943cc1b5: Merge "Refresh libc/kernel/common/linux/uinput.h"

* commit '00889af038359e0a7e97384bad25a809e8887857':
  Refresh libc/kernel/common/linux/uinput.h

10 years agoam 943cc1b5: Merge "Refresh libc/kernel/common/linux/uinput.h"
Elliott Hughes [Thu, 31 Oct 2013 23:05:50 +0000 (16:05 -0700)]
am 943cc1b5: Merge "Refresh libc/kernel/common/linux/uinput.h"

* commit '943cc1b58892c627f65f44b7f0fcf365048b7364':
  Refresh libc/kernel/common/linux/uinput.h

10 years agoMerge "Refresh libc/kernel/common/linux/uinput.h"
Elliott Hughes [Thu, 31 Oct 2013 23:03:15 +0000 (23:03 +0000)]
Merge "Refresh libc/kernel/common/linux/uinput.h"

10 years agoRefresh libc/kernel/common/linux/uinput.h
Scott Anderson [Fri, 25 Oct 2013 22:04:49 +0000 (15:04 -0700)]
Refresh libc/kernel/common/linux/uinput.h

Change-Id: Icd830af5aee63276554ebf7bfe8192965209cc59
Signed-off-by: Scott Anderson <saa@google.com>
10 years agoam 6b69b753: am 4d2ab4c7: Merge "Fix linker crashes during unknown symbol lookup"
Elliott Hughes [Thu, 31 Oct 2013 22:13:39 +0000 (15:13 -0700)]
am 6b69b753: am 4d2ab4c7: Merge "Fix linker crashes during unknown symbol lookup"

* commit '6b69b753d7c9820fb4fd7f88a047931c645834c8':
  Fix linker crashes during unknown symbol lookup

10 years agoam 4d2ab4c7: Merge "Fix linker crashes during unknown symbol lookup"
Elliott Hughes [Thu, 31 Oct 2013 22:10:25 +0000 (15:10 -0700)]
am 4d2ab4c7: Merge "Fix linker crashes during unknown symbol lookup"

* commit '4d2ab4c758a8c76193452b139778e90531721930':
  Fix linker crashes during unknown symbol lookup

10 years agoMerge "Fix linker crashes during unknown symbol lookup"
Elliott Hughes [Thu, 31 Oct 2013 22:06:59 +0000 (22:06 +0000)]
Merge "Fix linker crashes during unknown symbol lookup"

10 years agoFix linker crashes during unknown symbol lookup
Sergey Melnikov [Thu, 31 Oct 2013 14:02:12 +0000 (18:02 +0400)]
Fix linker crashes during unknown symbol lookup

Integration of kernel VDSO into internal bionic data structures using
common functions.
Fix for dl_iterate_phdr function: the function provides incorrect
address of object in case of nonzero virtual and base addresses.
Location in address space of a particular program header should be
calculated using the formula:  addr = base_addr + virtual_addr.

Signed-off-by: Sergey Melnikov <sergey.melnikov@intel.com>
Change-Id: Ie2ab4257fd456242aab8afed0bd5bd6b29e81d6d

10 years agoam 61ec6a62: am cc9b7456: Merge "Move the pthread debugging flags to the right place."
Elliott Hughes [Thu, 31 Oct 2013 21:26:46 +0000 (14:26 -0700)]
am 61ec6a62: am cc9b7456: Merge "Move the pthread debugging flags to the right place."

* commit '61ec6a621c699d68246a3dfe724fa13f0555ecf4':
  Move the pthread debugging flags to the right place.

10 years agoam cc9b7456: Merge "Move the pthread debugging flags to the right place."
Elliott Hughes [Thu, 31 Oct 2013 21:25:03 +0000 (14:25 -0700)]
am cc9b7456: Merge "Move the pthread debugging flags to the right place."

* commit 'cc9b7456b66b7c7c218a9d1f00d7aef1f5ecf409':
  Move the pthread debugging flags to the right place.

10 years agoMerge "Move the pthread debugging flags to the right place."
Elliott Hughes [Thu, 31 Oct 2013 21:23:29 +0000 (21:23 +0000)]
Merge "Move the pthread debugging flags to the right place."

10 years agoMove the pthread debugging flags to the right place.
Elliott Hughes [Thu, 31 Oct 2013 21:09:39 +0000 (14:09 -0700)]
Move the pthread debugging flags to the right place.

Change-Id: Ie805bd837d1f72cdf1818e056c0baeb0857e4e84

10 years agoam 5ab8d33a: Upgrade to tzdata2013h.
Elliott Hughes [Thu, 31 Oct 2013 20:50:33 +0000 (13:50 -0700)]
am 5ab8d33a: Upgrade to tzdata2013h.

* commit '5ab8d33aa64a4ca12172dba92df172f70629874d':
  Upgrade to tzdata2013h.

10 years agoam 1658691e: am 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."
Elliott Hughes [Thu, 31 Oct 2013 20:43:18 +0000 (13:43 -0700)]
am 1658691e: am 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."

* commit '1658691e0cfe2eb221bee837649de1907a579a0b':
  <pthread.h> fixes and pthread cleanup.

10 years agoUpgrade to tzdata2013h.
Elliott Hughes [Mon, 28 Oct 2013 16:38:00 +0000 (09:38 -0700)]
Upgrade to tzdata2013h.

From the release notes:

  Changes affecting current and future time stamps:

    Libya has switched its time zone back to UTC+2 without DST,
    instead of UTC+1 with DST.  (Thanks to Even Scharning.)

    Western Sahara (Africa/El_Aaiun) uses Morocco's DST rules.
    (Thanks to Gwillim Law.)

  Changes affecting future time stamps:

    Acre and (we guess) western Amazonas will switch from UTC-4 to UTC-5
    on 2013-11-10.  This affects America/Rio_Branco and America/Eirunepe.
    (Thanks to Steffen Thorsen.)

    Add entries for DST transitions in Morocco in the year 2038.
    This avoids some year-2038 glitches introduced in 2013g.
    (Thanks to Yoshito Umaoka for reporting the problem.)

(cherry picked from commit 3df3879bd679f2a8cf29000036c751c93275c094)

Change-Id: Ibdac6cc1db0fe24c62fe68e99d057dface6b6745

10 years agoam 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."
Elliott Hughes [Thu, 31 Oct 2013 20:41:00 +0000 (13:41 -0700)]
am 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."

* commit '0360e3ab2d21d4b4b3d5590765857bef595c0046':
  <pthread.h> fixes and pthread cleanup.

10 years agoMerge "<pthread.h> fixes and pthread cleanup."
Elliott Hughes [Thu, 31 Oct 2013 20:36:48 +0000 (20:36 +0000)]
Merge "<pthread.h> fixes and pthread cleanup."

10 years ago<pthread.h> fixes and pthread cleanup.
Elliott Hughes [Wed, 30 Oct 2013 21:40:09 +0000 (14:40 -0700)]
<pthread.h> fixes and pthread cleanup.

<pthread.h> was missing nonnull attributes, noreturn on pthread_exit,
and had incorrect cv qualifiers for several standard functions.

I've also marked the non-standard stuff (where I count glibc rather
than POSIX as "standard") so we can revisit this cruft for LP64 and
try to ensure we're compatible with glibc.

I've also broken out the pthread_cond* functions into a new file.

I've made the remaining pthread files (plus ptrace) part of the bionic code
and fixed all the warnings.

I've added a few more smoke tests for chunks of untested pthread functionality.

We no longer need the libc_static_common_src_files hack for any of the
pthread implementation because we long since stripped out the rest of
the armv5 support, and this hack was just to ensure that __get_tls in libc.a
went via the kernel if necessary.

This patch also finishes the job of breaking up the pthread.c monolith, and
adds a handful of new tests.

Change-Id: Idc0ae7f5d8aa65989598acd4c01a874fe21582c7

10 years agoam 9be24f71: am d0d0b52d: Merge "Remove an obsolete ARM gdb hack."
Elliott Hughes [Wed, 30 Oct 2013 21:42:59 +0000 (14:42 -0700)]
am 9be24f71: am d0d0b52d: Merge "Remove an obsolete ARM gdb hack."

* commit '9be24f71604d4e667bf23d77bb953a29737b3f2d':
  Remove an obsolete ARM gdb hack.

10 years agoam d0d0b52d: Merge "Remove an obsolete ARM gdb hack."
Elliott Hughes [Wed, 30 Oct 2013 21:40:17 +0000 (14:40 -0700)]
am d0d0b52d: Merge "Remove an obsolete ARM gdb hack."

* commit 'd0d0b52da375bfa85947a4257198791f615f18a8':
  Remove an obsolete ARM gdb hack.

10 years agoMerge "Remove an obsolete ARM gdb hack."
Elliott Hughes [Wed, 30 Oct 2013 21:37:56 +0000 (21:37 +0000)]
Merge "Remove an obsolete ARM gdb hack."

10 years agoRemove an obsolete ARM gdb hack.
Elliott Hughes [Wed, 30 Oct 2013 21:32:42 +0000 (14:32 -0700)]
Remove an obsolete ARM gdb hack.

Experiment shows that the claim in the makefile was false: gdb works fine
setting breakpoints in these functions when compiled without special treatment.

Change-Id: Ibdf4dd5a14d171c954b8c2089daaf28e1c310be9

10 years agoam 6cf34775: am 47a73363: Merge "Factor out some of the makefile cruft."
Elliott Hughes [Wed, 30 Oct 2013 02:18:56 +0000 (19:18 -0700)]
am 6cf34775: am 47a73363: Merge "Factor out some of the makefile cruft."

* commit '6cf34775513859dd48b986162e761aff57df82fb':
  Factor out some of the makefile cruft.

10 years agoam 47a73363: Merge "Factor out some of the makefile cruft."
Elliott Hughes [Wed, 30 Oct 2013 02:15:37 +0000 (19:15 -0700)]
am 47a73363: Merge "Factor out some of the makefile cruft."

* commit '47a73363fcdb88811eedbe484720fb08dc30a995':
  Factor out some of the makefile cruft.

10 years agoMerge "Factor out some of the makefile cruft."
Elliott Hughes [Wed, 30 Oct 2013 02:13:34 +0000 (02:13 +0000)]
Merge "Factor out some of the makefile cruft."

10 years agoam ee99ebbc: am 7a8e20c9: Merge "Explain the sigprocmask in pthread_exit."
Elliott Hughes [Wed, 30 Oct 2013 01:31:06 +0000 (18:31 -0700)]
am ee99ebbc: am 7a8e20c9: Merge "Explain the sigprocmask in pthread_exit."

* commit 'ee99ebbc8f0447880f316a10b2249f813f964172':
  Explain the sigprocmask in pthread_exit.

10 years agoam 4fbd0277: am f084f7dc: Merge "Fix up failing glibc tests."
Christopher Ferris [Wed, 30 Oct 2013 01:31:05 +0000 (18:31 -0700)]
am 4fbd0277: am f084f7dc: Merge "Fix up failing glibc tests."

* commit '4fbd0277aedd9cf1e81648e9a849c52211a65adf':
  Fix up failing glibc tests.

10 years agoFactor out some of the makefile cruft.
Elliott Hughes [Tue, 29 Oct 2013 23:59:54 +0000 (16:59 -0700)]
Factor out some of the makefile cruft.

I really don't want to add yet another copy for aarch64.

Also sort arm, mips, and x86.

Also silence the "TARGET_ARCH_VARIANT" warning for non-ARM; Intel and MIPS
have both complained about it.

Change-Id: I32c592a90c0cf0cdae250d84035b3e4655543781

10 years agoam 7a8e20c9: Merge "Explain the sigprocmask in pthread_exit."
Elliott Hughes [Tue, 29 Oct 2013 23:31:23 +0000 (16:31 -0700)]
am 7a8e20c9: Merge "Explain the sigprocmask in pthread_exit."

* commit '7a8e20c9c7c11b0ef11b718f18be5e2df22edc1a':
  Explain the sigprocmask in pthread_exit.

10 years agoMerge "Explain the sigprocmask in pthread_exit."
Elliott Hughes [Tue, 29 Oct 2013 23:29:07 +0000 (23:29 +0000)]
Merge "Explain the sigprocmask in pthread_exit."

10 years agoExplain the sigprocmask in pthread_exit.
Elliott Hughes [Tue, 29 Oct 2013 23:11:06 +0000 (16:11 -0700)]
Explain the sigprocmask in pthread_exit.

Also remove the SIGSEGV special case, which was probably because
hand-written __exit_with_stack_teardown stubs used to try to cause
SIGSEGV if the exit system call returned (which it never does, so
that dead code disappeared).

Also move the sigprocmask into the only case where it's necessary ---
the one where we unmap the stack that would be used by a signal
handler.

Change-Id: Ie40d20c1ae2f5e7125131b6b492cba7a2c6d08e9

10 years agoam f084f7dc: Merge "Fix up failing glibc tests."
Christopher Ferris [Tue, 29 Oct 2013 22:35:34 +0000 (15:35 -0700)]
am f084f7dc: Merge "Fix up failing glibc tests."

* commit 'f084f7dc1e4601f96c44eeb422615d7ac742b2d0':
  Fix up failing glibc tests.

10 years agoMerge "Fix up failing glibc tests."
Christopher Ferris [Tue, 29 Oct 2013 22:32:33 +0000 (22:32 +0000)]
Merge "Fix up failing glibc tests."

10 years agoFix up failing glibc tests.
Christopher Ferris [Mon, 28 Oct 2013 22:24:04 +0000 (15:24 -0700)]
Fix up failing glibc tests.

There is a known bug running clone with the CLONE_VM flag, so for host
create an empty test.

Change the expected output of the stdio test for a glibc difference.

Change the pause test to use ScopedSignalHandler to setup/restore the SIGALRM
handler.

After this, running bionic-unit-tests-glibc passes for all tests.

Bug: 11389824

Change-Id: Ib304eae4164115835a54991dfdca5821ecc3db5e

10 years agoam 3030157f: am 8e6e7cda: Merge "Update <sys/exec_elf.h> to include EM_AARCH64."
Elliott Hughes [Tue, 29 Oct 2013 15:57:41 +0000 (08:57 -0700)]
am 3030157f: am 8e6e7cda: Merge "Update <sys/exec_elf.h> to include EM_AARCH64."

* commit '3030157f82e012612ef4c6d999878be2f65116dd':
  Update <sys/exec_elf.h> to include EM_AARCH64.

10 years agoam 8e6e7cda: Merge "Update <sys/exec_elf.h> to include EM_AARCH64."
Elliott Hughes [Tue, 29 Oct 2013 15:53:53 +0000 (08:53 -0700)]
am 8e6e7cda: Merge "Update <sys/exec_elf.h> to include EM_AARCH64."

* commit '8e6e7cdadbb4efdeefaa73fe94f7a9a1722745a7':
  Update <sys/exec_elf.h> to include EM_AARCH64.

10 years agoMerge "Update <sys/exec_elf.h> to include EM_AARCH64."
Elliott Hughes [Tue, 29 Oct 2013 15:50:33 +0000 (15:50 +0000)]
Merge "Update <sys/exec_elf.h> to include EM_AARCH64."

10 years agoUpdate <sys/exec_elf.h> to include EM_AARCH64.
Elliott Hughes [Tue, 29 Oct 2013 04:28:40 +0000 (21:28 -0700)]
Update <sys/exec_elf.h> to include EM_AARCH64.

Upstream added the constant for us.

Change-Id: I197e32d2e5b3fd499d069546ccfcc1d35d65e0a0

10 years agoam e89d16d2: am 6e504fda: Merge "AArch64: Add support for AArch64 to stdlib/strtod.c"
Elliott Hughes [Mon, 28 Oct 2013 23:36:46 +0000 (16:36 -0700)]
am e89d16d2: am 6e504fda: Merge "AArch64: Add support for AArch64 to stdlib/strtod.c"

* commit 'e89d16d24bb9d07856c7cc95464bfae970f4e847':
  AArch64: Add support for AArch64 to stdlib/strtod.c

10 years agoam 6e504fda: Merge "AArch64: Add support for AArch64 to stdlib/strtod.c"
Elliott Hughes [Mon, 28 Oct 2013 23:27:37 +0000 (16:27 -0700)]
am 6e504fda: Merge "AArch64: Add support for AArch64 to stdlib/strtod.c"

* commit '6e504fdaff6cb85edca312db56ce79f3477e4db1':
  AArch64: Add support for AArch64 to stdlib/strtod.c

10 years agoam d4e28c23: am 830de5cb: Merge "AArch64: Autogenerated syscalls for AArch64"
Elliott Hughes [Mon, 28 Oct 2013 23:25:47 +0000 (16:25 -0700)]
am d4e28c23: am 830de5cb: Merge "AArch64: Autogenerated syscalls for AArch64"

* commit 'd4e28c236b592a4968bff354ad7ad192d5a3f36d':
  AArch64: Autogenerated syscalls for AArch64

10 years agoMerge "AArch64: Add support for AArch64 to stdlib/strtod.c"
Elliott Hughes [Mon, 28 Oct 2013 23:25:27 +0000 (23:25 +0000)]
Merge "AArch64: Add support for AArch64 to stdlib/strtod.c"

10 years agoAArch64: Add support for AArch64 to stdlib/strtod.c
Serban Constantinescu [Tue, 8 Oct 2013 18:32:36 +0000 (19:32 +0100)]
AArch64: Add support for AArch64 to stdlib/strtod.c

This patch adds support for AArch64 to strtod.c definitions.

Change-Id: I9491c4371d921c00e73ae169877a9a71225731fb
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
10 years agoam 830de5cb: Merge "AArch64: Autogenerated syscalls for AArch64"
Elliott Hughes [Mon, 28 Oct 2013 23:23:14 +0000 (16:23 -0700)]
am 830de5cb: Merge "AArch64: Autogenerated syscalls for AArch64"

* commit '830de5cb30ba163f9c34fc87f624d6604adc3232':
  AArch64: Autogenerated syscalls for AArch64

10 years agoam 48e0ee8a: am 93b7b819: Merge "AArch64: Add support for AArch64 to the syscall...
Elliott Hughes [Mon, 28 Oct 2013 23:22:26 +0000 (16:22 -0700)]
am 48e0ee8a: am 93b7b819: Merge "AArch64: Add support for AArch64 to the syscall interface"

* commit '48e0ee8a0900e820b2fb1bae6347e0d39da62096':
  AArch64: Add support for AArch64 to the syscall interface

10 years agoam 93b7b819: Merge "AArch64: Add support for AArch64 to the syscall interface"
Elliott Hughes [Mon, 28 Oct 2013 23:19:59 +0000 (16:19 -0700)]
am 93b7b819: Merge "AArch64: Add support for AArch64 to the syscall interface"

* commit '93b7b8191238a8735141ed0f0b1222d8a30be3cc':
  AArch64: Add support for AArch64 to the syscall interface

10 years agoMerge "AArch64: Autogenerated syscalls for AArch64"
Elliott Hughes [Mon, 28 Oct 2013 23:19:46 +0000 (23:19 +0000)]
Merge "AArch64: Autogenerated syscalls for AArch64"

10 years agoam 5911e25b: am 07d3c6ce: Merge "Fix the *rand48 functions on LP64."
Elliott Hughes [Mon, 28 Oct 2013 23:19:02 +0000 (16:19 -0700)]
am 5911e25b: am 07d3c6ce: Merge "Fix the *rand48 functions on LP64."

* commit '5911e25bfc8ef3815d0e1ab4f5829ff74a523088':
  Fix the *rand48 functions on LP64.

10 years agoAArch64: Autogenerated syscalls for AArch64
Serban Constantinescu [Thu, 10 Oct 2013 22:05:06 +0000 (23:05 +0100)]
AArch64: Autogenerated syscalls for AArch64

This patch adds AArch64 syscalls, autogenerated using:
        ./libc/tools/gensyscalls.py

Change-Id: I1cc60430423ecb52a35448bf2c358b82136b2f16
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
10 years agoMerge "AArch64: Add support for AArch64 to the syscall interface"
Elliott Hughes [Mon, 28 Oct 2013 23:17:23 +0000 (23:17 +0000)]
Merge "AArch64: Add support for AArch64 to the syscall interface"

10 years agoam 07d3c6ce: Merge "Fix the *rand48 functions on LP64."
Elliott Hughes [Mon, 28 Oct 2013 23:16:41 +0000 (16:16 -0700)]
am 07d3c6ce: Merge "Fix the *rand48 functions on LP64."

* commit '07d3c6cecc8016577c9dbd827e85154c077604da':
  Fix the *rand48 functions on LP64.

10 years agoAArch64: Add support for AArch64 to the syscall interface
Serban Constantinescu [Mon, 7 Oct 2013 15:49:09 +0000 (16:49 +0100)]
AArch64: Add support for AArch64 to the syscall interface

This patch adds support for AArch64 to the syscall interface. The kernel
implementation exports a set of canonical syscalls, therefore some of
the userspace exported syscalls are implemented as stubs based on the
canonical set.

Change-Id: Ia965d71e97769b8be9d7655193fc40303964c4df
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
10 years agoMerge "Fix the *rand48 functions on LP64."
Elliott Hughes [Mon, 28 Oct 2013 23:09:49 +0000 (23:09 +0000)]
Merge "Fix the *rand48 functions on LP64."

10 years agoFix the *rand48 functions on LP64.
Elliott Hughes [Mon, 28 Oct 2013 22:24:26 +0000 (15:24 -0700)]
Fix the *rand48 functions on LP64.

I reported the mrand48 bug upstream, and 'matt' fixed the whole family
of functions!

Change-Id: I07fbc034e86499ce89599c3026a741738fd0cfc0

10 years agoam 6ec070a0: am 020bcdae: Merge "Update <sys/exec_elf.h> to get the DF_* flags."
Elliott Hughes [Mon, 28 Oct 2013 22:06:58 +0000 (15:06 -0700)]
am 6ec070a0: am 020bcdae: Merge "Update <sys/exec_elf.h> to get the DF_* flags."

* commit '6ec070a01509c3477be6d36cd46b81c9b3876733':
  Update <sys/exec_elf.h> to get the DF_* flags.

10 years agoam 020bcdae: Merge "Update <sys/exec_elf.h> to get the DF_* flags."
Elliott Hughes [Mon, 28 Oct 2013 22:05:49 +0000 (15:05 -0700)]
am 020bcdae: Merge "Update <sys/exec_elf.h> to get the DF_* flags."

* commit '020bcdaef349b6bd82302a0656fdf9aaff30bdb3':
  Update <sys/exec_elf.h> to get the DF_* flags.

10 years agoMerge "Update <sys/exec_elf.h> to get the DF_* flags."
Elliott Hughes [Mon, 28 Oct 2013 22:03:54 +0000 (22:03 +0000)]
Merge "Update <sys/exec_elf.h> to get the DF_* flags."

10 years agoUpdate <sys/exec_elf.h> to get the DF_* flags.
Elliott Hughes [Mon, 28 Oct 2013 21:59:41 +0000 (14:59 -0700)]
Update <sys/exec_elf.h> to get the DF_* flags.

Change-Id: Ia9e785f6b95122f94ee3b01a312db1d5bb91a72e

10 years agoam 224aee2f: am 486d99f0: Merge "Don\'t allow text relocations on 64-bit."
Elliott Hughes [Mon, 28 Oct 2013 21:41:45 +0000 (14:41 -0700)]
am 224aee2f: am 486d99f0: Merge "Don\'t allow text relocations on 64-bit."

* commit '224aee2f5cebcccf832c8a204163192bc752c5a1':
  Don't allow text relocations on 64-bit.

10 years agoam 486d99f0: Merge "Don\'t allow text relocations on 64-bit."
Elliott Hughes [Mon, 28 Oct 2013 21:39:05 +0000 (14:39 -0700)]
am 486d99f0: Merge "Don\'t allow text relocations on 64-bit."

* commit '486d99f050a609c16641614edc72d71746ce859a':
  Don't allow text relocations on 64-bit.

10 years agoMerge "Don't allow text relocations on 64-bit."
Elliott Hughes [Mon, 28 Oct 2013 21:36:23 +0000 (21:36 +0000)]
Merge "Don't allow text relocations on 64-bit."

10 years agoDon't allow text relocations on 64-bit.
Elliott Hughes [Mon, 28 Oct 2013 21:19:05 +0000 (14:19 -0700)]
Don't allow text relocations on 64-bit.

I've also updated our <sys/exec_elf.h> to match upstream.

Change-Id: I52f9fce3167541811208d273ff23ceaa112f7135

10 years agoam e9f6c480: am 3ec5d895: Merge "Fix utime/utimes when passed a NULL pointer."
Elliott Hughes [Mon, 28 Oct 2013 20:34:32 +0000 (13:34 -0700)]
am e9f6c480: am 3ec5d895: Merge "Fix utime/utimes when passed a NULL pointer."

* commit 'e9f6c4800816df3acec0d5683667b5aac290f049':
  Fix utime/utimes when passed a NULL pointer.

10 years agoam 3ec5d895: Merge "Fix utime/utimes when passed a NULL pointer."
Elliott Hughes [Mon, 28 Oct 2013 20:32:44 +0000 (13:32 -0700)]
am 3ec5d895: Merge "Fix utime/utimes when passed a NULL pointer."

* commit '3ec5d8954b41f2e51d6ff7851533f1db1eba9a09':
  Fix utime/utimes when passed a NULL pointer.

10 years agoMerge "Fix utime/utimes when passed a NULL pointer."
Elliott Hughes [Mon, 28 Oct 2013 20:29:24 +0000 (20:29 +0000)]
Merge "Fix utime/utimes when passed a NULL pointer."

10 years agoFix utime/utimes when passed a NULL pointer.
Elliott Hughes [Mon, 28 Oct 2013 20:21:06 +0000 (13:21 -0700)]
Fix utime/utimes when passed a NULL pointer.

Bug: 11383777
Change-Id: If944a42f3adfa8a6ce91c167c249e009ed63300a

10 years agoam c98827e7: am d4e9f076: Merge "Clean up linker architecture macros."
Elliott Hughes [Mon, 28 Oct 2013 18:08:40 +0000 (11:08 -0700)]
am c98827e7: am d4e9f076: Merge "Clean up linker architecture macros."

* commit 'c98827e70ab2a3798f2369a4b5a23e3afc18552c':
  Clean up linker architecture macros.

10 years agoam d4e9f076: Merge "Clean up linker architecture macros."
Elliott Hughes [Mon, 28 Oct 2013 18:06:47 +0000 (11:06 -0700)]
am d4e9f076: Merge "Clean up linker architecture macros."

* commit 'd4e9f076d621dcf6450acba178e65d63c076ae6e':
  Clean up linker architecture macros.

10 years agoMerge "Clean up linker architecture macros."
Elliott Hughes [Mon, 28 Oct 2013 18:04:22 +0000 (18:04 +0000)]
Merge "Clean up linker architecture macros."

10 years agoClean up linker architecture macros.
Elliott Hughes [Sat, 26 Oct 2013 00:38:02 +0000 (17:38 -0700)]
Clean up linker architecture macros.

We don't need our own architecture macros; the standard ones will do.

This patch also fixes some __x86_64__ tests to be USE_RELA tests instead,
because they're not actually x86_64-specific.

I've cleaned up architecture-specific code slightly so where possible
all the code corresponding to a particular architecture is together.

This patch also fixes a bug in LP64 DT_PLTGOT handling, which should be
an error rather than falling through into DT_DEBUG! There was another #ifdef
bug where we'd only report unexpected DT_ entries on MIPS.

Change-Id: Id1d04e372611f641c1aa278a18e379f28af9eaf5

10 years agoam d9916301: am f7f6b268: Merge "Upgrade to tzdata2013h."
Elliott Hughes [Mon, 28 Oct 2013 17:03:20 +0000 (10:03 -0700)]
am d9916301: am f7f6b268: Merge "Upgrade to tzdata2013h."

* commit 'd9916301a926c925439efa3cd1bba53e49f10dfc':
  Upgrade to tzdata2013h.

10 years agoam f7f6b268: Merge "Upgrade to tzdata2013h."
Elliott Hughes [Mon, 28 Oct 2013 17:01:51 +0000 (10:01 -0700)]
am f7f6b268: Merge "Upgrade to tzdata2013h."

* commit 'f7f6b2686d466d695d813593a8b268abdf7ca29d':
  Upgrade to tzdata2013h.