OSDN Git Service

android-x86/bionic.git
8 years agoam 114605b0: am 5fd94dfe: Merge "Replace auto -> const auto&/auto&&"
Dimitry Ivanov [Fri, 16 Oct 2015 20:48:32 +0000 (20:48 +0000)]
am 114605b0: am 5fd94dfe: Merge "Replace auto -> const auto&/auto&&"

* commit '114605b03666230f11113990b828356bfe692278':
  Replace auto -> const auto&/auto&&

8 years agoam c0e917ab: am 9c2122e8: Merge "Fix R_AARCH64_ABS/PREL relocations"
Dimitry Ivanov [Fri, 16 Oct 2015 20:48:30 +0000 (20:48 +0000)]
am c0e917ab: am 9c2122e8: Merge "Fix R_AARCH64_ABS/PREL relocations"

* commit 'c0e917abe5e94ce9729a8302b5ef3cb318003ea5':
  Fix R_AARCH64_ABS/PREL relocations

8 years agoam 5fd94dfe: Merge "Replace auto -> const auto&/auto&&"
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&&

8 years agoam 9c2122e8: Merge "Fix R_AARCH64_ABS/PREL relocations"
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

8 years agoMerge "Replace auto -> const auto&/auto&&"
Dimitry Ivanov [Fri, 16 Oct 2015 20:37:34 +0000 (20:37 +0000)]
Merge "Replace auto -> const auto&/auto&&"

8 years agoMerge "Fix R_AARCH64_ABS/PREL relocations"
Dimitry Ivanov [Fri, 16 Oct 2015 20:36:25 +0000 (20:36 +0000)]
Merge "Fix R_AARCH64_ABS/PREL relocations"

8 years agoFix 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

8 years agoam 842866bd: Merge "Update timezone data to 2015g" into mnc-dr-dev
Neil Fuller [Thu, 15 Oct 2015 09:21:59 +0000 (09:21 +0000)]
am 842866bd: Merge "Update timezone data to 2015g" into mnc-dr-dev

* commit '842866bd00220119e03fd8d2e6b77d7187b4b38c':
  Update timezone data to 2015g

8 years agoMerge "Update timezone data to 2015g" into mnc-dr-dev
Neil Fuller [Thu, 15 Oct 2015 08:25:58 +0000 (08:25 +0000)]
Merge "Update timezone data to 2015g" into mnc-dr-dev

8 years agoresolved conflicts for 95ac6dbb to mnc-dr-dev-plus-aosp
Dmitriy Ivanov [Thu, 15 Oct 2015 01:41:36 +0000 (18:41 -0700)]
resolved conflicts for 95ac6dbb to mnc-dr-dev-plus-aosp

Change-Id: I8937cd33aa375824965d4f919038a99b30ab75ea

8 years agoam 8c9cb682: am 074efa02: Merge "Ensure that readlink has access to /proc/self/fd"
Dimitry Ivanov [Thu, 15 Oct 2015 01:37:37 +0000 (01:37 +0000)]
am 8c9cb682: am 074efa02: Merge "Ensure that readlink has access to /proc/self/fd"

* commit '8c9cb6820fca3f73414219d816e10355a7052dbd':
  Ensure that readlink has access to /proc/self/fd

8 years agoam 074efa02: Merge "Ensure that readlink has access to /proc/self/fd"
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

8 years agoam 3c30a156: Merge "Sync with upstream NetBSD lib/libc/regex." into mnc-dr-dev
Christopher Ferris [Thu, 15 Oct 2015 01:29:05 +0000 (01:29 +0000)]
am 3c30a156: Merge "Sync with upstream NetBSD lib/libc/regex." into mnc-dr-dev

* commit '3c30a156523f40250361e6ed8791919d1c71a4bb':
  Sync with upstream NetBSD lib/libc/regex.

8 years agoMerge "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"

8 years agoEnsure 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)

8 years agoMerge "Ensure that readlink has access to /proc/self/fd" into mnc-dr-dev
Dimitry Ivanov [Thu, 15 Oct 2015 01:17:55 +0000 (01:17 +0000)]
Merge "Ensure that readlink has access to /proc/self/fd" into mnc-dr-dev

8 years agoMerge "Sync with upstream NetBSD lib/libc/regex." into mnc-dr-dev
Christopher Ferris [Thu, 15 Oct 2015 01:15:22 +0000 (01:15 +0000)]
Merge "Sync with upstream NetBSD lib/libc/regex." into mnc-dr-dev

8 years agoam 559d9cf5: am c433a36f: Merge "Move malloc dispatch table to __libc_globals."
Josh Gao [Wed, 14 Oct 2015 23:54:59 +0000 (23:54 +0000)]
am 559d9cf5: am c433a36f: Merge "Move malloc dispatch table to __libc_globals."

* commit '559d9cf5fa6d5339d1578530a73ecb81a91c27d9':
  Move malloc dispatch table to __libc_globals.

8 years agoam c433a36f: Merge "Move malloc dispatch table to __libc_globals."
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.

8 years agoMerge "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."

