OSDN Git Service

android-x86/bionic.git
9 years agoFix l_addr for the linker
Dmitriy Ivanov [Thu, 11 Jun 2015 02:46:19 +0000 (19:46 -0700)]
Fix l_addr for the linker

Bug: http://b/21765603
Change-Id: I97710ef2436eac2160e29ba3e4521f6e63a1907c

9 years agoMerge "Fix application_sdk_versions_smoke test"
Dmitriy Ivanov [Thu, 11 Jun 2015 00:03:45 +0000 (00:03 +0000)]
Merge "Fix application_sdk_versions_smoke test"

9 years agoFix application_sdk_versions_smoke test
Dmitriy Ivanov [Wed, 10 Jun 2015 23:55:50 +0000 (16:55 -0700)]
Fix application_sdk_versions_smoke test

Bug: http://b/21364029
Change-Id: I9716d6b0ea7fae6483629a290dbe695b68526588
(cherry picked from commit 79b3877a137510946ddd39ab71c0badf1a769c11)

9 years agoMerge "Support DT_RUNPATH in the linker."
Evgenii Stepanov [Wed, 10 Jun 2015 23:56:02 +0000 (23:56 +0000)]
Merge "Support DT_RUNPATH in the linker."

9 years agoSupport DT_RUNPATH in the linker.
Evgenii Stepanov [Wed, 10 Jun 2015 20:38:39 +0000 (13:38 -0700)]
Support DT_RUNPATH in the linker.

Only $ORIGIN substitution is supported, but not linux-specific $LIB
or $PLATFORM.

Change-Id: I5814a016c7c91afba080230a547a863686e7c2b9

9 years agoMerge "Statically linked executables should honor AT_SECURE."
Elliott Hughes [Wed, 10 Jun 2015 22:49:56 +0000 (22:49 +0000)]
Merge "Statically linked executables should honor AT_SECURE."

9 years agoMerge "Check if strtab exists before using it"
Dmitriy Ivanov [Wed, 10 Jun 2015 22:26:06 +0000 (22:26 +0000)]
Merge "Check if strtab exists before using it"

9 years agoMerge "Allow NULL in pthread_mutex_lock/unlock."
Christopher Ferris [Wed, 10 Jun 2015 17:53:45 +0000 (17:53 +0000)]
Merge "Allow NULL in pthread_mutex_lock/unlock."

9 years agoAllow NULL in pthread_mutex_lock/unlock.
Christopher Ferris [Wed, 10 Jun 2015 01:46:15 +0000 (18:46 -0700)]
Allow NULL in pthread_mutex_lock/unlock.

The pthread_mutex_lock and pthread_mutex_unlock were allowed to
fail silently on L 32 bit devices when passed a NULL. We changed
this to a crash on 32 bit devices, but there are still games that make
these calls and are not likely to be updated. Therefore, once again
allow NULL to be passed in on 32 bit devices.

Bug: 19995172
(cherry picked from commit 511cfd9dc8cb41bca4920687c7d816ee916ee8e5)

Change-Id: I159a99a941cff94297ef3fffda7075f8ef1ae252

9 years agoStatically linked executables should honor AT_SECURE.
Elliott Hughes [Tue, 9 Jun 2015 01:04:00 +0000 (18:04 -0700)]
Statically linked executables should honor AT_SECURE.

Bug: http://b/19647373
Change-Id: I10e7682d9cec26a523f1a3597ca5326c3ca42ebe

9 years agoMerge "Add flag that makes linker honor min(p_vaddr)"
Dmitriy Ivanov [Tue, 9 Jun 2015 21:02:27 +0000 (21:02 +0000)]
Merge "Add flag that makes linker honor min(p_vaddr)"

9 years agoAdd flag that makes linker honor min(p_vaddr)
Dmitriy Ivanov [Sat, 6 Jun 2015 05:16:23 +0000 (22:16 -0700)]
Add flag that makes linker honor min(p_vaddr)

Bug: http://b/21523078
Change-Id: Ice72766fb6ad3bd333c32b496e7870121e17a763

9 years agoMerge "Fix Mac checkbuild."
Ying Wang [Mon, 8 Jun 2015 19:26:54 +0000 (19:26 +0000)]
Merge "Fix Mac checkbuild."

