OSDN Git Service

android-x86/bionic.git
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 agoMerge "Upgrade to tzdata2013h."
Elliott Hughes [Mon, 28 Oct 2013 17:00:16 +0000 (17:00 +0000)]
Merge "Upgrade to tzdata2013h."

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

Change-Id: Ic855df19773e3fbf13b941b5bfa91dcee9e181e1

10 years agoMerge "Update running bionic unit tests on host."
Christopher Ferris [Fri, 25 Oct 2013 17:37:02 +0000 (17:37 +0000)]
Merge "Update running bionic unit tests on host."

10 years agoUpdate running bionic unit tests on host.
Christopher Ferris [Fri, 25 Oct 2013 17:06:57 +0000 (10:06 -0700)]
Update running bionic unit tests on host.

Add a bionic-unit-tests-glibc-run target to run the glibc bionic unit tests.

Modify the bionic-unit-tests-run-on-host to make sure that the /system/bin
directory is created properly.

Also remove the EXTERNAL_STORAGE variable which isn't used any more.

Bug: 11234772
Change-Id: I9aea501d05700b29e938f672474d550b1872a78b

10 years agoMerge "Fix the exit syscall stub's name."
Elliott Hughes [Fri, 25 Oct 2013 16:25:22 +0000 (16:25 +0000)]
Merge "Fix the exit syscall stub's name."

10 years agoMerge "Simplify defining the linker architecture macro."
Elliott Hughes [Fri, 25 Oct 2013 16:01:20 +0000 (16:01 +0000)]
Merge "Simplify defining the linker architecture macro."

10 years agoSimplify defining the linker architecture macro.
Elliott Hughes [Fri, 25 Oct 2013 06:18:13 +0000 (23:18 -0700)]
Simplify defining the linker architecture macro.

Like the new TODO says, though, do we need this at all? Wouldn't we be better
off just using the regular architecture-specific macros? This is a dynamic
linker, so there's never a possibility of cross-linking.

Change-Id: I7be6b8663f5e585c4024a49aae383430c86a3c1b

10 years agoFix the exit syscall stub's name.
Elliott Hughes [Fri, 25 Oct 2013 05:36:58 +0000 (22:36 -0700)]
Fix the exit syscall stub's name.

I've left the exit_group syscall as _exit because otherwise we'd have to
convince the compiler that our _exit (which just calls __exit_group) is
actually "noreturn", and it seems like that would be less clean than just
cutting out the middleman.

We'll just have to trust ourselves not to add anything to SYSCALLS.TXT
that ought to be private but that only has a single leading underscore.
Hopefully we can manage that.

Change-Id: Iac47faea9f516186e1774381846c54cafabc4354

10 years agoMerge "Use hidden visibility for generated stubs whose names begin with underscores."
Elliott Hughes [Fri, 25 Oct 2013 00:20:24 +0000 (00:20 +0000)]
Merge "Use hidden visibility for generated stubs whose names begin with underscores."

10 years agoMerge "Start moving 32-bit cruft somewhere it won't pollute 64-bit."
Elliott Hughes [Fri, 25 Oct 2013 00:18:15 +0000 (00:18 +0000)]
Merge "Start moving 32-bit cruft somewhere it won't pollute 64-bit."

10 years agoStart moving 32-bit cruft somewhere it won't pollute 64-bit.
Elliott Hughes [Fri, 25 Oct 2013 00:14:55 +0000 (17:14 -0700)]
Start moving 32-bit cruft somewhere it won't pollute 64-bit.

Change-Id: I03a6a50a5243f29e50fb58a3cf8b5e7198640baa

10 years agoUse hidden visibility for generated stubs whose names begin with underscores.
Elliott Hughes [Fri, 25 Oct 2013 00:03:20 +0000 (17:03 -0700)]
Use hidden visibility for generated stubs whose names begin with underscores.

Change-Id: Idb39fd04b7a14114801624e744e76e0e7913d951

10 years agoMerge "Let the compiler worry about implementing ffs(3)."
Elliott Hughes [Thu, 24 Oct 2013 23:35:51 +0000 (23:35 +0000)]
Merge "Let the compiler worry about implementing ffs(3)."

10 years agoLet the compiler worry about implementing ffs(3).
Elliott Hughes [Thu, 24 Oct 2013 23:29:40 +0000 (16:29 -0700)]
Let the compiler worry about implementing ffs(3).