8 years agoSync with upstream NetBSD lib/libc/regex.
Elliott Hughes [Tue, 15 Sep 2015 01:45:52 +0000 (18:45 -0700)]
Sync with upstream NetBSD lib/libc/regex.

Bug: http://b/22850181

(cherry picked from commit 71927a82379f7a72559ea96e6678d6215090937f)

Change-Id: I4a914f0594a66f38efb3026b7ba9d28a4887cb2d

8 years agoEnsure 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

8 years agoUpdate timezone data to 2015g
Neil Fuller [Fri, 9 Oct 2015 16:58:58 +0000 (17:58 +0100)]
Update timezone data to 2015g

  Changes affecting future time stamps

    Turkey's 2015 fall-back transition is scheduled for Nov. 8, not Oct. 25.
    (Thanks to Fatih.)

    Norfolk moves from +1130 to +1100 on 2015-10-04 at 02:00 local time.
    (Thanks to Alexander Krivenyshev.)

    Fiji's 2016 fall-back transition is scheduled for January 17, not 24.
    (Thanks to Ken Rylander.)

    Fort Nelson, British Columbia will not fall back on 2015-11-01. It has
    effectively been on MST (-0700) since it advanced its clocks on 2015-03-08.
    New zone America/Fort_Nelson.  (Thanks to Matt Johnson.)

  Changes affecting past time stamps

    Norfolk observed DST from 1974-10-27 02:00 to 1975-03-02 02:00.

Bug: 24595281
(cherry-picked from commit 31740bfdb942399235e42ea920b6b717dfa0279c)

Change-Id: I6a57fbdaf12a4b4ebf2a760fd3bd872055621106

8 years agoam 36ebee4f: am 198d13e8: Merge "make mmap fail on requests larger than PTRDIFF_MAX"
Josh Gao [Wed, 14 Oct 2015 02:27:42 +0000 (02:27 +0000)]
am 36ebee4f: am 198d13e8: Merge "make mmap fail on requests larger than PTRDIFF_MAX"

* commit '36ebee4f495b0c49ed686221dfe127f4ccd12b52':
  make mmap fail on requests larger than PTRDIFF_MAX

8 years agoam 198d13e8: Merge "make mmap fail on requests larger than PTRDIFF_MAX"
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

8 years agoMerge "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"

8 years agoam 090278d6: am 11c2179d: Merge "Log dlopen failures caused by text relocations"
Dimitry Ivanov [Tue, 13 Oct 2015 23:01:36 +0000 (23:01 +0000)]
am 090278d6: am 11c2179d: Merge "Log dlopen failures caused by text relocations"

* commit '090278d6c6e3501836c70ce555996511b96a38d9':
  Log dlopen failures caused by text relocations

8 years agoam 11c2179d: Merge "Log dlopen failures caused by text relocations"
Dimitry Ivanov [Tue, 13 Oct 2015 22:53:03 +0000 (22:53 +0000)]
am 11c2179d: Merge "Log dlopen failures caused by text relocations"

* commit '11c2179d468bba3336c3a3e8418ddaa98f58afce':
  Log dlopen failures caused by text relocations

8 years agoMerge "Log dlopen failures caused by text relocations"
Dimitry Ivanov [Tue, 13 Oct 2015 22:50:05 +0000 (22:50 +0000)]
Merge "Log dlopen failures caused by text relocations"

8 years agoLog dlopen failures caused by text relocations
Dmitriy Ivanov [Tue, 13 Oct 2015 18:07:56 +0000 (11:07 -0700)]
Log dlopen failures caused by text relocations

Some apps will fail to load native libraries with
text relocations when switching target sdk version to M.
It could be hard to diagnose because some of them
suppress dlerror and/or UnsatisfiedLinkError.

This change unconditionally logs the error message making
the cause of the failure more visible to developers.

Bug: http://b/24876001
Change-Id: I0477a0d1307d0879000f3a3a43b974b4cf34bdb2
(cherry picked from commit f32b689d3dbe7a1317bce58d1d9bef9bba173c66)

8 years agoresolved conflicts for f32b689d to mnc-dr-dev-plus-aosp
Dmitriy Ivanov [Tue, 13 Oct 2015 21:59:20 +0000 (14:59 -0700)]
resolved conflicts for f32b689d to mnc-dr-dev-plus-aosp

Change-Id: I95f90eb68dcb4b3f4b3d80260b2285c78692b535

8 years agoam 5db60c04: am 30cd7065: Merge "Correctly resolve realpath for absolute paths"
Dimitry Ivanov [Tue, 13 Oct 2015 20:51:11 +0000 (20:51 +0000)]
am 5db60c04: am 30cd7065: Merge "Correctly resolve realpath for absolute paths"

* commit '5db60c04c68ed5f0d9ef9bc0e8c2a84062287b8d':
  Correctly resolve realpath for absolute paths

8 years agoam 30cd7065: Merge "Correctly resolve realpath for absolute paths"
Dimitry Ivanov [Tue, 13 Oct 2015 20:43:36 +0000 (20:43 +0000)]
am 30cd7065: Merge "Correctly resolve realpath for absolute paths"