9 years agoFix Mac checkbuild.
Ying Wang [Sat, 6 Jun 2015 18:55:16 +0000 (11:55 -0700)]
Fix Mac checkbuild.

Bug: 21669400
Change-Id: I54691661605a2e2c1871781964aed343840b8560

(cherry-pick from commit 33c2d441b8f816722bed984c6e12b82b888c3ca2)

9 years agoCheck if strtab exists before using it
Dmitriy Ivanov [Mon, 8 Jun 2015 17:41:33 +0000 (10:41 -0700)]
Check if strtab exists before using it

Bug: http://b/21696087
Change-Id: I1e22d5fd6fe2faead332249493123c9a085081e9

9 years agoMerge "Add O_PATH support for flistxattr()"
Nick Kralevich [Mon, 8 Jun 2015 17:39:00 +0000 (17:39 +0000)]
Merge "Add O_PATH support for flistxattr()"

9 years agoMerge "Export two dlmalloc functions everywhere."
Christopher Ferris [Sat, 6 Jun 2015 20:17:26 +0000 (20:17 +0000)]
Merge "Export two dlmalloc functions everywhere."

9 years agoAdd O_PATH support for flistxattr()
Nick Kralevich [Sat, 6 Jun 2015 18:23:26 +0000 (11:23 -0700)]
Add O_PATH support for flistxattr()

A continuation of commit 2825f10b7f61558c264231a536cf3affc0d84204.

Add O_PATH compatibility support for flistxattr(). This allows
a process to list out all the extended attributes associated with
O_PATH file descriptors.

Change-Id: Ie2285ac7ad2e4eac427ddba6c2d182d41b130f75

9 years agoExport two dlmalloc functions everywhere.
Christopher Ferris [Sat, 6 Jun 2015 00:12:17 +0000 (17:12 -0700)]
Export two dlmalloc functions everywhere.

The functions dlmalloc_inspect_all and dlmalloc_trim get
exported on devices that use dlmalloc, so be consistent and
export them everywhere.

Bug: 21640784
Change-Id: I5b8796cd03c8f401d37d9c22823144f766f9c4c7

9 years agoMerge "Fix a few libc makefile mishaps."
Christopher Ferris [Sat, 6 Jun 2015 00:07:57 +0000 (00:07 +0000)]
Merge "Fix a few libc makefile mishaps."

9 years agoFix a few libc makefile mishaps.
Christopher Ferris [Fri, 5 Jun 2015 02:24:07 +0000 (19:24 -0700)]
Fix a few libc makefile mishaps.

These are the problems fixed in this CL:

- The ndk_cruft.cpp file was not compiled for 64 bit.
- Some files where not compiled for libc_bionic.a due to a missing
  patch-up-arch-specific-flags call.
- The libc_bionic_ndk.a patch up call was using bionic src, not
  the bionic_ndk_src_files.
- Move mmap.cpp to the ndk src list where it was before because of
  the above errors.

Bug: 21640784
Change-Id: I31e97bc8bf347c8e584cc17aa4b984a7d122b298

9 years agoMerge "Hide __atexit"
Dmitriy Ivanov [Thu, 4 Jun 2015 21:50:05 +0000 (21:50 +0000)]
Merge "Hide __atexit"

9 years agoHide __atexit
Dmitriy Ivanov [Thu, 4 Jun 2015 21:33:18 +0000 (14:33 -0700)]
Hide __atexit

Bug: http://b/21640806
Change-Id: I778b35c8c7538859179e97fcf5a82db2fcd9e50f

9 years agoMerge "Reorder DIR structure due to bad apps."
Christopher Ferris [Thu, 4 Jun 2015 21:05:42 +0000 (21:05 +0000)]
Merge "Reorder DIR structure due to bad apps."

9 years agoReorder DIR structure due to bad apps.
Christopher Ferris [Thu, 4 Jun 2015 20:30:45 +0000 (13:30 -0700)]
Reorder DIR structure due to bad apps.

It turns out that apportable apps expect that the DIR structure is
the same as in L and below. Modify the structure to have the same
order, and move the new variable to the end of the structure.

