OSDN Git Service

android-x86/bionic.git
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

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
(cherry picked from commit 933332462d37dfa121fa691095cdce218a0139bf)

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

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.

Bug: http://b/20501816
Change-Id: I248c40b8c2fc95f1938a6edfc245c81847fc44af
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
(cherry picked from commit 0346ad7a4fb6e253317577ee8b9cc79d958f4349)

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
(cherry picked from commit 697bd9fd38ab078a117ad9a5777cf286c467b9b9)

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
(cherry picked from commit f58ac87182da214c7cdd697a4fa09aeb7b995305)

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
(cherry picked from commit c69ace87ec110a91005bdf19dbafeb355f399c06)

9 years agoMerge "Update NOTICE files." into mnc-dev
Elliott Hughes [Tue, 12 May 2015 17:29:10 +0000 (17:29 +0000)]
Merge "Update NOTICE files." into mnc-dev

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

Change-Id: I4e170118abf452dd87ffe79d343ba1e2b53955de

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
(cherry picked from commit 88e777d6f46709abebab88421e8c4ea7a9e3d9c4)

9 years agoMerge changes from topic 'blobs' into mnc-dev
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."

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.

(cherry picked from commit 7c2c01d681d7f2faa256a263996a35ac3edc94b3)

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.

(cherry picked from commit 6f0d7005f9bc6d293e5cfcd60c13a6af0ffa99fc)

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
(cherry picked from commit f920f821e27c845d2de54c1c92c3ab74587ed31a)

9 years agoMerge "remove rootdir build.prop" into mnc-dev
Andres Morales [Fri, 8 May 2015 15:00:41 +0000 (15:00 +0000)]
Merge "remove rootdir build.prop" into mnc-dev

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
(cherry picked from commit ce16a53d393512336f30c21a244afd70b7d57cf6)

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 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
(cherry picked from commit e543c7612e97c4c0f11143b8fcd2fff46364f936)

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
(cherry picked from commit 3edb9182ff2fddfa2d835aab0cad151616f2eac5)

9 years agoMove pthread_atfork_dlclose test out of static lib
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)

9 years agoVersionTracker: Ignore libraries without soname
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

9 years agoFix protected symbol lookups for mips
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)

9 years agoDo not adjust PT_GNU_STACK segment
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

9 years agoLookup version info when relocating mips got
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)

9 years agoRefactoring: move VersionTracker to link_image
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)

9 years agoMerge "Update to tzdata 2015d" into mnc-dev
Neil Fuller [Fri, 1 May 2015 08:18:13 +0000 (08:18 +0000)]
Merge "Update to tzdata 2015d" into mnc-dev

9 years agoRefactoring: extract lookup_version_info(..)
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)

9 years agobionic: fortify comments in _system_properties.h
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

9 years agoUpdate to tzdata 2015d
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

9 years agoAdjust DT_MIPS_RLD_MAP2 value
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)

9 years agolinker: initialize system properties
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)

9 years agoFix mips relocation to use load_bias as intended
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)

9 years agoFix LD_PRELOAD for dlopen()
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)

9 years agoMerge "Add float support to binary event log." into mnc-dev
Jeff Brown [Wed, 29 Apr 2015 01:17:56 +0000 (01:17 +0000)]
Merge "Add float support to binary event log." into mnc-dev

9 years agoAdd float support to binary event log.
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

9 years agobionic: add __system_property_area_serial()
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

9 years agoDo not pack relocations for libc.so
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

9 years agolinker: use libc's environ variable to store envp
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

9 years agoUpdate to tzdata 2015c
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

9 years agoReduce p_align for program header to page size.
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

9 years agoam bb4961cd: am 1d76f1cc: Merge "add a fortified implementation of realpath"
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

9 years agoam 1d76f1cc: Merge "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

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

9 years agoam 73621d02: am 42502d70: Merge "add fortified memchr/memrchr implementations"
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

9 years agoam 42502d70: Merge "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

9 years agoMerge "add fortified memchr/memrchr implementations"
Nick Kralevich [Sat, 25 Apr 2015 21:29:56 +0000 (21:29 +0000)]
Merge "add fortified memchr/memrchr implementations"

9 years agoam a6441765: am 2eaff078: Merge "Include pthread_atfork.h to mips64 crtbegin"
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

9 years agoam 2eaff078: Merge "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

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

9 years agoInclude 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

9 years agoam ea46b36f: am 9a2744df: Merge "Fix POSIX timer thread naming."
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.

9 years agoam 9a2744df: Merge "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.