* commit '30cd7065b6cd37342e23904cb512c409b8bbd4f1':
  Correctly resolve realpath for absolute paths

8 years agoMerge "Correctly resolve realpath for absolute paths"
Dimitry Ivanov [Tue, 13 Oct 2015 20:37:55 +0000 (20:37 +0000)]
Merge "Correctly resolve realpath for absolute paths"

8 years agoReplace auto -> const auto&/auto&&
Dmitriy Ivanov [Tue, 13 Oct 2015 19:14:16 +0000 (12:14 -0700)]
Replace auto -> const auto&/auto&&

Change-Id: Ie484e5a296b5dd222a9545d8539d40d97a6c158c

8 years agoLog dlopen failures caused by text relocations
Dmitriy Ivanov [Tue, 13 Oct 2015 18:07:56 +0000 (11:07 -0700)]
Log dlopen failures caused by text relocations

Some apps will fail to load native libraries with
text relocations when switching target sdk version to M.
It could be hard to diagnose because some of them
suppress dlerror and/or UnsatisfiedLinkError.

This change unconditionally logs the error message making
the cause of the failure more visible to developers.

Bug: http://b/24876001
Change-Id: I0477a0d1307d0879000f3a3a43b974b4cf34bdb2

8 years agoCorrectly resolve realpath for absolute paths
Lazar Trsic [Tue, 13 Oct 2015 14:43:00 +0000 (16:43 +0200)]
Correctly resolve realpath for absolute paths

Introduced by: https://android-review.googlesource.com/174475

Change-Id: I44e00040b28be167d5141454f919340afec6084e

8 years agoam 12b4f21e: am fb7f45b6: Merge "Update timezone data to 2015g"
Neil Fuller [Tue, 13 Oct 2015 09:24:08 +0000 (09:24 +0000)]
am 12b4f21e: am fb7f45b6: Merge "Update timezone data to 2015g"

* commit '12b4f21e1969b0eceeedb52b2ff0f77a1f791908':
  Update timezone data to 2015g

8 years agoam fb7f45b6: Merge "Update timezone data to 2015g"
Neil Fuller [Tue, 13 Oct 2015 09:14:17 +0000 (09:14 +0000)]
am fb7f45b6: Merge "Update timezone data to 2015g"

* commit 'fb7f45b6a3242c9a9a547705de08cf59e6b7f935':
  Update timezone data to 2015g

8 years agoMerge "Update timezone data to 2015g"
Neil Fuller [Tue, 13 Oct 2015 08:26:44 +0000 (08:26 +0000)]
Merge "Update timezone data to 2015g"

8 years agoam 5a805d91: am a5ad727e: Merge "linker: Switch to clang"
Dimitry Ivanov [Tue, 13 Oct 2015 01:46:10 +0000 (01:46 +0000)]
am 5a805d91: am a5ad727e: Merge "linker: Switch to clang"

* commit '5a805d919c0a531c0e8bbae746d192db218d625d':
  linker: Switch to clang

8 years agoam a5ad727e: Merge "linker: Switch to clang"
Dimitry Ivanov [Tue, 13 Oct 2015 01:40:49 +0000 (01:40 +0000)]
am a5ad727e: Merge "linker: Switch to clang"

* commit 'a5ad727e7619f4497792d67ae05b8ef15315b362':
  linker: Switch to clang

8 years agoMerge "linker: Switch to clang"
Dimitry Ivanov [Tue, 13 Oct 2015 01:34:59 +0000 (01:34 +0000)]
Merge "linker: Switch to clang"

8 years agolinker: Switch to clang
Dmitriy Ivanov [Mon, 12 Oct 2015 23:27:32 +0000 (16:27 -0700)]
linker: Switch to clang

x86_64 gcc exports malloc/free and co functions because they
are defined with visibility "default" somewhere in gcc builtins;
and vector d-tors for some reason. Switching to clang fixes
this problem.

Bug: http://b/24785482
Change-Id: I741503b4b446523e7ff3fb16de13ed99991fd0c0

8 years agoMove malloc dispatch table to __libc_globals.
Josh Gao [Thu, 8 Oct 2015 21:49:26 +0000 (14:49 -0700)]
Move malloc dispatch table to __libc_globals.

Change-Id: Ic20b980d1e8b6c2d4b773ebe336658fd17c737cb

8 years agoresolved conflicts for a828a2f8 to mnc-dr-dev-plus-aosp
Dmitriy Ivanov [Mon, 12 Oct 2015 22:02:28 +0000 (15:02 -0700)]
resolved conflicts for a828a2f8 to mnc-dr-dev-plus-aosp

Change-Id: Ibe8c145eaadcd1fa9229d8a6eda1e33c0e59fb12

8 years agoam 25cba7df: Merge "Make struct FILE opaque."
Elliott Hughes [Mon, 12 Oct 2015 20:40:41 +0000 (20:40 +0000)]
am 25cba7df: Merge "Make struct FILE opaque."