Bug: 21037208
(cherry picked from commit 5edb0f40f654c804d38f1bff43f91719e189c892)

Change-Id: I0c1ab5e295ec8bef638daa4cfea5830aeea602e6

9 years agoMerge "Strip version info when extracting symbols"
Dmitriy Ivanov [Thu, 4 Jun 2015 18:06:00 +0000 (18:06 +0000)]
Merge "Strip version info when extracting symbols"

9 years agoStrip version info when extracting symbols
Dmitriy Ivanov [Thu, 4 Jun 2015 17:12:37 +0000 (10:12 -0700)]
Strip version info when extracting symbols

Bug: http://b/20139821
Change-Id: I1c1ed1b97a75936407e996698b98b94a7175ac30

9 years agoMerge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)"
Dmitriy Ivanov [Wed, 3 Jun 2015 01:11:11 +0000 (01:11 +0000)]
Merge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)"

9 years agoBackward compatibility for dlsym(RTLD_DEFAULT, ...)
Dmitriy Ivanov [Wed, 3 Jun 2015 00:36:54 +0000 (17:36 -0700)]
Backward compatibility for dlsym(RTLD_DEFAULT, ...)

 Do not skip RTLD_LOCAL libraries in dlsym(RTLD_DEFAULT, ...)
 if the library is opened by application with target api level <= 22

Bug: http://b/21565766
Bug: http://b/17512583
Change-Id: Ic45ed1e4f53e84cba9d74cab6b0049c0c7aa8423
(cherry picked from commit 04f7e3e955ba7de5f449c995e667659319dc1cce)

9 years agoMerge "Work around for libraries without dt_soname"
Dmitriy Ivanov [Tue, 2 Jun 2015 21:06:17 +0000 (21:06 +0000)]
Merge "Work around for libraries without dt_soname"

9 years agoWork around for libraries without dt_soname
Dmitriy Ivanov [Tue, 2 Jun 2015 20:28:06 +0000 (13:28 -0700)]
Work around for libraries without dt_soname

 Applies only for apps targeting sdk version <= 22

Bug: http://b/21565766
Change-Id: If0bf2229dc1341e9ca09f9a05d0890515273d5a2
(cherry picked from commit 38c37d6705f420ecac4146c11d79bee6e0ca8a03)

9 years agoMerge "Fix dlsym(handle_of_main_executable, ...)"
Dmitriy Ivanov [Mon, 1 Jun 2015 23:48:08 +0000 (23:48 +0000)]
Merge "Fix dlsym(handle_of_main_executable, ...)"

9 years agoMerge "libc: Add O_PATH support for fgetxattr / fsetxattr"
Nick Kralevich [Mon, 1 Jun 2015 23:16:14 +0000 (23:16 +0000)]
Merge "libc: Add O_PATH support for fgetxattr / fsetxattr"

9 years agolibc: Add O_PATH support for fgetxattr / fsetxattr
Nick Kralevich [Sun, 31 May 2015 20:43:13 +0000 (13:43 -0700)]
libc: Add O_PATH support for fgetxattr / fsetxattr

Support O_PATH file descriptors when handling fgetxattr and fsetxattr.
This avoids requiring file read access to pull extended attributes.

This is needed to support O_PATH file descriptors when calling
SELinux's fgetfilecon() call. In particular, this allows the querying
and setting of SELinux file context by using something like the following
code:

  int dirfd = open("/path/to/dir", O_DIRECTORY);
  int fd = openat(dirfd, "file", O_PATH | O_NOFOLLOW);
  char *context;
  fgetfilecon(fd, &context);

This change was motivated by a comment in
https://android-review.googlesource.com/#/c/152680/1/toys/posix/ls.c

Change-Id: Ic0cdf9f9dd0e35a63b44a4c4a08400020041eddf

9 years agoFix dlsym(handle_of_main_executable, ...)
Dmitriy Ivanov [Sat, 30 May 2015 20:04:39 +0000 (13:04 -0700)]
Fix dlsym(handle_of_main_executable, ...)

  According to man dlopen(3) and posix docs in the case when si is handle
  of the main executable we need to search not only in the executable and its
  dependencies but also in all libraries loaded with RTLD_GLOBAL.

  see also: http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlopen.html