9 years agoMerge "Fix POSIX timer thread naming."
Elliott Hughes [Sat, 25 Apr 2015 18:01:18 +0000 (18:01 +0000)]
Merge "Fix POSIX timer thread naming."

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

9 years agoam f41ab7fa: am 2c256a0f: Merge "Unregister pthread_atfork handlers on dlclose()"
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()

9 years agoam 2c256a0f: Merge "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()

9 years agoMerge "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()"

9 years agoam 504e7605: am 440242f0: Merge "Use bfd linker for x86/x86_64 targets"
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

9 years agoam 440242f0: Merge "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

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

9 years agoUse 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

9 years agoam 1f4c9067: am ebfb55e4: Merge "Enable dlsym_df_1_global test for arm/arm64"
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

9 years agoam ebfb55e4: Merge "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

9 years agoUnregister pthread_atfork handlers on dlclose()
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

9 years agoMerge "Enable dlsym_df_1_global test for arm/arm64"
Dmitriy Ivanov [Sat, 25 Apr 2015 00:50:04 +0000 (00:50 +0000)]
Merge "Enable dlsym_df_1_global test for arm/arm64"

9 years agoEnable 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

9 years agoam 71abd9cc: am 2bb93482: Merge "Exit normally when relocations are already packed."
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.

9 years agoam 2bb93482: Merge "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.

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

9 years agoExit normally when relocations are already packed.
Dmitriy Ivanov [Fri, 24 Apr 2015 19:39:14 +0000 (12:39 -0700)]
Exit normally when relocations are already packed.

Bug: http://b/18051137
Change-Id: Idfffac5fe965e3cdeabe6d3b2dcd8c275c6ae5df

9 years agoam e5d3ad4a: am 6c63ee41: Merge "Revert "Unregister pthread_atfork handlers on dlclos...
Dimitry Ivanov [Fri, 24 Apr 2015 04:32:20 +0000 (04:32 +0000)]
am e5d3ad4a: am 6c63ee41: Merge "Revert "Unregister pthread_atfork handlers on dlclose()""

* commit 'e5d3ad4abe6331955c172a2151d19e64f3c39549':
  Revert "Unregister pthread_atfork handlers on dlclose()"

9 years agoam 6c63ee41: Merge "Revert "Unregister pthread_atfork handlers on dlclose()""
Dimitry Ivanov [Fri, 24 Apr 2015 04:07:13 +0000 (04:07 +0000)]
am 6c63ee41: Merge "Revert "Unregister pthread_atfork handlers on dlclose()""

* commit '6c63ee41ac5a246fb46c51753cd4d50ccae0dd8f':
  Revert "Unregister pthread_atfork handlers on dlclose()"

9 years agoMerge "Revert "Unregister pthread_atfork handlers on dlclose()""
Dimitry Ivanov [Fri, 24 Apr 2015 03:49:30 +0000 (03:49 +0000)]
Merge "Revert "Unregister pthread_atfork handlers on dlclose()""

9 years agoRevert "Unregister pthread_atfork handlers on dlclose()"
Dimitry Ivanov [Fri, 24 Apr 2015 03:45:59 +0000 (03:45 +0000)]
Revert "Unregister pthread_atfork handlers on dlclose()"

 The visibility control in pthread_atfork.h is incorrect.
 It breaks 64bit libc.so by hiding pthread_atfork.

 This reverts commit 6df122f8528f9b9fcf7dfea14ae98b0ef66274e1.

Change-Id: I21e4b344d500c6f6de0ccb7420b916c4e233dd34

9 years agoam 83ebe0c3: am 41ebceaf: Merge "Exit normally when packing relocs saves no space."
Dmitriy Ivanov [Thu, 23 Apr 2015 23:44:36 +0000 (23:44 +0000)]
am 83ebe0c3: am 41ebceaf: Merge "Exit normally when packing relocs saves no space."

* commit '83ebe0c37b5338d0940d45497144fe8aa4a4bfea':
  Exit normally when packing relocs saves no space.

9 years agoam 24ffcb3e: am e3ecedd3: Merge "Remove jemalloc.a from libc_nomalloc.a"
Dmitriy Ivanov [Thu, 23 Apr 2015 23:16:05 +0000 (23:16 +0000)]
am 24ffcb3e: am e3ecedd3: Merge "Remove jemalloc.a from libc_nomalloc.a"

* commit '24ffcb3ec6e488b469ebe148361915a3d75b9e3d':
  Remove jemalloc.a from libc_nomalloc.a