* commit '25cba7df5120a32b144769843781442031fc597b':
  Make struct FILE opaque.

8 years agoMerge "Make struct FILE opaque."
Elliott Hughes [Mon, 12 Oct 2015 20:33:04 +0000 (20:33 +0000)]
Merge "Make struct FILE opaque."

8 years agoMake struct FILE opaque.
Elliott Hughes [Mon, 12 Oct 2015 19:44:23 +0000 (12:44 -0700)]
Make struct FILE opaque.

Bug: http://b/24807045
Change-Id: I3cb4e436325a65bef3b203e3970e4d967101fcce

8 years agoam e7839263: Merge "Fix stdio read after EOF behavior."
Elliott Hughes [Mon, 12 Oct 2015 15:23:48 +0000 (15:23 +0000)]
am e7839263: Merge "Fix stdio read after EOF behavior."

* commit 'e78392637d5086384a5631ddfdfa8d7ec8326ee3':
  Fix stdio read after EOF behavior.

8 years agoMerge "Fix stdio read after EOF behavior."
Elliott Hughes [Mon, 12 Oct 2015 15:20:29 +0000 (15:20 +0000)]
Merge "Fix stdio read after EOF behavior."

8 years agoFix stdio read after EOF behavior.
Elliott Hughes [Sat, 10 Oct 2015 00:57:26 +0000 (17:57 -0700)]
Fix stdio read after EOF behavior.

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

8 years agoam 1ab3f303: Merge "Fix inet_aton on LP32."
Elliott Hughes [Sat, 10 Oct 2015 00:44:51 +0000 (00:44 +0000)]
am 1ab3f303: Merge "Fix inet_aton on LP32."

* commit '1ab3f303d2e7c8cc498a28fc3c8d9ded1fc46994':
  Fix inet_aton on LP32.

8 years agoMerge "Fix inet_aton on LP32."
Elliott Hughes [Sat, 10 Oct 2015 00:39:11 +0000 (00:39 +0000)]
Merge "Fix inet_aton on LP32."

8 years agoFix inet_aton on LP32.
Elliott Hughes [Sat, 10 Oct 2015 00:27:41 +0000 (17:27 -0700)]
Fix inet_aton on LP32.

I wasn't checking for overflow. Luckily, I had a test that overflows on LP32.

Change-Id: If2cf33d88f459eb26d0ce75f3c5ed192f516ab7a

8 years agoam c6f704bf: Merge "utmp.h: add more ut_type defines"
Mike Frysinger [Fri, 9 Oct 2015 23:37:18 +0000 (23:37 +0000)]
am c6f704bf: Merge "utmp.h: add more ut_type defines"

* commit 'c6f704bf77576b2cf27decd8ee50c99aeeb9e209':
  utmp.h: add more ut_type defines

8 years agoMerge "utmp.h: add more ut_type defines"
Mike Frysinger [Fri, 9 Oct 2015 23:33:37 +0000 (23:33 +0000)]
Merge "utmp.h: add more ut_type defines"

8 years agoam 902ab885: Merge "Move setjmp cookie to a shared globals struct."
Josh Gao [Fri, 9 Oct 2015 23:33:32 +0000 (23:33 +0000)]
am 902ab885: Merge "Move setjmp cookie to a shared globals struct."

* commit '902ab8859f360d81d6bd03a76a77900743018a15':
  Move setjmp cookie to a shared globals struct.

8 years agoam 73a91218: Merge "Move VDSO pointers to a shared globals struct."
Josh Gao [Fri, 9 Oct 2015 23:33:30 +0000 (23:33 +0000)]
am 73a91218: Merge "Move VDSO pointers to a shared globals struct."

* commit '73a91218d1f0b334b97648461b19eed96e6c4336':
  Move VDSO pointers to a shared globals struct.

8 years agoMerge "Move setjmp cookie to a shared globals struct."
Josh Gao [Fri, 9 Oct 2015 23:27:07 +0000 (23:27 +0000)]
Merge "Move setjmp cookie to a shared globals struct."

8 years agoMerge "Move VDSO pointers to a shared globals struct."
Josh Gao [Fri, 9 Oct 2015 23:26:53 +0000 (23:26 +0000)]
Merge "Move VDSO pointers to a shared globals struct."

8 years agoMove setjmp cookie to a shared globals struct.
Josh Gao [Wed, 7 Oct 2015 21:32:36 +0000 (14:32 -0700)]
Move setjmp cookie to a shared globals struct.

Change-Id: I59a4c187d61524c4e48655c4c6376dba0d41eee2

8 years agoMove VDSO pointers to a shared globals struct.
Josh Gao [Tue, 6 Oct 2015 18:08:13 +0000 (11:08 -0700)]
Move VDSO pointers to a shared globals struct.

Change-Id: I01cbc9cf0917dc1fac52d9205bda2c68529d12ef

8 years agoam 487a1823: Merge "Fix inet_addr/inet_aton/inet_network."
Elliott Hughes [Fri, 9 Oct 2015 22:53:45 +0000 (22:53 +0000)]
am 487a1823: Merge "Fix inet_addr/inet_aton/inet_network."