It does at least as good a job as our old hand-written assembly anyway.

Change-Id: If7c4a1ac508bace0b71ee7b67808caa6eabf11d2

10 years agoMerge "Revert "Don't warn about x86 text relocations. They're too prevalent.""
Elliott Hughes [Thu, 24 Oct 2013 23:05:24 +0000 (23:05 +0000)]
Merge "Revert "Don't warn about x86 text relocations. They're too prevalent.""

10 years agoRevert "Don't warn about x86 text relocations. They're too prevalent."
Elliott Hughes [Thu, 24 Oct 2013 22:58:28 +0000 (22:58 +0000)]
Revert "Don't warn about x86 text relocations. They're too prevalent."

This reverts commit 5be2c5998c996ff9d5efb94c127d9b832a295822.

Change-Id: I3fc8ca530cdbd74c834fb9cfabe812c9386419fc

10 years agoMerge "Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls."
Elliott Hughes [Thu, 24 Oct 2013 22:49:48 +0000 (22:49 +0000)]
Merge "Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls."

10 years agoRemove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls.
Elliott Hughes [Thu, 24 Oct 2013 22:15:14 +0000 (15:15 -0700)]
Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls.

(aarch64 kernels don't have these system calls.)

Change-Id: I6f64075aa412f71520f2df71c3d69b647f91c1ca

10 years agoMerge "Add __EXPORTED_HEADERS__ as predefined macro."
Ben Cheng [Wed, 23 Oct 2013 22:47:21 +0000 (22:47 +0000)]
Merge "Add __EXPORTED_HEADERS__ as predefined macro."

10 years agoAdd __EXPORTED_HEADERS__ as predefined macro.
Ben Cheng [Wed, 23 Oct 2013 21:38:25 +0000 (14:38 -0700)]
Add __EXPORTED_HEADERS__ as predefined macro.

To weed out stuff like this in uapi/linux/types.h

ifndef __EXPORTED_HEADERS__
warning "Attempt to use kernel headers from user space, see
http://kernelnewbies.org/KernelHeaders"
endif /* __EXPORTED_HEADERS__ */

Change-Id: I6506cea6248f7a3b44a839b98e91bdd0d3a6c4cd

10 years agoMerge "Don't warn about x86 text relocations. They're too prevalent."
Elliott Hughes [Wed, 23 Oct 2013 20:58:37 +0000 (20:58 +0000)]
Merge "Don't warn about x86 text relocations. They're too prevalent."

10 years agoDon't warn about x86 text relocations. They're too prevalent.
Elliott Hughes [Wed, 23 Oct 2013 20:45:01 +0000 (13:45 -0700)]
Don't warn about x86 text relocations. They're too prevalent.

We should fix this (and disallow it for x86_64), but for now let's get CTS
running again.

libdvm.so and libcutils.so are the main problems.

$ scanelf -qT out/target/product/generic_x86/symbols/system/lib/libcutils.so
  libcutils.so: (memory/data?) [0x4125] in (optimized out: previous android_memset16) [0x4100]
  libcutils.so: (memory/data?) [0x424F] in (optimized out: previous android_memset16) [0x4100]
  libcutils.so: (memory/data?) [0x42F8] in (optimized out: previous android_memset16) [0x4100]
  libcutils.so: (memory/data?) [0x4349] in (optimized out: previous android_memset16) [0x4100]
  libcutils.so: (memory/data?) [0x4406] in (optimized out: previous android_memset16) [0x4100]
  libcutils.so: (memory/data?) [0x45AC] in (optimized out: previous android_memset32) [0x4590]
  libcutils.so: (memory/data?) [0x4650] in (optimized out: previous android_memset32) [0x4590]
  libcutils.so: (memory/data?) [0x46F9] in (optimized out: previous android_memset32) [0x4590]
  libcutils.so: (memory/data?) [0x474A] in (optimized out: previous android_memset32) [0x4590]
  libcutils.so: (memory/data?) [0x4807] in (optimized out: previous android_memset32) [0x4590]

Bug: 11353056
Change-Id: Id4a76b310be7fe858a8a60d0d260b09913b66be9

10 years agoMerge "MIPS' pipe(2) is weird, but MIPS' pipe2(2) is the same as everyone else's."
Elliott Hughes [Wed, 23 Oct 2013 18:27:35 +0000 (18:27 +0000)]
Merge "MIPS' pipe(2) is weird, but MIPS' pipe2(2) is the same as everyone else's."

10 years agoMerge "Fix header file dependencies."
Elliott Hughes [Wed, 23 Oct 2013 18:27:00 +0000 (18:27 +0000)]
Merge "Fix header file dependencies."

10 years agoFix header file dependencies.
Elliott Hughes [Wed, 23 Oct 2013 18:25:54 +0000 (11:25 -0700)]
Fix header file dependencies.

MIPS' asm/fcntl.h assumes a bunch of __kernel_* types are already declared.

Change-Id: Iff701bbb5ede9667a78230c2de3a8f4fe41371c5

10 years agoMIPS' pipe(2) is weird, but MIPS' pipe2(2) is the same as everyone else's.
Elliott Hughes [Wed, 23 Oct 2013 18:21:36 +0000 (11:21 -0700)]
MIPS' pipe(2) is weird, but MIPS' pipe2(2) is the same as everyone else's.

arch/mips/kernel/syscall.c has a special sysm_pipe wrapper, but there's
no special treatment of pipe2 because it carries no historical baggage.

Change-Id: I892c0f690b21992c8a48276a9b732126f18fc0ee

10 years agoMerge "Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls."
Elliott Hughes [Wed, 23 Oct 2013 17:26:40 +0000 (17:26 +0000)]
Merge "Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls."

10 years agoRemove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls.
Elliott Hughes [Wed, 23 Oct 2013 16:48:29 +0000 (09:48 -0700)]
Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls.

(aarch64 kernels only have the newer system calls.)

Also expose the new functionality that's exposed by glibc in our header files.

Change-Id: I45d2d168a03f88723d1f7fbf634701006a4843c5

10 years agoMerge "Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls."
Elliott Hughes [Tue, 22 Oct 2013 23:32:24 +0000 (23:32 +0000)]
Merge "Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls."

10 years agoMove away from the __ARCH_WANT_SYSCALL_NO_AT system calls.
Elliott Hughes [Tue, 22 Oct 2013 20:28:46 +0000 (13:28 -0700)]
Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls.

Modern architectures only get the *at(2) system calls. For example,
aarch64 doesn't have open(2), and expects userspace to use openat(2)
instead.

Change-Id: I87b4ed79790cb8a80844f5544ac1a13fda26c7b5

10 years agoMerge "AArch64: Fix definitions for STDINT_LIMITS"
Elliott Hughes [Tue, 22 Oct 2013 19:41:26 +0000 (19:41 +0000)]
Merge "AArch64: Fix definitions for STDINT_LIMITS"

10 years agoAArch64: Fix definitions for STDINT_LIMITS
Serban Constantinescu [Tue, 8 Oct 2013 20:45:02 +0000 (21:45 +0100)]
AArch64: Fix definitions for STDINT_LIMITS

This patches fixes the definitions for STDINT_LIMITS on __LP64__
systems.

Change-Id: I5eb1664e9ef7c303432a2b041c99cec663816b75
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
10 years agoMerge "change wording on text relocation message."
Nick Kralevich [Tue, 22 Oct 2013 19:28:50 +0000 (19:28 +0000)]
Merge "change wording on text relocation message."

10 years agochange wording on text relocation message.
Nick Kralevich [Tue, 22 Oct 2013 19:06:36 +0000 (12:06 -0700)]
change wording on text relocation message.

The current message is too alarmist.

Change-Id: I53e8eadca239f867b4e6b9c193eba96e267950c3

10 years agoMerge "Make sure we have a mkfifo symbol."
Elliott Hughes [Tue, 22 Oct 2013 19:03:56 +0000 (19:03 +0000)]
Merge "Make sure we have a mkfifo symbol."

10 years agoMake sure we have a mkfifo symbol.
Elliott Hughes [Tue, 22 Oct 2013 17:54:11 +0000 (10:54 -0700)]
Make sure we have a mkfifo symbol.

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

10 years agoMerge "AArch64: Fix uses of stack size for 32/64bit libc builds"
Elliott Hughes [Tue, 22 Oct 2013 19:02:29 +0000 (19:02 +0000)]
Merge "AArch64: Fix uses of stack size for 32/64bit libc builds"

10 years agoAArch64: Fix uses of stack size for 32/64bit libc builds
Serban Constantinescu [Sun, 13 Oct 2013 21:07:26 +0000 (22:07 +0100)]
AArch64: Fix uses of stack size for 32/64bit libc builds

This patch fixes stack size uses to size_t.

Change-Id: I0671c85ddb1c1aceaf9440a7c73c21fe528653fa
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
10 years agoMerge "Fix statvfs tests for the host."
Elliott Hughes [Tue, 22 Oct 2013 03:12:24 +0000 (03:12 +0000)]
Merge "Fix statvfs tests for the host."

10 years agoFix statvfs tests for the host.
Elliott Hughes [Tue, 22 Oct 2013 02:27:19 +0000 (19:27 -0700)]
Fix statvfs tests for the host.

Using /proc seems like a better idea because it's more similar across devices.
I've switched to ensuring we check the initial and final elements in the struct
too, so we have more reason to believe the whole struct is converted correctly.

Change-Id: Ia23403369485747c1452292f6c9df2bb233c04fb

10 years agoMerge "Fix the system property tests to use $ANDROID_DATA."
Elliott Hughes [Tue, 22 Oct 2013 00:40:46 +0000 (00:40 +0000)]
Merge "Fix the system property tests to use $ANDROID_DATA."

10 years agoFix the system property tests to use $ANDROID_DATA.
Elliott Hughes [Tue, 22 Oct 2013 00:09:52 +0000 (17:09 -0700)]
Fix the system property tests to use $ANDROID_DATA.

This lets them work on the host.

Change-Id: I771ccc67652ae37451b45859c7831116cd830086

10 years agoMerge "Fix 16-byte stack alignment requirement for x86_64 ABI"
Elliott Hughes [Tue, 22 Oct 2013 00:38:36 +0000 (00:38 +0000)]
Merge "Fix 16-byte stack alignment requirement for x86_64 ABI"

10 years agoFix 16-byte stack alignment requirement for x86_64 ABI
Pavel Chupin [Mon, 21 Oct 2013 16:20:53 +0000 (20:20 +0400)]
Fix 16-byte stack alignment requirement for x86_64 ABI

Change-Id: I43304803ac54c8688c61688bd96c7160614172d4
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
10 years agoMerge "Fix the x86_64 vfork implementation."
Elliott Hughes [Mon, 21 Oct 2013 21:20:51 +0000 (21:20 +0000)]
Merge "Fix the x86_64 vfork implementation."

10 years agoMerge "Fix the x86_64 clone implementation."
Elliott Hughes [Mon, 21 Oct 2013 21:19:58 +0000 (21:19 +0000)]
Merge "Fix the x86_64 clone implementation."

10 years agoFix the x86_64 clone implementation.
Elliott Hughes [Sat, 19 Oct 2013 02:39:09 +0000 (19:39 -0700)]
Fix the x86_64 clone implementation.

Change-Id: Ia75f46dcb4d3222049e9a6a6fabc2b17223b47f7

10 years agoFix the x86_64 vfork implementation.
Elliott Hughes [Sat, 19 Oct 2013 01:21:11 +0000 (18:21 -0700)]
Fix the x86_64 vfork implementation.

Change-Id: I599507f5058e6196dc2d5b5653d06d5135dd8ac1

10 years agoMerge "Fix struct statfs for LP64."
Elliott Hughes [Sat, 19 Oct 2013 00:35:49 +0000 (00:35 +0000)]
Merge "Fix struct statfs for LP64."

10 years agoFix struct statfs for LP64.
Elliott Hughes [Sat, 19 Oct 2013 00:00:11 +0000 (17:00 -0700)]
Fix struct statfs for LP64.

Change-Id: I9649d881588931a1d672b65ddcf94009daadb0ef

10 years agoMerge "Fix the time unit tests for systems with 64-bit time_t."
Elliott Hughes [Fri, 18 Oct 2013 23:53:02 +0000 (23:53 +0000)]
Merge "Fix the time unit tests for systems with 64-bit time_t."

10 years agoFix the time unit tests for systems with 64-bit time_t.
Elliott Hughes [Fri, 18 Oct 2013 23:21:54 +0000 (16:21 -0700)]
Fix the time unit tests for systems with 64-bit time_t.

Change-Id: I29df50b25d022c1c00906e71b612defa58e46e81

10 years agoMerge "x86_64: Fix bionic tests build-and-run"
Elliott Hughes [Fri, 18 Oct 2013 22:07:03 +0000 (22:07 +0000)]
Merge "x86_64: Fix bionic tests build-and-run"

10 years agox86_64: Fix bionic tests build-and-run
Pavel Chupin [Thu, 17 Oct 2013 10:41:34 +0000 (14:41 +0400)]
x86_64: Fix bionic tests build-and-run

Change-Id: Iab48362893a212afbcbc362fdfaff5bfa5b55259
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
10 years agoMerge "Fix some test assumptions that are wrong for __LP64__."
Elliott Hughes [Fri, 18 Oct 2013 20:28:21 +0000 (20:28 +0000)]
Merge "Fix some test assumptions that are wrong for __LP64__."

10 years agoMerge "x86_64: Fix sys/stat.h"
Elliott Hughes [Fri, 18 Oct 2013 20:25:09 +0000 (20:25 +0000)]
Merge "x86_64: Fix sys/stat.h"

10 years agox86_64: Fix sys/stat.h
Pavel Chupin [Tue, 18 Dec 2012 13:25:01 +0000 (17:25 +0400)]
x86_64: Fix sys/stat.h

Add 64-bit stat structure mapping 64-bit stat syscall.

Change-Id: Ice517616391bee1d556b6c03e7f5ee610050e6c6
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
10 years agoFix some test assumptions that are wrong for __LP64__.
Elliott Hughes [Fri, 18 Oct 2013 20:17:18 +0000 (13:17 -0700)]
Fix some test assumptions that are wrong for __LP64__.

Change-Id: Ic79cd5858ceb611640a76bd03f3da4925d3150d9

10 years agoMerge "Fix clone.S for x86_64."
Elliott Hughes [Fri, 18 Oct 2013 05:54:28 +0000 (05:54 +0000)]
Merge "Fix clone.S for x86_64."

10 years agoFix clone.S for x86_64.
Elliott Hughes [Fri, 18 Oct 2013 05:22:31 +0000 (22:22 -0700)]
Fix clone.S for x86_64.

We need to pull the arguments off the child stack and put them into the
registers they're expected to be in.

Change-Id: I064b3258cdd89d513c632857cabb46e52492af2b

10 years agoMerge "Add missing aliases for off64_t functions in 64-bit land."
Elliott Hughes [Fri, 18 Oct 2013 04:42:08 +0000 (04:42 +0000)]
Merge "Add missing aliases for off64_t functions in 64-bit land."

10 years agoMerge "Add ffs and memcmp16 to x86_64."
Elliott Hughes [Fri, 18 Oct 2013 04:33:29 +0000 (04:33 +0000)]
Merge "Add ffs and memcmp16 to x86_64."

10 years agoAdd ffs and memcmp16 to x86_64.
Elliott Hughes [Fri, 18 Oct 2013 00:03:22 +0000 (17:03 -0700)]
Add ffs and memcmp16 to x86_64.

Change-Id: I652c1356f1c7c52299977181c2cf154386979380

10 years agoAdd missing aliases for off64_t functions in 64-bit land.
Elliott Hughes [Thu, 17 Oct 2013 23:56:40 +0000 (16:56 -0700)]
Add missing aliases for off64_t functions in 64-bit land.

See the comment in SYSCALLS.TXT for an explanation.

Change-Id: I33d4056e84160c3cca74b7b588e9924a569753ed

10 years agoMerge "Add SOCK_CLOEXEC and SOCK_NONBLOCK socket flags."
Elliott Hughes [Thu, 17 Oct 2013 20:44:06 +0000 (20:44 +0000)]
Merge "Add SOCK_CLOEXEC and SOCK_NONBLOCK socket flags."

10 years agoAdd SOCK_CLOEXEC and SOCK_NONBLOCK socket flags.
Andrei Emeltchenko [Mon, 14 Oct 2013 13:48:26 +0000 (16:48 +0300)]
Add SOCK_CLOEXEC and SOCK_NONBLOCK socket flags.

SOCK_CLOEXEC is used to atomically set close-on-exec flag for the new
descriptor(s), and SOCK_NONBLOCK is used to mark descriptor(s) as
non-blocking.

Change-Id: I8ba6a70543d23759e3ddcc7ff9c21b567184d681

10 years agoMerge "Build the linker with the same -std flags as the rest of bionic."
Elliott Hughes [Thu, 17 Oct 2013 20:15:41 +0000 (20:15 +0000)]
Merge "Build the linker with the same -std flags as the rest of bionic."