Bug: http://b/21528224
Bug: http://b/17512583
Bug: https://code.google.com/p/android/issues/detail?id=173822
Change-Id: Ib2801367ba48b6f3704da89a6d9f5e6911430013

9 years agoMerge "Cleanup ftruncate negative test."
Dan Albert [Mon, 1 Jun 2015 20:24:15 +0000 (20:24 +0000)]
Merge "Cleanup ftruncate negative test."

9 years agoCleanup ftruncate negative test.
Dan Albert [Mon, 1 Jun 2015 18:28:31 +0000 (11:28 -0700)]
Cleanup ftruncate negative test.

Addresses post-submit comments from
I54692ab8105dd09db6af7a2c0894a17bdd118aa0.

Bug: http://b/21309901
Change-Id: Ie19ee8cdcc4055a65fe7dfc103156e54eafe8977

9 years agoMerge "[MIPS] Do not use compact branches until GDB supports them"
Elliott Hughes [Fri, 29 May 2015 04:39:23 +0000 (04:39 +0000)]
Merge "[MIPS] Do not use compact branches until GDB supports them"

9 years agoMerge "Improve some of error/warning messages"
Dmitriy Ivanov [Thu, 28 May 2015 22:28:13 +0000 (22:28 +0000)]
Merge "Improve some of error/warning messages"

9 years agoMerge "Work around incorrect dt_needed entries"
Dmitriy Ivanov [Thu, 28 May 2015 22:25:15 +0000 (22:25 +0000)]
Merge "Work around incorrect dt_needed entries"

9 years agoWork around incorrect dt_needed entries
Dmitriy Ivanov [Thu, 28 May 2015 01:29:41 +0000 (18:29 -0700)]
Work around incorrect dt_needed entries

  This applies for apps targeting sdk<=22 and
  only for lp32 platforms.

Bug: http://b/21364029
Change-Id: I903e81c9ccda2a8beaba1d132d68c77d30a4cdb2

9 years agoImprove some of error/warning messages
Dmitriy Ivanov [Thu, 28 May 2015 18:44:31 +0000 (11:44 -0700)]
Improve some of error/warning messages

Bug: http://b/20464031
Change-Id: I948141c46f9e054fc45f5934153dee56ce3cd558

9 years agoMerge "Add functions to provide target sdk version"
Dmitriy Ivanov [Wed, 27 May 2015 22:44:25 +0000 (22:44 +0000)]
Merge "Add functions to provide target sdk version"

9 years agoAdd functions to provide target sdk version
Dmitriy Ivanov [Fri, 22 May 2015 00:43:49 +0000 (17:43 -0700)]
Add functions to provide target sdk version

Bug: http://b/21364029
Change-Id: I8648d1bff6c8fd6e7cd12da7f128e048b9f2829a

9 years agoMerge "Fix unit tests, and extend for other architectures"
Simon Baldwin [Wed, 27 May 2015 16:42:37 +0000 (16:42 +0000)]
Merge "Fix unit tests, and extend for other architectures"

9 years agoFix unit tests, and extend for other architectures
Simon Baldwin [Fri, 22 May 2015 14:17:29 +0000 (15:17 +0100)]
Fix unit tests, and extend for other architectures

On unpacking, reinstate any p_align values that packing reduced to
page size.  Ensures a round-trip pack and unpack is bit-equivalent
to the original input.
https://android-review.googlesource.com/#/c/148492/

Extend unit tests to include ia32, x64, and mips32.

Recreate test data for arm32 and arm64.  Generate new test data for
ia32, x64, and mips32.

Bug: http://b/20687795
Bug: http://b/18051137
Change-Id: Ifbca8e206ef447297ba4f19272b813702be27a35

9 years agoMerge "Remove LOCAL_CONLY_FLAGS it is no-op."
Dmitriy Ivanov [Tue, 26 May 2015 20:56:37 +0000 (20:56 +0000)]
Merge "Remove LOCAL_CONLY_FLAGS it is no-op."