* commit '487a1823e8617011009eded8eae9a75c1f871887':
  Fix inet_addr/inet_aton/inet_network.

8 years agoutmp.h: add more ut_type defines
Mike Frysinger [Fri, 9 Oct 2015 22:48:51 +0000 (18:48 -0400)]
utmp.h: add more ut_type defines

This fills out the defines that utmp.h normally offers on other systems
such as glibc.

BUG=24810744

Change-Id: If57f9ced22e8673f072245fce3f5c0f8e1f591e5

8 years agoMerge "Fix inet_addr/inet_aton/inet_network."
Elliott Hughes [Fri, 9 Oct 2015 22:48:13 +0000 (22:48 +0000)]
Merge "Fix inet_addr/inet_aton/inet_network."

8 years agoFix inet_addr/inet_aton/inet_network.
Elliott Hughes [Fri, 9 Oct 2015 01:04:49 +0000 (18:04 -0700)]
Fix inet_addr/inet_aton/inet_network.

Rewrite inet_addr and inet_network in terms of inet_aton, and reimplement
that to include all the missing error checks.

Bug: http://b/24754503
Change-Id: I5dfa971c87201968985a0894df419f0fbf54768a

8 years agoam f41fe717: Merge "Sync with upstream tzcode (2015g)."
Elliott Hughes [Fri, 9 Oct 2015 22:42:25 +0000 (22:42 +0000)]
am f41fe717: Merge "Sync with upstream tzcode (2015g)."

* commit 'f41fe717655f01affc1d8244ff9efccc04d86620':
  Sync with upstream tzcode (2015g).

8 years agoMerge "Sync with upstream tzcode (2015g)."
Elliott Hughes [Fri, 9 Oct 2015 22:35:24 +0000 (22:35 +0000)]
Merge "Sync with upstream tzcode (2015g)."

8 years agoSync with upstream tzcode (2015g).
Elliott Hughes [Thu, 8 Oct 2015 00:13:40 +0000 (17:13 -0700)]
Sync with upstream tzcode (2015g).

This is quite a large patch because we haven't updated for some time,
but the good news is that upstream is now thread-safe so a lot of our
changes go away in this update and the remaining diff is a lot smaller.

(Note that our whitespace still doesn't match upstream. I use diff -wub
to compare. Upstream doesn't even really have a consistent style. New
code seems to be two spaces, old code tabs.)