9 years agoam 347b83ff: am 3da9373f: Merge "Simplify close(2) EINTR handling."
Elliott Hughes [Thu, 23 Apr 2015 23:16:04 +0000 (23:16 +0000)]
am 347b83ff: am 3da9373f: Merge "Simplify close(2) EINTR handling."

* commit '347b83ff9c6d53322b8bfbaac05f4a71b2855bbb':
  Simplify close(2) EINTR handling.

9 years agoam 4d9c009f: am dc405b52: Merge "Unregister pthread_atfork handlers on dlclose()"
Dmitriy Ivanov [Thu, 23 Apr 2015 23:16:02 +0000 (23:16 +0000)]
am 4d9c009f: am dc405b52: Merge "Unregister pthread_atfork handlers on dlclose()"

* commit '4d9c009faeb091766139621be118acd04dd8b1e2':
  Unregister pthread_atfork handlers on dlclose()

9 years agoam 41ebceaf: Merge "Exit normally when packing relocs saves no space."
Dmitriy Ivanov [Thu, 23 Apr 2015 23:13:57 +0000 (23:13 +0000)]
am 41ebceaf: Merge "Exit normally when packing relocs saves no space."

* commit '41ebceaf3ad392b4a3f40d96d5750d95ef206546':
  Exit normally when packing relocs saves no space.

9 years agoMerge "Exit normally when packing relocs saves no space."
Dmitriy Ivanov [Thu, 23 Apr 2015 22:55:32 +0000 (22:55 +0000)]
Merge "Exit normally when packing relocs saves no space."

9 years agoExit normally when packing relocs saves no space.
Dmitriy Ivanov [Thu, 23 Apr 2015 20:47:39 +0000 (13:47 -0700)]
Exit normally when packing relocs saves no space.

Bug: http://b/18051137
Change-Id: I43ea5678a677e5d39fb54fafcf3a2f3a252c79b0

9 years agoam e3ecedd3: Merge "Remove jemalloc.a from libc_nomalloc.a"
Dmitriy Ivanov [Thu, 23 Apr 2015 22:12:41 +0000 (22:12 +0000)]
am e3ecedd3: Merge "Remove jemalloc.a from libc_nomalloc.a"

* commit 'e3ecedd306ec16ecb31c6b7d6f9fdcb65c03b70f':
  Remove jemalloc.a from libc_nomalloc.a

9 years agoMerge "Remove jemalloc.a from libc_nomalloc.a"
Dmitriy Ivanov [Thu, 23 Apr 2015 21:50:14 +0000 (21:50 +0000)]
Merge "Remove jemalloc.a from libc_nomalloc.a"

9 years agoam 3da9373f: Merge "Simplify close(2) EINTR handling."
Elliott Hughes [Thu, 23 Apr 2015 21:33:07 +0000 (21:33 +0000)]
am 3da9373f: Merge "Simplify close(2) EINTR handling."

* commit '3da9373fe0ada19d13c6c3f9831dee93ec0ba7a6':
  Simplify close(2) EINTR handling.

9 years agoMerge "Simplify close(2) EINTR handling."
Elliott Hughes [Thu, 23 Apr 2015 21:14:24 +0000 (21:14 +0000)]
Merge "Simplify close(2) EINTR handling."

9 years agoRemove jemalloc.a from libc_nomalloc.a
Dmitriy Ivanov [Thu, 23 Apr 2015 19:24:43 +0000 (12:24 -0700)]
Remove jemalloc.a from libc_nomalloc.a

Change-Id: I86edc1a6cf3a26c46e6daef2c859459c1b0f29af

9 years agoSimplify close(2) EINTR handling.
Elliott Hughes [Thu, 23 Apr 2015 04:40:38 +0000 (21:40 -0700)]
Simplify close(2) EINTR handling.

This doesn't affect code like Chrome that correctly ignores EINTR on
close, makes code that tries TEMP_FAILURE_RETRY work (where before it might
have closed a different fd and appeared to succeed, or had a bogus EBADF),
and makes "goto fail" code work (instead of mistakenly assuming that EINTR
means that the close failed).

Who loses? Anyone actively trying to detect that they caught a signal while
in close(2). I don't think those people exist, and I think they have better
alternatives available.

Bug: https://code.google.com/p/chromium/issues/detail?id=269623
Bug: http://b/20501816
Change-Id: I11e2f66532fe5d1b0082b2433212e24bdda8219b

9 years agoam dc405b52: Merge "Unregister pthread_atfork handlers on dlclose()"
Dmitriy Ivanov [Thu, 23 Apr 2015 09:56:57 +0000 (09:56 +0000)]
am dc405b52: Merge "Unregister pthread_atfork handlers on dlclose()"