9 years agoRemove LOCAL_CONLY_FLAGS it is no-op.
Dmitriy Ivanov [Tue, 26 May 2015 18:38:59 +0000 (11:38 -0700)]
Remove LOCAL_CONLY_FLAGS it is no-op.

Change-Id: Ib52b85d176dc9d46d7550f01537b2635e873d6ad

9 years ago[MIPS] Do not use compact branches until GDB supports them
Nikola Veljkovic [Thu, 21 May 2015 16:23:55 +0000 (18:23 +0200)]
[MIPS] Do not use compact branches until GDB supports them

GDB does not yet have support for compact branches, and is not able
to set a breakpoint on rtld_db_dlactivity(), which is compiled into
one JIC instruction. Unfortunately, We cannot turn off generation of
JIC compact branch. Instead, add unoptimized FP handling code, so GDB
will have something to land on.

Change-Id: Iddcf40ec018972398179018d049b8323fcd258b7

9 years agoMerge "Fix RTLD_NEXT lookup for the local_group"
Dmitriy Ivanov [Fri, 22 May 2015 22:21:24 +0000 (22:21 +0000)]
Merge "Fix RTLD_NEXT lookup for the local_group"

9 years agoFix RTLD_NEXT lookup for the local_group
Dmitriy Ivanov [Fri, 22 May 2015 19:34:42 +0000 (12:34 -0700)]
Fix RTLD_NEXT lookup for the local_group

  Linker used to skip RTLD_NEXT within local_group when
  caller->next is nullptr (which represents load order
  but not the order within local_group dependency tree)

Bug: http://b/21380474
Change-Id: I178fc4657b19bceb871635b177c1df67855b1708

9 years agoMerge "Fix error handling for negative size in ftruncate."
Dan Albert [Thu, 21 May 2015 20:41:25 +0000 (20:41 +0000)]
Merge "Fix error handling for negative size in ftruncate."

9 years agoMerge "Fix pthread_attr_getstack__main_thread failure on glibc."
Yabin Cui [Wed, 20 May 2015 22:52:38 +0000 (22:52 +0000)]
Merge "Fix pthread_attr_getstack__main_thread failure on glibc."

9 years agoFix pthread_attr_getstack__main_thread failure on glibc.
Yabin Cui [Tue, 19 May 2015 22:09:23 +0000 (15:09 -0700)]
Fix pthread_attr_getstack__main_thread failure on glibc.

Move test of bionic specific implementation into bionic ifdef.

Bug: 19805726
Change-Id: Idf369b16e7f41f060c75b0aaf34e05cf3c161aa9

9 years agoFix error handling for negative size in ftruncate.
Dan Albert [Wed, 20 May 2015 01:17:31 +0000 (18:17 -0700)]
Fix error handling for negative size in ftruncate.

Bug: 21309901
Change-Id: I54692ab8105dd09db6af7a2c0894a17bdd118aa0

9 years agoMerge "Hide rt_sigqueueinfo."
Yabin Cui [Mon, 18 May 2015 20:29:41 +0000 (20:29 +0000)]
Merge "Hide rt_sigqueueinfo."

9 years agoHide rt_sigqueueinfo.
Yabin Cui [Mon, 18 May 2015 18:19:11 +0000 (11:19 -0700)]
Hide rt_sigqueueinfo.

Bug: 19358804
Change-Id: I38a53ad64c81d0eefdd1d24599e769fd8a477a56

9 years agoMerge "Apply work around b/19059885 to x86"
Dmitriy Ivanov [Sat, 16 May 2015 16:56:48 +0000 (16:56 +0000)]
Merge "Apply work around b/19059885 to x86"

9 years agoApply work around b/19059885 to x86
Dmitriy Ivanov [Sat, 16 May 2015 00:53:39 +0000 (17:53 -0700)]
Apply work around b/19059885 to x86

Bug: http://b/19059885
Bug: http://b/21203348
Change-Id: Ic375e9f877d68de8f866d17362879a7dde638465
(cherry picked from commit 69a5fb951d69689dedd83cb033ae3dcd0ef05b65)

9 years agoMerge "Don't use TEMP_FAILURE_RETRY on close in bionic."
Elliott Hughes [Fri, 15 May 2015 23:24:12 +0000 (23:24 +0000)]
Merge "Don't use TEMP_FAILURE_RETRY on close in bionic."