From the intervening changelogs (eliding the changes that only affected
the tools, which we don't use):

2014a:
     An uninitialized-storage bug in 'localtime' has been fixed.
     (Thanks to Logan Chien.)

2014b:
     'zic' and 'localtime' no longer reject locations needing four
     transitions per year for the forseeable future.  (Thanks to Andrew
     Main (Zefram).)

2014c:
     <None>

2014d:
     <None>

2014e:
     <None>

2014f:
     'localtime', 'mktime', etc. now use much less stack space if
     ALL_STATE is defined.  (Thanks to Elliott Hughes for reporting the
     problem.)

     Some lint has been removed when using GCC_DEBUG_FLAGS with GCC
     4.9.0.

2014g:
     Unless NETBSD_INSPIRED is defined to 0, the tz library now
     supplies functions for creating and using objects that represent
     time zones. The new functions are tzalloc, tzfree, localtime_rz,
     mktime_z, and (if STD_INSPIRED is also defined) posix2time_z and
     time2posix_z.  They are intended for performance: for example,
     localtime_rz (unlike localtime_r) is trivially thread-safe without
     locking.  (Thanks to Christos Zoulas for proposing NetBSD-inspired
     functions, and to Alan Barrett and Jonathan Lennox for helping to
     debug the change.)

     If THREAD_SAFE is defined to 1, the tz library is now thread-safe.
     Although not needed for tz's own applications, which are single-threaded,
     this supports POSIX better if the tz library is used in multithreaded apps.

     Some crashes have been fixed when zdump or the tz library is given
     invalid or outlandish input.

     The tz library no longer mishandles leap seconds on platforms with
     unsigned time_t in time zones that lack ordinary transitions after 1970.

     The tz code now attempts to infer TM_GMTOFF and TM_ZONE if not
     already defined, to make it easier to configure on common platforms.
     Define NO_TM_GMTOFF and NO_TM_ZONE to suppress this.

     Unless the new macro UNINIT_TRAP is defined to 1, the tz code now
     assumes that reading uninitialized memory yields garbage values
     but does not cause other problems such as traps.

     If TM_GMTOFF is defined and UNINIT_TRAP is 0, mktime is now
     more likely to guess right for ambiguous time stamps near
     transitions where tm_isdst does not change.

     If HAVE_STRFTIME_L is defined to 1, the tz library now defines
     strftime_l for compatibility with recent versions of POSIX.
     Only the C locale is supported, though.  HAVE_STRFTIME_L defaults
     to 1 on recent POSIX versions, and to 0 otherwise.

     tzselect -c now uses a hybrid distance measure that works better
     in Africa.  (Thanks to Alan Barrett for noting the problem.)

     The C source code now ports to NetBSD when GCC_DEBUG_FLAGS is used,
     or when time_tz is defined.

     When HAVE_UTMPX_H is set the 'date' command now builds on systems
     whose <utmpx.h> file does not define WTMPX_FILE, and when setting
     the date it updates the wtmpx file if _PATH_WTMPX is defined.
     This affects GNU/Linux and similar systems.

     For easier maintenance later, some C code has been simplified,
     some lint has been removed, and the code has been tweaked so that
     plain 'make' is more likely to work.

     The C type 'bool' is now used for boolean values, instead of 'int'.

     The long-obsolete LOCALE_HOME code has been removed.

     The long-obsolete 'gtime' function has been removed.

2014h:
     The tz library's localtime and mktime functions now set tzname to a value
     appropriate for the requested time stamp, and zdump now uses this
     on platforms not defining TM_ZONE, fixing a 2014g regression.
     (Thanks to Tim Parenti for reporting the problem.)

     The tz library no longer sets tzname if localtime or mktime fails.

     An access to uninitalized data has been fixed.
     (Thanks to Jörg Richter for reporting the problem.)

     When THREAD_SAFE is defined, the code ports to the C11 memory model.
     A memory leak has been fixed if ALL_STATE and THREAD_SAFE are defined
     and two threads race to initialize data used by gmtime-like functions.
     (Thanks to Andy Heninger for reporting the problems.)

2014i:
     The time-related library functions now set errno on failure,
     and some crashes in the new tzalloc-related library functions
     have been fixed.  (Thanks to Christos Zoulas for reporting
     most of these problems and for suggesting fixes.)

     If USG_COMPAT is defined and the requested time stamp is
     standard time, the tz library's localtime and mktime functions
     now set the extern variable timezone to a value appropriate
     for that time stamp; and similarly for ALTZONE, daylight
     saving time, and the altzone variable.  This change is a
     companion to the tzname change in 2014h, and is designed to
     make timezone and altzone more compatible with tzname.

     The tz library's functions now set errno to EOVERFLOW if they
     fail because the result cannot be represented.  ctime and
     ctime_r now return NULL and set errno when a time stamp is out
     of range, rather than having undefined behavior.

     Some bugs associated with the new 2014g functions have been
     fixed.  This includes a bug that largely incapacitated the new
     functions time2posix_z and posix2time_z.  (Thanks to Christos
     Zoulas.)  It also includes some uses of uninitialized
     variables after tzalloc.  The new code uses the standard type
     'ssize_t', which the Makefile now gives porting advice about.

2014j:
     <None>

2015a:
     tzalloc now scrubs time zone abbreviations compatibly with the way
     that tzset always has, by replacing invalid bytes with '_' and by
     shortening too-long abbreviations.

2015b:
     Fix integer overflow bug in reference 'mktime' implementation.
     (Problem reported by Jörg Richter.)

     Allow -Dtime_tz=time_t compilations, and allow -Dtime_tz=... libraries
     to be used in the same executable as standard-library time_t functions.
     (Problems reported by Bradley White.)

2015c:
     <None>

2015d:
     <None>

2015e:
     <None>

2015f:
     <None>

2015g:
    localtime no longer mishandles America/Anchorage after 2037.
    (Thanks to Bradley White for reporting the bug.)

    On hosts with signed 32-bit time_t, localtime no longer mishandles
    Pacific/Fiji after 2038-01-16 14:00 UTC.

    The localtime module allows the variables 'timezone', 'daylight',
    and 'altzone' to be in common storage shared with other modules,
    and declares them in case the system <time.h> does not.
    (Problems reported by Kees Dekker.)

    On platforms with tm_zone, strftime.c now assumes it is not NULL.
    This simplifies the code and is consistent with zdump.c.
    (Problem reported by Christos Zoulas.)

Change-Id: I9eb0a8323cb8bd9968fcfe612dc14f45aa3b59d2

8 years agoam 6a59289b: Merge "Remove textrels support for platform libs"
Dimitry Ivanov [Fri, 9 Oct 2015 21:14:26 +0000 (21:14 +0000)]
am 6a59289b: Merge "Remove textrels support for platform libs"

* commit '6a59289b06deafe5eed49d86753297c604eadc86':
  Remove textrels support for platform libs

8 years agoMerge "Remove textrels support for platform libs"
Dimitry Ivanov [Fri, 9 Oct 2015 21:09:46 +0000 (21:09 +0000)]
Merge "Remove textrels support for platform libs"

8 years agoRemove textrels support for platform libs
Dmitriy Ivanov [Fri, 9 Oct 2015 20:58:46 +0000 (13:58 -0700)]
Remove textrels support for platform libs

Bug: http://b/20013628
Change-Id: Ia9382c7113e09bb6aed65072543e4ebe33026cf8

8 years agoam d8df28ff: Merge "Implement setjmp cookies on MIPS and MIPS64"
Josh Gao [Fri, 9 Oct 2015 18:39:57 +0000 (18:39 +0000)]
am d8df28ff: Merge "Implement setjmp cookies on MIPS and MIPS64"

* commit 'd8df28ff3833e620db1b61dd4038028dd160c870':
  Implement setjmp cookies on MIPS and MIPS64

8 years agoMerge "Implement setjmp cookies on MIPS and MIPS64"
Josh Gao [Fri, 9 Oct 2015 18:32:20 +0000 (18:32 +0000)]
Merge "Implement setjmp cookies on MIPS and MIPS64"

8 years agoUpdate timezone data to 2015g
Neil Fuller [Fri, 9 Oct 2015 16:58:58 +0000 (17:58 +0100)]
Update timezone data to 2015g

  Changes affecting future time stamps

    Turkey's 2015 fall-back transition is scheduled for Nov. 8, not Oct. 25.
    (Thanks to Fatih.)

    Norfolk moves from +1130 to +1100 on 2015-10-04 at 02:00 local time.
    (Thanks to Alexander Krivenyshev.)

    Fiji's 2016 fall-back transition is scheduled for January 17, not 24.
    (Thanks to Ken Rylander.)

    Fort Nelson, British Columbia will not fall back on 2015-11-01. It has
    effectively been on MST (-0700) since it advanced its clocks on 2015-03-08.
    New zone America/Fort_Nelson.  (Thanks to Matt Johnson.)

  Changes affecting past time stamps

    Norfolk observed DST from 1974-10-27 02:00 to 1975-03-02 02:00.

Bug: 24595281
Change-Id: I7e4e4c53b4843110540f573ba82d3761c871c096

8 years agoImplement setjmp cookies on MIPS and MIPS64
Nikola Veljkovic [Tue, 6 Oct 2015 16:39:49 +0000 (18:39 +0200)]
Implement setjmp cookies on MIPS and MIPS64

Bug: http://b/23942752
Change-Id: Ie58892a97b5075d30d7607667251007cda99d38c

8 years agoam 599af934: Merge "Fix bionic_coverage for kati."
Dan Albert [Thu, 8 Oct 2015 22:08:28 +0000 (22:08 +0000)]
am 599af934: Merge "Fix bionic_coverage for kati."

* commit '599af9346e3ea697dda1b0c38a99cce842154307':
  Fix bionic_coverage for kati.

8 years agoam 268f7391: Merge "Make dt_runpath work for libraries opened from apk"
Dimitry Ivanov [Thu, 8 Oct 2015 22:08:17 +0000 (22:08 +0000)]
am 268f7391: Merge "Make dt_runpath work for libraries opened from apk"

* commit '268f73917831e709bc6a201658c19ffb5c8cbfd1':
  Make dt_runpath work for libraries opened from apk

8 years agoMerge "Fix bionic_coverage for kati."
Dan Albert [Thu, 8 Oct 2015 21:35:12 +0000 (21:35 +0000)]
Merge "Fix bionic_coverage for kati."

8 years agoFix bionic_coverage for kati.
Dan Albert [Thu, 8 Oct 2015 21:04:53 +0000 (14:04 -0700)]
Fix bionic_coverage for kati.

Kati won't override something set with :=, only ?=.

Note that the actually reveals that our coverage build has been broken
for... some time. The issue is that we have static libraries built
with clang and others built with gcc linked into the same .so. If we
use both libclang_rt.profile and libgcov together, we get duplicate
symbol errors. If we only use one or the other, we don't have all the
symbols we need.

This will be fixed once chh's TLS stuff makes it into our clang and we
can start building libc_thread_atexit_impl with clang.

Change-Id: I45d0f2e558a881ad8be71088102320724ced8fe5

8 years agoMerge "Make dt_runpath work for libraries opened from apk"
Dimitry Ivanov [Thu, 8 Oct 2015 19:45:45 +0000 (19:45 +0000)]
Merge "Make dt_runpath work for libraries opened from apk"

8 years agolinker: don't pass dlextinfo to dependent loads.
Torne (Richard Coles) [Wed, 2 Sep 2015 13:14:08 +0000 (14:14 +0100)]
linker: don't pass dlextinfo to dependent loads.

Don't pass the parent load's dlextinfo to dependent loads, since this
causes the linker to try to load the dependencies using the same
addresses/relro/fds/etc as the main library, which is never going to
work. This was how it worked before ae69a95 which broke this.

Bug: 23742664
Change-Id: I53d8cdf0982d8758e6d2ced4864c704cdf74118f

8 years agoam cc56abbb: Merge "Add missing register preserve in x86/x86_64 longjmp."
Josh Gao [Wed, 7 Oct 2015 21:32:47 +0000 (21:32 +0000)]
am cc56abbb: Merge "Add missing register preserve in x86/x86_64 longjmp."

* commit 'cc56abbb007e090b830f510df6cb300ae12e1a89':
  Add missing register preserve in x86/x86_64 longjmp.

8 years agoMerge "Add missing register preserve in x86/x86_64 longjmp."
Josh Gao [Wed, 7 Oct 2015 21:17:47 +0000 (21:17 +0000)]
Merge "Add missing register preserve in x86/x86_64 longjmp."

8 years agoAdd missing register preserve in x86/x86_64 longjmp.
Josh Gao [Wed, 7 Oct 2015 20:51:59 +0000 (13:51 -0700)]
Add missing register preserve in x86/x86_64 longjmp.

Change-Id: I3fc442f819229640e9c0ec4f9c865d9bf0e70881

8 years agoMake dt_runpath work for libraries opened from apk
Dmitriy Ivanov [Fri, 2 Oct 2015 01:41:57 +0000 (18:41 -0700)]
Make dt_runpath work for libraries opened from apk

This patch also fixes realpath for libraries opened directly
from apks.

Bug: http://b/21960914
Bug: http://b/21961857
Change-Id: I35ade661c87f1d448191f385811f6e9fd3cacf11

8 years agoam f9604906: Merge "Remove the workaround which fixes JOB_COUNT in CTS test."
Yabin Cui [Wed, 7 Oct 2015 17:20:29 +0000 (17:20 +0000)]
am f9604906: Merge "Remove the workaround which fixes JOB_COUNT in CTS test."

* commit 'f96049062f04a922fda937aecc562517101a38cc':
  Remove the workaround which fixes JOB_COUNT in CTS test.

8 years agoMerge "Remove the workaround which fixes JOB_COUNT in CTS test."
Yabin Cui [Wed, 7 Oct 2015 17:05:29 +0000 (17:05 +0000)]
Merge "Remove the workaround which fixes JOB_COUNT in CTS test."

8 years agoRemove the workaround which fixes JOB_COUNT in CTS test.
Yabin Cui [Tue, 6 Oct 2015 23:30:14 +0000 (16:30 -0700)]
Remove the workaround which fixes JOB_COUNT in CTS test.

Bug: 24376925
Change-Id: Ib195ce1577ee9412068cc1b6223fc051b5bcfcaa

8 years agoam 98be6be1: am 748421be: Merge "Fix linker tests"
Dimitry Ivanov [Mon, 5 Oct 2015 20:24:37 +0000 (20:24 +0000)]
am 98be6be1: am 748421be: Merge "Fix linker tests"

* commit '98be6be171b3792c51d83d19f015052112f8ddbf':
  Fix linker tests

8 years agoam 748421be: Merge "Fix linker tests"
Dimitry Ivanov [Mon, 5 Oct 2015 20:17:39 +0000 (20:17 +0000)]
am 748421be: Merge "Fix linker tests"

* commit '748421beef0ed8625920a27b3753a79c2652b6ef':
  Fix linker tests

8 years agoMerge "Fix linker tests"
Dimitry Ivanov [Mon, 5 Oct 2015 20:10:26 +0000 (20:10 +0000)]
Merge "Fix linker tests"

8 years agoFix linker tests
Dmitriy Ivanov [Mon, 5 Oct 2015 19:06:40 +0000 (12:06 -0700)]
Fix linker tests

Change-Id: I4794f2d9dcc5ceb419e1bf9151607a650eb801d9

8 years agoam df62e317: am 5c50449b: Merge "Use const auto& in for loops."
Elliott Hughes [Sat, 3 Oct 2015 16:35:32 +0000 (16:35 +0000)]
am df62e317: am 5c50449b: Merge "Use const auto& in for loops."

* commit 'df62e3171ca52cbdadb3c3edc93c42cfacbad054':
  Use const auto& in for loops.

8 years agoam 5c50449b: Merge "Use const auto& in for loops."
Elliott Hughes [Sat, 3 Oct 2015 16:29:55 +0000 (16:29 +0000)]
am 5c50449b: Merge "Use const auto& in for loops."

* commit '5c50449b0c098cb8191fe3f7791e91a7ec4f7029':
  Use const auto& in for loops.

8 years agoMerge "Use const auto& in for loops."
Elliott Hughes [Sat, 3 Oct 2015 16:23:19 +0000 (16:23 +0000)]
Merge "Use const auto& in for loops."

8 years agoUse const auto& in for loops.
Elliott Hughes [Sat, 3 Oct 2015 01:25:19 +0000 (18:25 -0700)]
Use const auto& in for loops.

Change-Id: Ic437c59797ee4e7dc38291da35c72d827bc89c8d

8 years agoam ee9dea83: am f7cf8b2c: Merge "bionic: tzset running hot"
Mark Salyzyn [Fri, 2 Oct 2015 21:17:39 +0000 (21:17 +0000)]
am ee9dea83: am f7cf8b2c: Merge "bionic: tzset running hot"

* commit 'ee9dea83fbaf2261066fbb20e5942c147018c949':
  bionic: tzset running hot

8 years agoam f7cf8b2c: Merge "bionic: tzset running hot"
Mark Salyzyn [Fri, 2 Oct 2015 21:10:18 +0000 (21:10 +0000)]
am f7cf8b2c: Merge "bionic: tzset running hot"

* commit 'f7cf8b2c1fbf6250e12d1e59aa353990eca4f109':
  bionic: tzset running hot