OSDN Git Service
Josh Gao [Tue, 10 Nov 2015 00:08:09 +0000 (00:08 +0000)]
Merge "Fix test failure."
Josh Gao [Tue, 10 Nov 2015 00:04:50 +0000 (16:04 -0800)]
Fix test failure.
Bug: http://b/
25596173
Change-Id: I0cf8f550837d4a936d6a784063a0ec9509150358
Dan Willemsen [Mon, 9 Nov 2015 22:28:18 +0000 (22:28 +0000)]
Merge "Update Android.bp with latest Android.mk changes"
Dan Willemsen [Mon, 9 Nov 2015 22:03:46 +0000 (14:03 -0800)]
Update Android.bp with latest Android.mk changes
Change-Id: I45f6292fcc4d4559519d88f948b4478204b08f25
Yabin Cui [Sat, 7 Nov 2015 00:24:52 +0000 (00:24 +0000)]
Merge "Add fileno_unlocked to support thread sanitizer."
Yabin Cui [Sat, 7 Nov 2015 00:13:47 +0000 (16:13 -0800)]
Add fileno_unlocked to support thread sanitizer.
Bug:
25392375
Change-Id: If3f92a0e08a53f4b59e01397e8efa307d8572349
Elliott Hughes [Fri, 6 Nov 2015 21:18:08 +0000 (21:18 +0000)]
Merge "fix the mremap signature"
Daniel Micay [Tue, 3 Nov 2015 10:14:08 +0000 (05:14 -0500)]
fix the mremap signature
The mremap definition was incorrect (unsigned long instead of int) and
it was missing the optional new_address parameter.
Change-Id: Ib9d0675aaa098c21617cedc9b2b8cf267be3aec4
Dimitry Ivanov [Fri, 6 Nov 2015 19:00:24 +0000 (19:00 +0000)]
Merge "linker: cleanup solist after unsuccessful read"
Dmitriy Ivanov [Fri, 6 Nov 2015 18:44:37 +0000 (10:44 -0800)]
linker: cleanup solist after unsuccessful read
Bug: http://b/
25560017
Change-Id: I03c5a1d7aed34c480d341aacfb3b1afdfa037b99
Dimitry Ivanov [Fri, 6 Nov 2015 02:32:34 +0000 (02:32 +0000)]
Merge "Fix linked_list::remove_if()"
Dmitriy Ivanov [Fri, 6 Nov 2015 01:41:05 +0000 (17:41 -0800)]
Fix linked_list::remove_if()
When remove_if removes last element from the list
following push_back stops working.
Change-Id: Ia3e92763b83a2e172eaa10de7aecfb7a4be452d7
Colin Cross [Thu, 5 Nov 2015 01:56:58 +0000 (01:56 +0000)]
Merge "Use cc_defaults"
Josh Gao [Wed, 4 Nov 2015 22:26:13 +0000 (22:26 +0000)]
Merge "Fix GNU/POSIX basename headers."
Josh Gao [Wed, 4 Nov 2015 02:46:02 +0000 (18:46 -0800)]
Fix GNU/POSIX basename headers.
Including glibc's <libgen.h> will result in the user getting the POSIX
version of basename always, regardless of when it is included relative
to <string.h>. Prior to this patch, our implementation would result in
the one that's included first winning.
Bug: http://b/
25459151
Change-Id: Id4aaf1670dad317d6bbc05763a84ee87596e8e59
Colin Cross [Sun, 1 Nov 2015 06:03:05 +0000 (23:03 -0700)]
Use cc_defaults
Use a cc_defaults module to reduce duplication.
Change-Id: Iaee6bf20b84123babcdc68d4feb06308f5f61a59
Dan Willemsen [Tue, 3 Nov 2015 22:38:23 +0000 (22:38 +0000)]
Merge "Update Android.bp with arch-specific version scripts"
Dan Willemsen [Tue, 3 Nov 2015 22:30:57 +0000 (14:30 -0800)]
Update Android.bp with arch-specific version scripts
Change-Id: I59b34f21b54e8a2084bb318a08c4092064f48083
Josh Gao [Tue, 3 Nov 2015 19:35:05 +0000 (19:35 +0000)]
Merge "fix PTRDIFF_MAX check in the 32-bit mmap wrapper"
Daniel Micay [Tue, 3 Nov 2015 10:30:29 +0000 (05:30 -0500)]
fix PTRDIFF_MAX check in the 32-bit mmap wrapper
It wasn't making use of the page-rounded size.
Change-Id: I911345fcfd6419a4dbc18a4622b42e1b76729abb
Christopher Ferris [Mon, 2 Nov 2015 21:10:19 +0000 (21:10 +0000)]
Merge "Fix comment to reflect the actual reality."
am:
e07558fb80
* commit '
e07558fb80da4e196e8b7e371041c1e75c56b29b':
Fix comment to reflect the actual reality.
Christopher Ferris [Mon, 2 Nov 2015 21:07:04 +0000 (21:07 +0000)]
Merge "Fix comment to reflect the actual reality."
Christopher Ferris [Mon, 2 Nov 2015 20:56:37 +0000 (12:56 -0800)]
Fix comment to reflect the actual reality.
The original comment implied that Android 32 bit was the only one
using a bad time_t, but it turns out 32 bit glibc has the same time_t
as Android. Update the comment to reflect this reality.
Change-Id: I72cdd2c677a6521f7b43d4695a52fd8fdc3305bd
Dimitry Ivanov [Sat, 31 Oct 2015 18:20:28 +0000 (18:20 +0000)]
Merge "Generate libdl.so per-architecture version script"
am:
75dd3710e7
* commit '
75dd3710e72e819ce6710e93672f937550ed3818':
Generate libdl.so per-architecture version script
Dimitry Ivanov [Sat, 31 Oct 2015 18:17:17 +0000 (18:17 +0000)]
Merge "Generate libdl.so per-architecture version script"
Christopher Ferris [Sat, 31 Oct 2015 16:15:17 +0000 (16:15 +0000)]
Merge "Make _signal hidden in all cases."
am:
6a8a09f7c4
* commit '
6a8a09f7c40fb677a8dc8a233b58f62df8ae79dc':
Make _signal hidden in all cases.
Christopher Ferris [Sat, 31 Oct 2015 16:11:48 +0000 (16:11 +0000)]
Merge "Make _signal hidden in all cases."
Dmitriy Ivanov [Sat, 31 Oct 2015 00:43:27 +0000 (17:43 -0700)]
Generate libdl.so per-architecture version script
Bug: http://b/
24767418
Change-Id: I3d5775ba44d4c8e7fc5f2fbebae10e022100f1e2
Christopher Ferris [Sat, 31 Oct 2015 00:10:47 +0000 (17:10 -0700)]
Make _signal hidden in all cases.
_signal was static in 64 bit, and hidden on 32 bit. There is no
reason to have this distinction, so make it hidden in all cases.
Change-Id: I09d5d93ac8cab4fe14dc7bdfeb25aa46a3b7413d
Elliott Hughes [Fri, 30 Oct 2015 23:40:48 +0000 (23:40 +0000)]
Merge "Add prlimit to LP32."
am:
c36be975ce
* commit '
c36be975ce4525b452435f43beb1fb9fc26a7fdc':
Add prlimit to LP32.
Elliott Hughes [Fri, 30 Oct 2015 23:35:40 +0000 (23:35 +0000)]
Merge "Add prlimit to LP32."
Elliott Hughes [Fri, 30 Oct 2015 22:16:58 +0000 (22:16 +0000)]
Merge "Remove <sys/shm.h>."
am:
bdac9ec142
* commit '
bdac9ec142347a0dc9784bddd0f8336535e73529':
Remove <sys/shm.h>.
Elliott Hughes [Fri, 30 Oct 2015 22:06:26 +0000 (22:06 +0000)]
Merge "Remove <sys/shm.h>."
Christopher Ferris [Fri, 30 Oct 2015 16:06:45 +0000 (16:06 +0000)]
Merge "Move __set_errno to ndk_cruft.cpp."
am:
e75453d5dd
* commit '
e75453d5dd8b373f6e7ef61ec22a6a3074d51e02':
Move __set_errno to ndk_cruft.cpp.
Christopher Ferris [Fri, 30 Oct 2015 16:02:01 +0000 (16:02 +0000)]
Merge "Move __set_errno to ndk_cruft.cpp."
Elliott Hughes [Fri, 30 Oct 2015 02:52:44 +0000 (19:52 -0700)]
Remove <sys/shm.h>.
Android doesn't allow SysV IPC, so this only serves two purposes. It's
good in that it helps random code (especially code that doesn't actually
need this header) to compile anyway. But it's bad for the same reason:
it's misleading for configure scripts that test for the header but not
for the corresponding functions.
Bug: http://b/
19340456
Change-Id: I4a5f319d9aecf46fc512fc94bb4f9e3f6ea64e71
Christopher Ferris [Fri, 30 Oct 2015 01:11:32 +0000 (18:11 -0700)]
Move __set_errno to ndk_cruft.cpp.
Change-Id: I5caa1cc161961d2e4629429c0d406875b93cdbd0
Elliott Hughes [Thu, 29 Oct 2015 00:14:48 +0000 (17:14 -0700)]
Add prlimit to LP32.
Bug: http://b/
24918750
Change-Id: I0151cd66ccf79a6169610de35bb9c288c0fa4917
Dimitry Ivanov [Thu, 29 Oct 2015 00:56:57 +0000 (00:56 +0000)]
Merge "Fix mips and x86 builds"
am:
50e9279589
* commit '
50e92795890c0d8b4bf54c535f66f3b2edf7bd59':
Fix mips and x86 builds
Dimitry Ivanov [Thu, 29 Oct 2015 00:53:52 +0000 (00:53 +0000)]
Merge "Fix mips and x86 builds"
Dmitriy Ivanov [Thu, 29 Oct 2015 00:51:47 +0000 (17:51 -0700)]
Fix mips and x86 builds
Change-Id: Idda2494876fd6bf64b3efe6de2e384da9b6a0dbc
Dimitry Ivanov [Thu, 29 Oct 2015 00:47:16 +0000 (00:47 +0000)]
Merge "Fix LDFLAGS for arm and x86"
am:
5ccad497d4
* commit '
5ccad497d43e7587ec5581845e5094488093f76d':
Fix LDFLAGS for arm and x86
Dimitry Ivanov [Thu, 29 Oct 2015 00:43:00 +0000 (00:43 +0000)]
Merge "Fix LDFLAGS for arm and x86"
Dmitriy Ivanov [Thu, 29 Oct 2015 00:24:43 +0000 (17:24 -0700)]
Fix LDFLAGS for arm and x86
Change-Id: I5366f4499cb4da3a51b8484ab3e4ff785f0888ab
Dimitry Ivanov [Wed, 28 Oct 2015 23:51:49 +0000 (23:51 +0000)]
Merge "Generate per-architecture version scripts."
am:
578d949e8d
* commit '
578d949e8df782134127b4ae384f731d9d7c6694':
Generate per-architecture version scripts.
Dimitry Ivanov [Wed, 28 Oct 2015 23:44:03 +0000 (23:44 +0000)]
Merge "Generate per-architecture version scripts."
Elliott Hughes [Wed, 28 Oct 2015 23:43:05 +0000 (23:43 +0000)]
Merge "Remove the legacy endusershell/getusershell/setusershell stubs."
am:
d9146c2404
* commit '
d9146c24041ad571e3725ab630d9ac94df3ff6d1':
Remove the legacy endusershell/getusershell/setusershell stubs.
Dmitriy Ivanov [Wed, 28 Oct 2015 22:14:13 +0000 (15:14 -0700)]
Generate per-architecture version scripts.
Bug: http://b/
24767418
Change-Id: I23e49d8d30c0def3215ffbd99d09f207d9483624
Elliott Hughes [Wed, 28 Oct 2015 23:35:25 +0000 (23:35 +0000)]
Merge "Remove the legacy endusershell/getusershell/setusershell stubs."
Elliott Hughes [Wed, 28 Oct 2015 21:20:16 +0000 (14:20 -0700)]
Remove the legacy endusershell/getusershell/setusershell stubs.
These don't work, aren't thread-safe, aren't in POSIX (or our header
files), and are only used by one app (whose developers I've contacted).
But the presence of these symbols causes configure to be confused, which
is a pain for Brillo.
Bug: http://b/
24812426
Change-Id: I7fa6ef82864d5563929d9b8a7f8fcacb30b26d45
Elliott Hughes [Tue, 27 Oct 2015 21:57:55 +0000 (21:57 +0000)]
Merge "Implement scandirat and scandirat64."
am:
1721be2229
* commit '
1721be2229d07b5eea830f02a76e7be56d172aa9':
Implement scandirat and scandirat64.
Elliott Hughes [Tue, 27 Oct 2015 21:40:31 +0000 (21:40 +0000)]
Merge "Implement scandirat and scandirat64."
Elliott Hughes [Tue, 27 Oct 2015 18:10:36 +0000 (11:10 -0700)]
Implement scandirat and scandirat64.
Bug: http://b/
12612339
Change-Id: Id3b249a884fe08964b26a017ae9574961f0cb441
Dimitry Ivanov [Tue, 27 Oct 2015 19:12:34 +0000 (19:12 +0000)]
Merge "Implement load at fixed address feature"
am:
5238eb0984
* commit '
5238eb09844f9c1578353d4c9e297aadb34c71be':
Implement load at fixed address feature
Dimitry Ivanov [Tue, 27 Oct 2015 19:03:53 +0000 (19:03 +0000)]
Merge "Implement load at fixed address feature"
Dmitriy Ivanov [Wed, 7 Oct 2015 23:34:20 +0000 (16:34 -0700)]
Implement load at fixed address feature
Bug: http://b/
24683631
Change-Id: I3a39ab526c8f9e213339b60e135e5459d0f41381
Elliott Hughes [Tue, 27 Oct 2015 15:11:58 +0000 (15:11 +0000)]
Merge "Fix <utmp.h> declarations."
am:
60752a2eea
* commit '
60752a2eeab8cd0b344b27c67a47e30628962211':
Fix <utmp.h> declarations.
Elliott Hughes [Tue, 27 Oct 2015 15:07:12 +0000 (15:07 +0000)]
Merge "Fix <utmp.h> declarations."
Elliott Hughes [Tue, 27 Oct 2015 02:29:12 +0000 (19:29 -0700)]
Fix <utmp.h> declarations.
If we're going to keep this useless header -- and I think it's too late to
remove it -- it may as well be correct.
Bug: http://b/
17700469
Change-Id: Ifec4f8f1a984483d7fa7d81d47786f75b70ff4ba
Elliott Hughes [Tue, 27 Oct 2015 02:11:17 +0000 (02:11 +0000)]
Merge "Remove swap16/swap32/swap64 header pollution."
am:
a2cf3783d4
* commit '
a2cf3783d4e9a4008ed468ef3204593f8f549934':
Remove swap16/swap32/swap64 header pollution.
Elliott Hughes [Tue, 27 Oct 2015 02:07:35 +0000 (02:07 +0000)]
Merge "Remove swap16/swap32/swap64 header pollution."
Elliott Hughes [Tue, 27 Oct 2015 00:51:42 +0000 (17:51 -0700)]
Remove swap16/swap32/swap64 header pollution.
This seems to be obsolete BSD stuff, and the only references to it in the
tree are people #undef'ing it.
Bug: http://b/
2735009
Change-Id: Icde523ae2d15cf1025357d861f97b415e89e4f9a
Dimitry Ivanov [Mon, 26 Oct 2015 22:38:01 +0000 (22:38 +0000)]
Merge "Implement Library Load Order Randomization"
am:
6a4ddeb56e
* commit '
6a4ddeb56ef2144e98437ae82f84b09ea785e411':
Implement Library Load Order Randomization
Dimitry Ivanov [Mon, 26 Oct 2015 22:30:35 +0000 (22:30 +0000)]
Merge "Implement Library Load Order Randomization"
Christopher Ferris [Sat, 24 Oct 2015 16:06:17 +0000 (16:06 +0000)]
Merge "Fix arm64 fenv warnings, and make warnings errors."
am:
1ab8251030
* commit '
1ab8251030407ec397009b46db025f8e9688abc8':
Fix arm64 fenv warnings, and make warnings errors.
Christopher Ferris [Sat, 24 Oct 2015 16:00:29 +0000 (16:00 +0000)]
Merge "Fix arm64 fenv warnings, and make warnings errors."
Christopher Ferris [Fri, 23 Oct 2015 22:42:27 +0000 (15:42 -0700)]
Fix arm64 fenv warnings, and make warnings errors.
Even though the control registers being read/written in fenv.c only
have 32 bits that are used, the instructions take a 64 bit register.
Make sure the inline assembler in the macros use 64 bit values.
Verified that before the change and after the change, the disassembly
is exactly the same.
In addition, add -Werror to the cflags.
Change-Id: I6603779327488c23e3aab13300edf2e02b101916
Christopher Ferris [Fri, 23 Oct 2015 21:02:56 +0000 (21:02 +0000)]
Merge "Rename LIBC64_HIDDEN to LIBC32_LEGACY_PUBLIC."
am:
ca430d9787
* commit '
ca430d9787f1c11c2df8e908c64fe2ef2e6d54ed':
Rename LIBC64_HIDDEN to LIBC32_LEGACY_PUBLIC.
Dimitry Ivanov [Fri, 23 Oct 2015 21:02:51 +0000 (21:02 +0000)]
Merge "refactoring: introduce MappedFileFragment"
am:
e08ab4b414
* commit '
e08ab4b4144b8c4c920221b403daa220b43df2fb':
refactoring: introduce MappedFileFragment
Christopher Ferris [Fri, 23 Oct 2015 20:56:09 +0000 (20:56 +0000)]
Merge "Rename LIBC64_HIDDEN to LIBC32_LEGACY_PUBLIC."
Dimitry Ivanov [Fri, 23 Oct 2015 20:54:00 +0000 (20:54 +0000)]
Merge "refactoring: introduce MappedFileFragment"
Christopher Ferris [Fri, 23 Oct 2015 19:32:52 +0000 (12:32 -0700)]
Rename LIBC64_HIDDEN to LIBC32_LEGACY_PUBLIC.
Change-Id: If4da9e46398ca5524f6f0680d70588e3dc7e80b4
Yabin Cui [Fri, 23 Oct 2015 04:32:44 +0000 (04:32 +0000)]
Merge "Use bionic lock in pthread_internal_t."
am:
c45f3bf3e6
* commit '
c45f3bf3e691f48af63c5ea2bf7a348a698013ac':
Use bionic lock in pthread_internal_t.
Yabin Cui [Fri, 23 Oct 2015 04:26:54 +0000 (04:26 +0000)]
Merge "Use bionic lock in pthread_internal_t."
Yabin Cui [Fri, 23 Oct 2015 03:07:56 +0000 (20:07 -0700)]
Use bionic lock in pthread_internal_t.
It removes calling to pthread_mutex_lock() at the beginning of new
thread, which helps to support thread sanitizer.
Change-Id: Ia3601c476de7976a9177b792bd74bb200cee0e13
Dmitriy Ivanov [Thu, 15 Oct 2015 19:07:25 +0000 (12:07 -0700)]
Implement Library Load Order Randomization
Bug: http://b/
24047022
Change-Id: I36e05b403bfbaae8542a95147f9114a8b9c8ac0e
Dmitriy Ivanov [Mon, 19 Oct 2015 23:57:46 +0000 (16:57 -0700)]
refactoring: introduce MappedFileFragment
Change-Id: I97b0c1131711ed0ac13ab33e3357e99e0b6b1a4e
Dan Willemsen [Tue, 20 Oct 2015 20:52:01 +0000 (20:52 +0000)]
Merge "Switch to LOCAL_SRC_FILES_EXCLUDE"
am:
5edf077c5b
* commit '
5edf077c5b92f0db212e45ed5402339a6e4c7334':
Switch to LOCAL_SRC_FILES_EXCLUDE
Dan Willemsen [Tue, 20 Oct 2015 20:44:29 +0000 (20:44 +0000)]
Merge "Switch to LOCAL_SRC_FILES_EXCLUDE"
Dan Willemsen [Thu, 15 Oct 2015 21:49:45 +0000 (14:49 -0700)]
Switch to LOCAL_SRC_FILES_EXCLUDE
This moves the generic arm/arm64/x86 settings into the main makefiles
and makes the rest of them derivatives. This better aligns with how
soong handles arch/cpu variants.
Also updates the Android.bp to make it consistent with the make
versions.
Change-Id: I5a0275d992bc657459eb6fe1697ad2336731d122
Mike Frysinger [Tue, 20 Oct 2015 18:31:32 +0000 (18:31 +0000)]
Merge "dlfcn: update ifdef around old_name_"
am:
5c495dacda
* commit '
5c495dacdadff9dfbe48be31d4b30c5fe75ac7db':
dlfcn: update ifdef around old_name_
Mike Frysinger [Tue, 20 Oct 2015 18:23:22 +0000 (18:23 +0000)]
Merge "dlfcn: update ifdef around old_name_"
Mike Frysinger [Tue, 20 Oct 2015 18:06:25 +0000 (14:06 -0400)]
dlfcn: update ifdef around old_name_
Commit
9185e04f72c16d2a66d92ac89b38ee926d7f706b changed the ifdef around
old_name_ from __arm__ to __work_around_b_###__, but missed one place in
dlfcn.cpp. So if you do a build w/out that workaround for arm, you end
up with a build failure:
bionic/linker/dlfcn.cpp:275:27: error: no member named 'old_name_' in 'soinfo'
strlcpy(__libdl_info->old_name_, __libdl_info->soname_, sizeof(__libdl_info->old_name_));
~~~~~~~~~~~~ ^
bionic/linker/dlfcn.cpp:275:82: error: no member named 'old_name_' in 'soinfo'
strlcpy(__libdl_info->old_name_, __libdl_info->soname_, sizeof(__libdl_info->old_name_));
~~~~~~~~~~~~ ^
Bug:
24425865
Change-Id: Idbe1cc1c28083afeee6d90203c221f30f661c69c
Josh Gao [Tue, 20 Oct 2015 01:30:32 +0000 (01:30 +0000)]
Merge "Remove deprecated use of ldm/stm in ARM setjmp."
am:
f5ea085844
* commit '
f5ea085844c66e7a65709edd7485a49396e556ce':
Remove deprecated use of ldm/stm in ARM setjmp.
Josh Gao [Tue, 20 Oct 2015 01:01:19 +0000 (01:01 +0000)]
Merge "Remove deprecated use of ldm/stm in ARM setjmp."
Josh Gao [Mon, 19 Oct 2015 19:56:50 +0000 (12:56 -0700)]
Remove deprecated use of ldm/stm in ARM setjmp.
ARM deprecates using the SP register in the register lists for ldm
and stm, which LLVM emits a warning for.
Bug: http://b/
25017080
Change-Id: Ib427e3dfd5740e251f1ad91ebb66534e0d7b72a9
Elliott Hughes [Sat, 17 Oct 2015 03:10:48 +0000 (20:10 -0700)]
am
d29ba555: Merge "Opt Brillo out of the ndk cruft."
* commit '
d29ba555130f1e61164cf6186cd6a29c7aa14719':
Opt Brillo out of the ndk cruft.
Elliott Hughes [Sat, 17 Oct 2015 03:06:41 +0000 (03:06 +0000)]
Merge "Opt Brillo out of the ndk cruft."
Dimitry Ivanov [Fri, 16 Oct 2015 20:41:45 +0000 (13:41 -0700)]
am
5fd94dfe: Merge "Replace auto -> const auto&/auto&&"
* commit '
5fd94dfe3b36ee56e54d2002ad3a5e0fa8bff683':
Replace auto -> const auto&/auto&&
Dimitry Ivanov [Fri, 16 Oct 2015 20:41:44 +0000 (13:41 -0700)]
am
9c2122e8: Merge "Fix R_AARCH64_ABS/PREL relocations"
* commit '
9c2122e803a01c80bef550eac2b24b5a79635a2a':
Fix R_AARCH64_ABS/PREL relocations
Dimitry Ivanov [Fri, 16 Oct 2015 20:37:34 +0000 (20:37 +0000)]
Merge "Replace auto -> const auto&/auto&&"
Dimitry Ivanov [Fri, 16 Oct 2015 20:36:25 +0000 (20:36 +0000)]
Merge "Fix R_AARCH64_ABS/PREL relocations"
Dmitriy Ivanov [Thu, 15 Oct 2015 20:26:03 +0000 (13:26 -0700)]
Fix R_AARCH64_ABS/PREL relocations
According to specification arm64 relocations
should not use *reloc value.
See http://infocenter.arm.com/help/topic/com.arm.doc.ihi0056b/IHI0056B_aaelf64.pdf
section 4.6.5
Bug: http://b/
24977219
Bug: http://b/
24527155
Change-Id: I3813255771f408ba957963c6ad56ed08e5110d83
Dimitry Ivanov [Thu, 15 Oct 2015 01:31:15 +0000 (01:31 +0000)]
am
074efa02: Merge "Ensure that readlink has access to /proc/self/fd"
* commit '
074efa02a7de67589c36f75222e3b45c3f15206a':
Ensure that readlink has access to /proc/self/fd
Dimitry Ivanov [Thu, 15 Oct 2015 01:27:17 +0000 (01:27 +0000)]
Merge "Ensure that readlink has access to /proc/self/fd"
Dmitriy Ivanov [Wed, 14 Oct 2015 18:15:45 +0000 (11:15 -0700)]
Ensure that readlink has access to /proc/self/fd
/proc/self/fd is not available when PR_DUMPABLE is set to 0
which is default for the user builds. It leads to permission
denials on readlink.
This change fixes the problem by setting PR_DUMPABLE flag to 1
for readlink and restoring it's previous value after the call.
Bug: http://b/
24912743
Change-Id: I3fd179c5c6b56af96d6a15ee597024ccb15e1a13
(cherry picked from commit
cf92738fa5dee24050028a1235f815f2a0fd33b5)
Josh Gao [Wed, 14 Oct 2015 23:50:51 +0000 (23:50 +0000)]
am
c433a36f: Merge "Move malloc dispatch table to __libc_globals."
* commit '
c433a36fb5fb8a1050e8ecbd94d215123b829e07':
Move malloc dispatch table to __libc_globals.
Josh Gao [Wed, 14 Oct 2015 23:47:41 +0000 (23:47 +0000)]
Merge "Move malloc dispatch table to __libc_globals."
Josh Gao [Wed, 14 Oct 2015 02:21:04 +0000 (02:21 +0000)]
am
198d13e8: Merge "make mmap fail on requests larger than PTRDIFF_MAX"
* commit '
198d13e8c25e69f7dbda3f5e1a3258b13fe8db5d':
make mmap fail on requests larger than PTRDIFF_MAX
Josh Gao [Wed, 14 Oct 2015 02:17:10 +0000 (02:17 +0000)]
Merge "make mmap fail on requests larger than PTRDIFF_MAX"