9 years agoDon't use TEMP_FAILURE_RETRY on close in bionic.
Elliott Hughes [Fri, 15 May 2015 23:20:07 +0000 (16:20 -0700)]
Don't use TEMP_FAILURE_RETRY on close in bionic.

Bug: http://b/20501816
Change-Id: Id64b5109cc2b165fa0351b6edbb865a5e5058008

9 years agoMerge "Remove -z global workaround for target x86"
Dmitriy Ivanov [Fri, 15 May 2015 17:29:59 +0000 (17:29 +0000)]
Merge "Remove -z global workaround for target x86"

9 years agoMerge "Fix regression in crash reporting"
John Reck [Fri, 15 May 2015 16:29:42 +0000 (16:29 +0000)]
Merge "Fix regression in crash reporting"

9 years agoFix regression in crash reporting
John Reck [Fri, 15 May 2015 14:47:17 +0000 (07:47 -0700)]
Fix regression in crash reporting

Bug: 19532651

Partial revert of be0e43b77676338fd5e6a82c9cc2b6302d579de2

Change-Id: I99e220328aff985facb920ebcd84ac1a016759b5
(cherry picked from commit d7ad443cfd4e1315cdf45210bc94bb68e0564b8f)

9 years agoRemove -z global workaround for target x86
Dmitriy Ivanov [Fri, 15 May 2015 04:28:21 +0000 (21:28 -0700)]
Remove -z global workaround for target x86

Change-Id: I08e75a1c7437c97e4af59316d2c14c7fa3f65e03

9 years agoMerge "ScopedFd: Don't use TEMP_FAILURE_RETRY() with close()"
Elliott Hughes [Thu, 14 May 2015 00:27:45 +0000 (00:27 +0000)]
Merge "ScopedFd: Don't use TEMP_FAILURE_RETRY() with close()"

9 years agoMerge "Fix unused result errors in bionic."
Elliott Hughes [Wed, 13 May 2015 21:09:41 +0000 (21:09 +0000)]
Merge "Fix unused result errors in bionic."

9 years agoScopedFd: Don't use TEMP_FAILURE_RETRY() with close()
Spencer Low [Thu, 23 Apr 2015 01:06:51 +0000 (18:06 -0700)]
ScopedFd: Don't use TEMP_FAILURE_RETRY() with close()

According to the comments in Posix_close(), TEMP_FAILURE_RETRY() should
not be used with close():

https://android.googlesource.com/platform/libcore/+/462bdac45c10f43d88d8f07f6994e272a27c14a2%5E%21/#F12

Kill ScopedFd by simplifying the single caller.

Change-Id: I248c40b8c2fc95f1938a6edfc245c81847fc44af
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
9 years agoFix unused result errors in bionic.
Elliott Hughes [Wed, 13 May 2015 20:18:04 +0000 (13:18 -0700)]
Fix unused result errors in bionic.

This lets us use _FORTIFY_SOURCE=2 on the host.

Change-Id: I69f5ff9834bfd595aae6584104bee10c4d8a5eeb

9 years agoMerge "Improved dlsym tests and fixes to linker"
Dmitriy Ivanov [Tue, 12 May 2015 20:48:17 +0000 (20:48 +0000)]
Merge "Improved dlsym tests and fixes to linker"

9 years agoImproved dlsym tests and fixes to linker
Dmitriy Ivanov [Tue, 12 May 2015 18:12:27 +0000 (11:12 -0700)]
Improved dlsym tests and fixes to linker

 Answers the question: what if dependent library
 was preloaded with RTLD_LOCAL flag.

 Also add test for RTLD_NEXT within local_group.

Bug: http://b/17512583
Change-Id: I79e081e68b3a8c0ed8980d4275a06515fea94ec9

9 years agoMerge "Update NOTICE files (the second time today)."
Elliott Hughes [Tue, 12 May 2015 17:47:04 +0000 (17:47 +0000)]
Merge "Update NOTICE files (the second time today)."

