OSDN Git Service
Yabin Cui [Fri, 5 Jun 2015 02:18:45 +0000 (02:18 +0000)]
am
61b040a5: resolved conflicts for merge of
ea248d9c to lmp-mr1-ub-dev
* commit '
61b040a57094093cfb090ebb1c321d4a69c20b64':
Make sys_resource test more robust.
Dmitriy Ivanov [Thu, 4 Jun 2015 21:33:18 +0000 (14:33 -0700)]
Hide __atexit
Bug: http://b/
21640806
Change-Id: I778b35c8c7538859179e97fcf5a82db2fcd9e50f
(cherry picked from commit
9cf6fc304bbbfb26911e0b624b80d862c40b0308)
Christopher Ferris [Thu, 4 Jun 2015 20:57:23 +0000 (20:57 +0000)]
Merge "Reorder DIR structure due to bad apps." into mnc-dev
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
Change-Id: Id1258e9dc19423109a2c3a8086d3022965591166
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
(cherry picked from commit
6cda0742895e46aa4ad0e4e8d5637d166f9f46f2)
Dmitriy Ivanov [Wed, 3 Jun 2015 01:09:33 +0000 (01:09 +0000)]
Merge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)" into mnc-dev
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
Yabin Cui [Tue, 2 Jun 2015 23:47:42 +0000 (16:47 -0700)]
resolved conflicts for merge of
ea248d9c to lmp-mr1-ub-dev
Change-Id: I362ab2e25e3368c71cb1af51cee2e8fb5ce53e61
Yabin Cui [Tue, 2 Jun 2015 22:03:23 +0000 (22:03 +0000)]
Merge "Make sys_resource test more robust." into lollipop-cts-dev
automerge:
492a0bf
* commit '
492a0bf212973baa1c33d584d57e75395774447f':
Make sys_resource test more robust.
Nick Kralevich [Tue, 2 Jun 2015 22:02:42 +0000 (22:02 +0000)]
Merge "libc: Add O_PATH support for fgetxattr / fsetxattr" into mnc-dev
Yabin Cui [Tue, 2 Jun 2015 22:02:28 +0000 (22:02 +0000)]
Merge "Make sys_resource test more robust." into lollipop-cts-dev
Yabin Cui [Mon, 5 Jan 2015 19:06:30 +0000 (11:06 -0800)]
Make sys_resource test more robust.
Bug:
19482626
"ulimit -c xxx" command may run before bionic-unit-tests.
Make sure sys_resource test fails gently in that case.
Change-Id: Ic3b5ed8b20acba56df8c5ef082c88e5050e761aa
(cherry picked from commit
4853f40f3fb6664cb1b7af97b6b3e795717026b1)
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
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
(cherrypicked from commit
2825f10b7f61558c264231a536cf3affc0d84204)
Change-Id: Ic0cdf9f9dd0e35a63b44a4c4a08400020041eddf
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
(cherry picked from commit
f439b5a3186ca0fef1092f45770abc716da9d87a)
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
(cherry picked from commit
9d476a02e9a14e847669a6683c585028175aa322)
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
(cherry picked from commit
c05554ec5c9aff5e0f1e83de9bb62c3569eecca2)
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
(cherry picked from commit
087005f37e02b48809746947159d824493885b1e)
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
(cherry picked from commit
d974e8804689058714dc4fe9adcb57ee9a6996a8)
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
(cherry picked from commit
79fd668bb4ddb22432eeda2ebd8d10359013d9a8)
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
(cherry picked from commit
b96ac41b32e61799c48f3fd07831cc168b95068d)
Yabin Cui [Wed, 20 May 2015 21:48:09 +0000 (21:48 +0000)]
am
fd20a8c2: resolved conflicts for merge of
473d96c0 to lmp-mr1-ub-dev
* commit '
fd20a8c2d669b3f2d63e2d33a32b90d1b7f17b82':
Fix timer flaky test in lollipop-mr1-cts-dev.
Yabin Cui [Wed, 20 May 2015 20:36:56 +0000 (13:36 -0700)]
resolved conflicts for merge of
473d96c0 to lmp-mr1-ub-dev
Change-Id: I48269218b152054d527d9257d40490b54205140f
Yabin Cui [Mon, 18 May 2015 18:19:11 +0000 (11:19 -0700)]
Hide rt_sigqueueinfo.
Bug:
19358804
Change-Id: I38a53ad64c81d0eefdd1d24599e769fd8a477a56
(cherry picked from commit
40a8f214a5264efe5feaaffd55cea67fb87d097b)
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:
21205574
Bug:
20860440
Change-Id: I7cbb6bc3fd8a2ca430415beab5ee27a856ce4ea7
(cherry picked from commit
2957cc5f1043adf0b9c0f1cdfff2d408952e40f5)
Dmitriy Ivanov [Sat, 16 May 2015 16:57:15 +0000 (16:57 +0000)]
Merge "Apply work around b/
19059885 to x86" into mnc-dev
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
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
(cherry picked from commit
33f33515b503b634d9fbc57dda7123ea9cf23fc6)
Chih-Hung Hsieh [Thu, 23 Apr 2015 21:27:10 +0000 (14:27 -0700)]
Fix opcode to compile with both gcc and llvm.
BUG:
17302991
Change-Id: I31febd9ad24312388068803ce247b295bd73b607
(cherry picked from commit
0a93df369cf3f44d40ca1f0cb4a58aeab42fb39c)
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
(cherry picked from commit
4e8ef698d0d76be3f8d75de32701e6e6327c1fbd)
Dmitriy Ivanov [Fri, 15 May 2015 04:28:21 +0000 (21:28 -0700)]
Remove -z global workaround for target x86
Change-Id: I08e75a1c7437c97e4af59316d2c14c7fa3f65e03
(cherry picked from commit
933332462d37dfa121fa691095cdce218a0139bf)
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
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.
Bug: http://b/
20501816
Change-Id: I248c40b8c2fc95f1938a6edfc245c81847fc44af
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
(cherry picked from commit
0346ad7a4fb6e253317577ee8b9cc79d958f4349)
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
(cherry picked from commit
697bd9fd38ab078a117ad9a5777cf286c467b9b9)
Elliott Hughes [Tue, 12 May 2015 17:44:37 +0000 (10:44 -0700)]
Update NOTICE files (the second time today).
Change-Id: Ifb031d29ee697ee0682bd651e0081493e8016e67
(cherry picked from commit
f58ac87182da214c7cdd697a4fa09aeb7b995305)
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
(cherry picked from commit
c69ace87ec110a91005bdf19dbafeb355f399c06)
Elliott Hughes [Tue, 12 May 2015 17:29:10 +0000 (17:29 +0000)]
Merge "Update NOTICE files." into mnc-dev
Elliott Hughes [Tue, 12 May 2015 17:09:01 +0000 (10:09 -0700)]
Update NOTICE files.
Change-Id: I4e170118abf452dd87ffe79d343ba1e2b53955de
Yabin Cui [Sat, 9 May 2015 00:07:45 +0000 (00:07 +0000)]
Merge "Fix timer flaky test in lollipop-mr1-cts-dev." into lollipop-mr1-cts-dev
Yabin Cui [Fri, 8 May 2015 19:01:52 +0000 (12:01 -0700)]
Fix timer flaky test in lollipop-mr1-cts-dev.
It is partically cherry-pick from https://android-review.googlesource.com/#/c/123410/.
And as lollipop-mr1-cts-dev still uses stlport, <stdatomic.h> is used instead of <atomic>.
Bug:
20677618
Change-Id: I952a6fd074facc4227c955fecf3ecbfbbaec4193
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
(cherry picked from commit
88e777d6f46709abebab88421e8c4ea7a9e3d9c4)
Dan Albert [Fri, 8 May 2015 17:01:26 +0000 (17:01 +0000)]
Merge changes from topic 'blobs' into mnc-dev
* changes:
Revert "Fix volantis boot."
Revert "Fix clang build."
Revert "Try again to fix clang build."
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.
(cherry picked from commit
7c2c01d681d7f2faa256a263996a35ac3edc94b3)
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.
(cherry picked from commit
6f0d7005f9bc6d293e5cfcd60c13a6af0ffa99fc)
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
(cherry picked from commit
f920f821e27c845d2de54c1c92c3ab74587ed31a)
Andres Morales [Fri, 8 May 2015 15:00:41 +0000 (15:00 +0000)]
Merge "remove rootdir build.prop" into mnc-dev
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
(cherry picked from commit
ce16a53d393512336f30c21a244afd70b7d57cf6)
Andres Morales [Thu, 7 May 2015 22:15:46 +0000 (15:15 -0700)]
remove rootdir build.prop
merge with default.prop
Change-Id: I6cff4527dec2b31bdde42ec26c42ef2782f8deb4
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
(cherry picked from commit
e543c7612e97c4c0f11143b8fcd2fff46364f936)
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
(cherry picked from commit
3edb9182ff2fddfa2d835aab0cad151616f2eac5)
Dmitriy Ivanov [Tue, 5 May 2015 23:29:28 +0000 (16:29 -0700)]
Move pthread_atfork_dlclose test out of static lib
Bug: http://b/
20858755
Change-Id: I0d84e8b43dc33902d75af18db6b7c8e0b619d718
(cherry picked from commit
5624a6a1e52ff959b0f88765d38f190700422773)
Dmitriy Ivanov [Wed, 6 May 2015 18:05:27 +0000 (11:05 -0700)]
VersionTracker: Ignore libraries without soname
Bug: http://b/
20872443
Change-Id: I7bd076885c1feae39af6ea64c9442bcc5ae5a1dc
Dmitriy Ivanov [Tue, 5 May 2015 02:30:49 +0000 (19:30 -0700)]
Fix protected symbol lookups for mips
Bug: http://b/
20694161
Change-Id: I5cc58034f9776e1db9cddc34abe48ef85f6048f4
(cherry picked from commit
dbe26fdcc7de503539837467299b96c4a93084cc)
Dmitriy Ivanov [Mon, 4 May 2015 18:11:23 +0000 (11:11 -0700)]
Do not adjust PT_GNU_STACK segment
Bug: http://b/
20687795
Bug: http://b/
18051137
Change-Id: Ie8af3892cfbebcc0249e7981284c4ad97ff40317
Dmitriy Ivanov [Fri, 1 May 2015 03:17:03 +0000 (20:17 -0700)]
Lookup version info when relocating mips got
Bug: http://b/
20693971
Bug: http://b/
20139821
Change-Id: I28bd3bc44dafe048761b2c598facfe20320128c4
(cherry picked from commit
f39cb63603da949325b4d186e870d0c3de01eb30)
Dmitriy Ivanov [Fri, 1 May 2015 02:49:19 +0000 (19:49 -0700)]
Refactoring: move VersionTracker to link_image
Use one instance of VersionTracker per link (instead of 2).
Change-Id: I6860013df65f5969975c82ebdae8bd90a82e0a82
(cherry picked from commit
7e4bbbae4a1e2034e6fa47ac2b0e1e7ca970acf0)
Neil Fuller [Fri, 1 May 2015 08:18:13 +0000 (08:18 +0000)]
Merge "Update to tzdata 2015d" into mnc-dev
Dmitriy Ivanov [Thu, 30 Apr 2015 23:11:48 +0000 (16:11 -0700)]
Refactoring: extract lookup_version_info(..)
Change-Id: I47f9c21a1738dc520fd83281c8227dc3a7e79650
(cherry picked from commit
31b408d2c2e070c35838e7859ca4a4e5eb0c45fc)
Mark Salyzyn [Wed, 29 Apr 2015 14:21:36 +0000 (07:21 -0700)]
bionic: fortify comments in _system_properties.h
(Cherry pick from commit
c3f4c964a3326ba81e1d61ebc47980f787dfcf24)
Change-Id: I2ef8fb7ae5ae03d5d2a50b5a417d585710099760
Neil Fuller [Tue, 28 Apr 2015 16:03:13 +0000 (17:03 +0100)]
Update to tzdata 2015d
Changes affecting future time stamps
Egypt will not observe DST in 2015 and will consider canceling it
permanently. For now, assume no DST indefinitely.
(Thanks to Ahmed Nazmy and Tim Parenti.)
Changes affecting past time stamps
America/Whitehorse switched from UTC-9 to UTC-8 on 1967-05-28, not
1966-07-01. Also, Yukon's time zone history is documented better.
(Thanks to Brian Inglis and Dennis Ferguson.)
Change affecting past and future time zone abbreviations
The abbreviations for Hawaii-Aleutian standard and daylight times
have been changed from HAST/HADT to HST/HDT, as per US Government
Printing Office style. This affects only America/Adak since 1983,
as America/Honolulu was already using the new style.
Bug:
20551453
(cherry-picked from commit
520cbf51b11470d1ca70a4dcd90bc12042c25b8a)
Change-Id: I60d3b683aeccbc44bd038ff6aebd75045809b1c5
Dmitriy Ivanov [Thu, 30 Apr 2015 02:34:51 +0000 (19:34 -0700)]
Adjust DT_MIPS_RLD_MAP2 value
DT_MIPS_RLD_MAP2 stores the difference between dynamic
entry address and the address of the _r_debug (used by GDB)
since the dynamic section and target address are on the
different sides of the hole it needs to be adjusted accordingly
Bug: http://b/
20658994
Bug: http://b/
18051137
Change-Id: I4c5e379e8a4c68f029467df6dc660f81a7013a09
(cherry picked from commit
18c935ceabb54a32aff42f99c6d20680ac333157)
Dmitriy Ivanov [Tue, 28 Apr 2015 22:49:26 +0000 (15:49 -0700)]
linker: initialize system properties
Bug: http://b/
20567629
Bug: https://code.google.com/p/chromium/issues/detail?id=478886
Change-Id: I8d2d89b749015e7fcd6e7ea646911f2e617dd1ba
(cherry picked from commit
b4e5067cab9f17fa76bd7695f41a0b5070e10df8)
Dmitriy Ivanov [Wed, 29 Apr 2015 21:41:06 +0000 (14:41 -0700)]
Fix mips relocation to use load_bias as intended
Bug: http://b/
20658994
Change-Id: I5a15605fe34db359e26d563e13841ae993083c4a
(cherry picked from commit
0373d4f47342e0a6f146af9023a146b0b707442b)
Dmitriy Ivanov [Wed, 29 Apr 2015 01:09:53 +0000 (18:09 -0700)]
Fix LD_PRELOAD for dlopen()
We did not set DF_1_GLOBAL flag for LD_PRELOADed
libraries which led to the situation when ld_preloads
where ignored during on dlopen()
Change-Id: I696b3b2506a8ed4c0984ad2c803210a7a4f8e686
(cherry picked from commit
f8093a9485402584f75b774ddf2ca051fa9b8aad)
Jeff Brown [Wed, 29 Apr 2015 01:17:56 +0000 (01:17 +0000)]
Merge "Add float support to binary event log." into mnc-dev
Jeff Brown [Tue, 28 Apr 2015 21:35:45 +0000 (14:35 -0700)]
Add float support to binary event log.
Bug:
20664753
Change-Id: I6e43c07daa727c19d87f5192bb719af63dd93654
Mark Salyzyn [Fri, 24 Apr 2015 16:31:32 +0000 (09:31 -0700)]
bionic: add __system_property_area_serial()
Adds a new _internal_ function. Provide a global serial number to
support more efficient private caching algorithms. This allows
to skip re-running the __system_property_find() call on misses until
there is a global change in the properties. This call is a read
barrier, the property data to be read following this call will be
read sequentially and up to date.
(Cherry pick from
bfd65279a5a9018b01f71773270e462f1b9a7768)
Bug:
19544788
Change-Id: I58e6a92baa0f3e8e7b9ec79b10af6d56407dab48
Dmitriy Ivanov [Tue, 28 Apr 2015 21:52:47 +0000 (14:52 -0700)]
Do not pack relocations for libc.so
Bug: http://b/
20645321
Bug: http://b/
20655855
Change-Id: Ia4470e0a6d388a7f8445c7f7f9a5639689c0fe32
Dmitriy Ivanov [Tue, 28 Apr 2015 20:34:16 +0000 (13:34 -0700)]
linker: use libc's environ variable to store envp
This is to make getenv() work correctly.
Bug: http://b/
20567629
(cherry picked from commit
a85bcc2e99739420b5b4f9a5c337af1d26ac652b)
Change-Id: I7c2289279b331793335029dc17a792d416efff4b
Neil Fuller [Fri, 24 Apr 2015 12:56:11 +0000 (13:56 +0100)]
Update to tzdata 2015c
Changes affecting future time stamps
Egypt's spring-forward transition is at 24:00 on April's last Thursday,
not 00:00 on April's last Friday. 2015's transition will therefore be on
Thursday, April 30 at 24:00, not Friday, April 24 at 00:00. Similar fixes
apply to 2026, 2037, 2043, etc. (Thanks to Steffen Thorsen.)
Changes affecting past time stamps
The following changes affect some pre-1991 Chile-related time stamps
in America/Santiago, Antarctica/Palmer, and Pacific/Easter.
The 1910 transition was January 10, not January 1.
The 1918 transition was September 10, not September 1.
The UTC-4 time observed from 1932 to 1942 is now considered to be
standard time, not year-round DST.
Santiago observed DST (UTC-3) from 1946-07-15 through 1946-08-31,
then reverted to standard time, then switched its time zone to
UTC-5 on 1947-04-01.
Assume transitions before 1968 were at 00:00, since we have no data
saying otherwise.
The spring 1988 transition was 1988-10-09, not 1988-10-02.
The fall 1990 transition was 1990-03-11, not 1990-03-18.
Assume no UTC offset change for Pacific/Easter on 1890-01-01,
and omit all transitions on Pacific/Easter from 1942 through 1946
since we have no data suggesting that they existed.
One more zone has been turned into a link, as it differed
from an existing zone only for older time stamps. As usual,
this change affects UTC offsets in pre-1970 time stamps only.
The zone's old contents have been moved to the 'backzone' file.
The affected zone is America/Montreal.
Bug:
20287125
(cherry-picked from commit
d2177404e28290064e087ecb2655e5fdcb9057e5)
Change-Id: I55224cc63b314a8e4c2f1c83f8bc4921316c8e4d
Dmitriy Ivanov [Tue, 28 Apr 2015 01:53:27 +0000 (18:53 -0700)]
Reduce p_align for program header to page size.
Having p_align > page_size leads to the situation when striping
packed executables results in unnecessary p_vaddr adjustments.
And it also may result (with probability 1 - 1/sizeof(uintptr_t)) in
misaligned segments following .dynstr
Bug: http://b/
20629834
Bug: http://b/
18051137
(cherry picked from commit
b293969c6d4acede62ac7b035dcb598e63574ca0)
Change-Id: I2fb15cf5cb52fada6511d5af93df099fc2cbf7ba
Nick Kralevich [Sun, 26 Apr 2015 18:39:37 +0000 (18:39 +0000)]
am
bb4961cd: am
1d76f1cc: Merge "add a fortified implementation of realpath"
* commit '
bb4961cd4f0348b5e88bdf81dded7b63d1aadb0b':
add a fortified implementation of realpath
Nick Kralevich [Sun, 26 Apr 2015 02:44:29 +0000 (02:44 +0000)]
am
1d76f1cc: Merge "add a fortified implementation of realpath"
* commit '
1d76f1cc8be1f40141adac6147cd51061f1ee0b4':
add a fortified implementation of realpath
Nick Kralevich [Sun, 26 Apr 2015 02:23:03 +0000 (02:23 +0000)]
Merge "add a fortified implementation of realpath"
Nick Kralevich [Sat, 25 Apr 2015 22:00:20 +0000 (22:00 +0000)]
am
73621d02: am
42502d70: Merge "add fortified memchr/memrchr implementations"
* commit '
73621d02ec3ff45315ee6ddff534a46309723baf':
add fortified memchr/memrchr implementations
Nick Kralevich [Sat, 25 Apr 2015 21:41:45 +0000 (21:41 +0000)]
am
42502d70: Merge "add fortified memchr/memrchr implementations"
* commit '
42502d702e1625c9f3337f7a18ea5fc4cfc6090c':
add fortified memchr/memrchr implementations
Nick Kralevich [Sat, 25 Apr 2015 21:29:56 +0000 (21:29 +0000)]
Merge "add fortified memchr/memrchr implementations"
Dmitriy Ivanov [Sat, 25 Apr 2015 20:04:32 +0000 (20:04 +0000)]
am
a6441765: am
2eaff078: Merge "Include pthread_atfork.h to mips64 crtbegin"
* commit '
a644176578e73b0ab1bf6adfed6bba944d6e7b00':
Include pthread_atfork.h to mips64 crtbegin
Dmitriy Ivanov [Sat, 25 Apr 2015 19:42:22 +0000 (19:42 +0000)]
am
2eaff078: Merge "Include pthread_atfork.h to mips64 crtbegin"
* commit '
2eaff07839393485fec522fd0bd17bbf1af72ca6':
Include pthread_atfork.h to mips64 crtbegin
Dmitriy Ivanov [Sat, 25 Apr 2015 19:20:00 +0000 (19:20 +0000)]
Merge "Include pthread_atfork.h to mips64 crtbegin"
Dmitriy Ivanov [Sat, 25 Apr 2015 18:59:32 +0000 (11:59 -0700)]
Include pthread_atfork.h to mips64 crtbegin
Bug: http://b/
20339788
Change-Id: I2a8c7881f90a05ca768cb9b4c2f8b07c74c64469
Elliott Hughes [Sat, 25 Apr 2015 18:44:05 +0000 (18:44 +0000)]
am
ea46b36f: am
9a2744df: Merge "Fix POSIX timer thread naming."
* commit '
ea46b36f894477755487d8caec15a8f35f81ac2c':
Fix POSIX timer thread naming.
Elliott Hughes [Sat, 25 Apr 2015 18:23:51 +0000 (18:23 +0000)]
am
9a2744df: Merge "Fix POSIX timer thread naming."
* commit '
9a2744df301c509ea48361016ab441c792ec6d5a':
Fix POSIX timer thread naming.
Elliott Hughes [Sat, 25 Apr 2015 18:01:18 +0000 (18:01 +0000)]
Merge "Fix POSIX timer thread naming."
Elliott Hughes [Sat, 25 Apr 2015 17:05:24 +0000 (10:05 -0700)]
Fix POSIX timer thread naming.
Spencer Low points out that we never actually set a name because the constant
part of the string was longer than the kernel's maximum, and the kernel
rejects long names rather than truncate.
Shorten the fixed part of the string while still keeping it meaningful. 9999
POSIX timers should be enough for any process...
Bug: https://code.google.com/p/android/issues/detail?id=170089
Change-Id: Ic05f07584c1eac160743519091a540ebbf8d7eb1
Dmitriy Ivanov [Sat, 25 Apr 2015 06:14:51 +0000 (06:14 +0000)]
am
f41ab7fa: am
2c256a0f: Merge "Unregister pthread_atfork handlers on dlclose()"
* commit '
f41ab7fa68cfab33881a97d25f1c046e26e35d99':
Unregister pthread_atfork handlers on dlclose()
Dmitriy Ivanov [Sat, 25 Apr 2015 05:52:51 +0000 (05:52 +0000)]
am
2c256a0f: Merge "Unregister pthread_atfork handlers on dlclose()"
* commit '
2c256a0f0927abd94f2210b37c18ead210d30477':
Unregister pthread_atfork handlers on dlclose()
Dmitriy Ivanov [Sat, 25 Apr 2015 05:36:06 +0000 (05:36 +0000)]
Merge "Unregister pthread_atfork handlers on dlclose()"
Dmitriy Ivanov [Sat, 25 Apr 2015 04:49:52 +0000 (04:49 +0000)]
am
504e7605: am
440242f0: Merge "Use bfd linker for x86/x86_64 targets"
* commit '
504e76055c29a3cb7cdbe1e6f731cd3ca9d1a91e':
Use bfd linker for x86/x86_64 targets
Dmitriy Ivanov [Sat, 25 Apr 2015 04:27:52 +0000 (04:27 +0000)]
am
440242f0: Merge "Use bfd linker for x86/x86_64 targets"
* commit '
440242f03805872a0c62528d763e5e98dad9b580':
Use bfd linker for x86/x86_64 targets
Dmitriy Ivanov [Sat, 25 Apr 2015 04:09:42 +0000 (04:09 +0000)]
Merge "Use bfd linker for x86/x86_64 targets"
Dmitriy Ivanov [Sat, 25 Apr 2015 04:05:49 +0000 (21:05 -0700)]
Use bfd linker for x86/x86_64 targets
ld.gold in current toolchain for x86_64
does not support -z global.
Change-Id: Iea2b192f0f0aa998a02adb356fd4eec4e10a1739
Dmitriy Ivanov [Sat, 25 Apr 2015 02:07:39 +0000 (02:07 +0000)]
am
1f4c9067: am
ebfb55e4: Merge "Enable dlsym_df_1_global test for arm/arm64"
* commit '
1f4c9067af716dc9419cb2e33adc3abf9b2dcb2c':
Enable dlsym_df_1_global test for arm/arm64
Dmitriy Ivanov [Sat, 25 Apr 2015 01:10:54 +0000 (01:10 +0000)]
am
ebfb55e4: Merge "Enable dlsym_df_1_global test for arm/arm64"
* commit '
ebfb55e4cdf03473d66eaf5928fb3c3a8b0c2f85':
Enable dlsym_df_1_global test for arm/arm64
Dmitriy Ivanov [Fri, 21 Nov 2014 04:47:02 +0000 (20:47 -0800)]
Unregister pthread_atfork handlers on dlclose()
Bug: http://b/
20339788
Change-Id: I874c87faa377645fa9e0752f4fc166d81fd9ef7e
Dmitriy Ivanov [Sat, 25 Apr 2015 00:50:04 +0000 (00:50 +0000)]
Merge "Enable dlsym_df_1_global test for arm/arm64"
Dmitriy Ivanov [Fri, 24 Apr 2015 23:26:03 +0000 (16:26 -0700)]
Enable dlsym_df_1_global test for arm/arm64
Change-Id: I1fdebced93175cb14053e2239e79f97239fc2dc2
Dmitriy Ivanov [Fri, 24 Apr 2015 21:09:41 +0000 (21:09 +0000)]
am
71abd9cc: am
2bb93482: Merge "Exit normally when relocations are already packed."
* commit '
71abd9cc2ffb0c75288f5064e5e5d5a223e15a41':
Exit normally when relocations are already packed.
Dmitriy Ivanov [Fri, 24 Apr 2015 20:05:05 +0000 (20:05 +0000)]
am
2bb93482: Merge "Exit normally when relocations are already packed."
* commit '
2bb93482a7793640205ade2f7316db5b3f5cac19':
Exit normally when relocations are already packed.
Dmitriy Ivanov [Fri, 24 Apr 2015 19:42:39 +0000 (19:42 +0000)]
Merge "Exit normally when relocations are already packed."