* commit 'dc405b5230c3d72107b57798a2c23b1a46069f4d':
  Unregister pthread_atfork handlers on dlclose()

9 years agoMerge "Unregister pthread_atfork handlers on dlclose()"
Dmitriy Ivanov [Thu, 23 Apr 2015 08:05:25 +0000 (08:05 +0000)]
Merge "Unregister pthread_atfork handlers on dlclose()"

9 years agoUnregister pthread_atfork handlers on dlclose()
Dmitriy Ivanov [Fri, 21 Nov 2014 04:47:02 +0000 (20:47 -0800)]
Unregister pthread_atfork handlers on dlclose()

Change-Id: I326fdf6bb06bed12743f08980b5c69d849c015b8

9 years agoam 8f01955d: am ff181089: Merge "Always use signed leb128 decoder"
Dmitriy Ivanov [Thu, 23 Apr 2015 00:56:57 +0000 (00:56 +0000)]
am 8f01955d: am ff181089: Merge "Always use signed leb128 decoder"

* commit '8f01955d1ef985d79f581f2913eea30cb0258bb4':
  Always use signed leb128 decoder

9 years agoam 511e09c5: am 9ceec1a7: Merge "Always use signed leb128 encoding"
Dmitriy Ivanov [Thu, 23 Apr 2015 00:06:12 +0000 (00:06 +0000)]
am 511e09c5: am 9ceec1a7: Merge "Always use signed leb128 encoding"

* commit '511e09c5282bdf68c2d3aaa85bc93cbc9ad4449b':
  Always use signed leb128 encoding

9 years agoam ff181089: Merge "Always use signed leb128 decoder"
Dmitriy Ivanov [Wed, 22 Apr 2015 22:38:01 +0000 (22:38 +0000)]
am ff181089: Merge "Always use signed leb128 decoder"

* commit 'ff18108981aa1fa73696d6db1919cdc38788bd4e':
  Always use signed leb128 decoder

9 years agoMerge "Always use signed leb128 decoder"
Dmitriy Ivanov [Wed, 22 Apr 2015 22:15:47 +0000 (22:15 +0000)]
Merge "Always use signed leb128 decoder"

9 years agoAlways use signed leb128 decoder
Dmitriy Ivanov [Wed, 22 Apr 2015 20:10:04 +0000 (13:10 -0700)]
Always use signed leb128 decoder

  Relocation packer no longer encodes relocation tables
  using unsigned leb128: https://android-review.googlesource.com/147745

Bug: http://b/18051137
Change-Id: I620b7188e5f3dd9d5123431aa1fc7feca76be607

9 years agoam 9ceec1a7: Merge "Always use signed leb128 encoding"
Dmitriy Ivanov [Wed, 22 Apr 2015 20:23:01 +0000 (20:23 +0000)]
am 9ceec1a7: Merge "Always use signed leb128 encoding"

* commit '9ceec1a75dfcc8b032aa3a974b0cfc3bff5a306e':
  Always use signed leb128 encoding

9 years agoam 423a0e91: am 457c34ad: Merge "Update the search path for libclang.so"
Tao Bao [Wed, 22 Apr 2015 20:18:52 +0000 (20:18 +0000)]
am 423a0e91: am 457c34ad: Merge "Update the search path for libclang.so"

* commit '423a0e9123a14f7b716268d7883b61b11ab90152':
  Update the search path for libclang.so

9 years agoam 9f49c34e: am 913fe559: Merge "Statically link libc++ for prebuilts"
Dmitriy Ivanov [Wed, 22 Apr 2015 20:18:48 +0000 (20:18 +0000)]
am 9f49c34e: am 913fe559: Merge "Statically link libc++ for prebuilts"

* commit '9f49c34eecc7407fce674a82ae3a6126911efa34':
  Statically link libc++ for prebuilts

9 years agoMerge "Always use signed leb128 encoding"
Dmitriy Ivanov [Wed, 22 Apr 2015 20:02:03 +0000 (20:02 +0000)]
Merge "Always use signed leb128 encoding"

9 years agoAlways use signed leb128 encoding
Dmitriy Ivanov [Tue, 21 Apr 2015 22:03:04 +0000 (15:03 -0700)]
Always use signed leb128 encoding

 According to runs on /system/lib there using
 unsigned leb128 does not save us any additional
 space. In order to keep packing as simple as
 possible switch to using signed leb128 for
 everything.

Bug: http://b/18051137
Change-Id: I1a47cb9eb2175895b3c3f7c13b4c6b1060de86c0