9 years agoUpdate NOTICE files (the second time today).
Elliott Hughes [Tue, 12 May 2015 17:44:37 +0000 (10:44 -0700)]
Update NOTICE files (the second time today).

Change-Id: Ifb031d29ee697ee0682bd651e0081493e8016e67

9 years agoMerge "Update NOTICE files."
Elliott Hughes [Tue, 12 May 2015 17:43:45 +0000 (17:43 +0000)]
Merge "Update NOTICE files."

9 years agoUpdate NOTICE files.
Elliott Hughes [Tue, 12 May 2015 17:09:01 +0000 (10:09 -0700)]
Update NOTICE files.

(cherry-pick of f0bd92db8966b04062fda0986dacf80891e1a378.)
Change-Id: I4e170118abf452dd87ffe79d343ba1e2b53955de

9 years agoMerge "Simplify three copyright headers."
Elliott Hughes [Tue, 12 May 2015 17:27:04 +0000 (17:27 +0000)]
Merge "Simplify three copyright headers."

9 years agoSimplify three copyright headers.
Elliott Hughes [Tue, 12 May 2015 17:10:01 +0000 (10:10 -0700)]
Simplify three copyright headers.

There's no reason to have multiple years in our own copyright headers,
and given the stupidity of our NOTICE file generation, it just creates
more junk.

Change-Id: I065a3811c2e2584e3b649a18ad9460286bc72b92

9 years agoMerge "Use unified syntax to compile with both llvm and gcc."
Chih-Hung Hsieh [Tue, 12 May 2015 04:31:09 +0000 (04:31 +0000)]
Merge "Use unified syntax to compile with both llvm and gcc."

9 years agoUse unified syntax to compile with both llvm and gcc.
Chih-Hung Hsieh [Mon, 11 May 2015 18:21:19 +0000 (11:21 -0700)]
Use unified syntax to compile with both llvm and gcc.

All arch-arm and arch-arm64 .S files were compiled
by gcc with and without this patch. The output object files
were identical. When compiled with llvm and this patch,
the output files were also identical to gcc's output.

BUG: 18061004
Change-Id: I458914d512ddf5496e4eb3d288bf032cd526d32b

9 years agoMerge "Fix various bugs in the check-symbols script."
Elliott Hughes [Mon, 11 May 2015 20:28:56 +0000 (20:28 +0000)]
Merge "Fix various bugs in the check-symbols script."

9 years agoFix various bugs in the check-symbols script.
Elliott Hughes [Mon, 11 May 2015 19:10:40 +0000 (12:10 -0700)]
Fix various bugs in the check-symbols script.

It had bitrotted away during the last release cycle.

Change-Id: I20f0a3b409af4530b81f26299bef9de01530c9fd

9 years agoMerge "remove rootdir build.prop"
Andres Morales [Fri, 8 May 2015 22:13:43 +0000 (22:13 +0000)]
Merge "remove rootdir build.prop"

9 years agoremove rootdir build.prop
Andres Morales [Thu, 7 May 2015 22:15:46 +0000 (15:15 -0700)]
remove rootdir build.prop

merge with default.prop

Change-Id: I6cff4527dec2b31bdde42ec26c42ef2782f8deb4

9 years agoMerge "Switch libc/libcstdc++/libm to hash-style=both"
Dmitriy Ivanov [Fri, 8 May 2015 21:07:08 +0000 (21:07 +0000)]
Merge "Switch libc/libcstdc++/libm to hash-style=both"

9 years agoSwitch libc/libcstdc++/libm to hash-style=both
Dmitriy Ivanov [Fri, 8 May 2015 19:05:47 +0000 (12:05 -0700)]
Switch libc/libcstdc++/libm to hash-style=both

Bug: http://b/19059885
Change-Id: Ie42703d91f291fd689a1cf9c35bcab5c487b9a84

9 years agoMerge "Apply same URL workaround to clean build."
Dan Albert [Fri, 8 May 2015 17:15:31 +0000 (17:15 +0000)]
Merge "Apply same URL workaround to clean build."

9 years agoMerge changes from topic 'volantis-blobs'
Dan Albert [Fri, 8 May 2015 16:35:10 +0000 (16:35 +0000)]
Merge changes from topic 'volantis-blobs'

* changes:
  Revert "Fix volantis boot."
  Revert "Fix clang build."
  Revert "Try again to fix clang build."

9 years agoMerge "Add definitions of Elf32_Sxword and ELFXX_R_INFO"
Dmitriy Ivanov [Fri, 8 May 2015 06:49:05 +0000 (06:49 +0000)]
Merge "Add definitions of Elf32_Sxword and ELFXX_R_INFO"

9 years agoAdd definitions of Elf32_Sxword and ELFXX_R_INFO
Dmitriy Ivanov [Fri, 8 May 2015 05:58:00 +0000 (22:58 -0700)]
Add definitions of Elf32_Sxword and ELFXX_R_INFO

Bug: http://b/17056684
Change-Id: If35302245ac3ab40d1c80fb2b04620778c114f87

9 years agoMerge "Remove pthread_detach_no_leak test."
Yabin Cui [Fri, 8 May 2015 01:36:29 +0000 (01:36 +0000)]
Merge "Remove pthread_detach_no_leak test."

9 years agoRemove pthread_detach_no_leak test.
Yabin Cui [Thu, 7 May 2015 23:53:25 +0000 (16:53 -0700)]
Remove pthread_detach_no_leak test.

This test has lost its purpose as we are using mmap/munmap for pthread_internal_t. And it is a flaky test.

Bug: 20860440
Change-Id: I7cbb6bc3fd8a2ca430415beab5ee27a856ce4ea7

9 years agoApply same URL workaround to clean build.
Dan Albert [Thu, 7 May 2015 23:33:42 +0000 (16:33 -0700)]
Apply same URL workaround to clean build.

Change-Id: I63e63f6ffb879f49e36ee2d09821fc6fc47952c8

9 years agoRevert "Fix volantis boot."
Dan Albert [Thu, 7 May 2015 22:12:24 +0000 (15:12 -0700)]
Revert "Fix volantis boot."

Bug: http://b/20065774
This reverts commit 76e1cbca75e9fdaf7a7943f2c58e65433b283f4a.

9 years agoRevert "Fix clang build."
Dan Albert [Thu, 7 May 2015 22:12:16 +0000 (15:12 -0700)]
Revert "Fix clang build."

Bug: http://b/20065774
This reverts commit 0975a5d9d29019e764dc0ab2ddc75759bebffb9b.

9 years agoRevert "Try again to fix clang build."
Dan Albert [Thu, 7 May 2015 22:11:41 +0000 (15:11 -0700)]
Revert "Try again to fix clang build."

Bug: http://b/20065774
This reverts commit dffd3c58389103d6ee712fac6544217c00c1f315.

Change-Id: I5dd095ff4ab133baa2afcbd4c79fbee55d05c459

9 years agoMerge "Properly align init/fini_arrays for crtend.o"
Dmitriy Ivanov [Thu, 7 May 2015 19:55:24 +0000 (19:55 +0000)]
Merge "Properly align init/fini_arrays for crtend.o"

9 years agoProperly align init/fini_arrays for crtend.o
Dmitriy Ivanov [Thu, 7 May 2015 01:49:23 +0000 (18:49 -0700)]
Properly align init/fini_arrays for crtend.o

  Also remove them from crtend_so.o

Bug: http://b/20532404
Change-Id: I56a0f80c4b3a83cf11d28bbf17791ff4ce10c5d2

9 years agoMerge "Use realpath for log and error messages"
Dmitriy Ivanov [Thu, 7 May 2015 17:55:38 +0000 (17:55 +0000)]
Merge "Use realpath for log and error messages"

9 years agoUse realpath for log and error messages
Dmitriy Ivanov [Thu, 7 May 2015 17:48:00 +0000 (10:48 -0700)]
Use realpath for log and error messages

Bug: http://b/20885931
Change-Id: Ida8ab7982ca75fa73da13c4cb10a6b2e53bc2c8e

9 years agoMerge "Move pthread_atfork_dlclose test out of static lib"
Dmitriy Ivanov [Wed, 6 May 2015 23:47:22 +0000 (23:47 +0000)]
Merge "Move pthread_atfork_dlclose test out of static lib"