OSDN Git Service

android-x86/bionic.git
8 years agoFix incorrect size of array.
Christopher Ferris [Wed, 24 Feb 2016 02:46:53 +0000 (02:46 +0000)]
Fix incorrect size of array.
am: 1724535fb4

* commit '1724535fb4ebf6b6ff1b3ac06f7dcaf5cb36da78':
  Fix incorrect size of array.

8 years agomalloc_debug: reread /proc/pid/maps when entry is missing
Colin Cross [Wed, 24 Feb 2016 02:46:44 +0000 (02:46 +0000)]
malloc_debug: reread /proc/pid/maps when entry is missing
am: b7ff533ed2

* commit 'b7ff533ed28f82c0981b83ae80e8bc8e3f350d0f':
  malloc_debug: reread /proc/pid/maps when entry is missing

8 years agoAdd backtrace_string and export to libmemunreachable
Colin Cross [Wed, 24 Feb 2016 02:46:36 +0000 (02:46 +0000)]
Add backtrace_string and export to libmemunreachable
am: 6deb3042df  -s ours

* commit '6deb3042df87f8569fb430dbf5f140f6a694ddfd':
  Add backtrace_string and export to libmemunreachable

8 years agoExport malloc_backtrace
Colin Cross [Wed, 24 Feb 2016 02:26:05 +0000 (02:26 +0000)]
Export malloc_backtrace
am: d6c9b44091

* commit 'd6c9b44091a8865a3b61ada247dd9abf4d6b8705':
  Export malloc_backtrace

8 years agoExport malloc_iterate and friends
Colin Cross [Wed, 24 Feb 2016 02:25:57 +0000 (02:25 +0000)]
Export malloc_iterate and friends
am: c40577f740  -s ours

* commit 'c40577f740ae4f66cdba4b2137668fb3114bb99d':
  Export malloc_iterate and friends

8 years agomalloc_debug: reset TrackData mutex after fork
Colin Cross [Wed, 24 Feb 2016 02:20:24 +0000 (02:20 +0000)]
malloc_debug: reset TrackData mutex after fork
am: d863530ecc

* commit 'd863530eccceeae00c1c5d4968550a052f13ec2c':
  malloc_debug: reset TrackData mutex after fork

8 years agoFix incorrect size of array.
Christopher Ferris [Sat, 20 Feb 2016 02:13:29 +0000 (18:13 -0800)]
Fix incorrect size of array.

When using sscanf and "%4s", the array passed in must include space for
a nul terminator.

Bug: 26739265

(cherry picked from commit f499dc91e774db4cb9d21f9a7c34704fa9b7ed39)

Change-Id: I8aac6fca3e5bc7a6399e2ed9c6ba4140a55ffdee

8 years agomalloc_debug: reread /proc/pid/maps when entry is missing
Colin Cross [Mon, 8 Feb 2016 22:29:03 +0000 (14:29 -0800)]
malloc_debug: reread /proc/pid/maps when entry is missing

Reread /proc/pid/maps on demand in case a new library has been loaded.

Bug: 27208635
(cherry picked from commit d75d4bea54a788dada3f2538a33cc491e4c56ed4)

Change-Id: I80140cf57fa3b3e93d51dbe7b7a27595b72ee694

8 years agoAdd backtrace_string and export to libmemunreachable
Colin Cross [Sat, 6 Feb 2016 00:17:39 +0000 (16:17 -0800)]
Add backtrace_string and export to libmemunreachable

Add backtrace_string to convert a malloc_debug backtrace to a string.
Also move the backtrace functions to libc_malloc_debug_backtrace so that
libmemunreachable can reuse them.

Bug: 27208635
(cherry picked from commit 2c75991359df165ca7cc7a6213fb227c0b5ed87c)

Change-Id: Ia93aaf010fbce1ace058439427066ea2dfd8bd13

8 years agoExport malloc_backtrace
Colin Cross [Tue, 2 Feb 2016 19:57:54 +0000 (11:57 -0800)]
Export malloc_backtrace

Bug: 27208635
(cherry picked from commit 2d4721c0c57fe2f7c1e1b40df4763a561b3cf856)

Change-Id: Ida926cabb706dfd962b692ba1775da332f68488f

8 years agoExport malloc_iterate and friends
Colin Cross [Fri, 29 Jan 2016 20:48:18 +0000 (12:48 -0800)]
Export malloc_iterate and friends

Export malloc_iterate, malloc_enable, and malloc_disable to be used by
libmemunreachable.

Bug: 27208635
(cherry picked from commit 869691c6f7691dd5bf343617aa185c32e0d3d160)

Change-Id: Ifa44421a84ac3be6a57fac28c4da501febe88c28

8 years agomalloc_debug: reset TrackData mutex after fork
Colin Cross [Mon, 8 Feb 2016 06:51:15 +0000 (22:51 -0800)]
malloc_debug: reset TrackData mutex after fork

Add a pthread_atfork handler to malloc_debug to lock the TrackData mutex
during fork and reset it in the child.  Ensures that the TrackData is
consistent when forking from a multi-threaded process, and that the
mutex is in a defined state in the child.

Bug: 27208635
(cherry picked from commit 7a28a3cf1f8df36e30724e8b4021cddde0596118)

Change-Id: I84bc67be09b8b767e1cf2f14141e2ae8dc4fb462

8 years agoMerge "Remove unused libm_clang variable." am: e0959b4b16
Stephen Hines [Tue, 23 Feb 2016 22:22:00 +0000 (22:22 +0000)]
Merge "Remove unused libm_clang variable." am: e0959b4b16
am: 32db9a85ec

* commit '32db9a85ecf422adf35c860f2cd504314583f44e':
  Remove unused libm_clang variable.

8 years agoMerge "Remove unused libm_clang variable."
Stephen Hines [Tue, 23 Feb 2016 22:13:24 +0000 (22:13 +0000)]
Merge "Remove unused libm_clang variable."
am: e0959b4b16

* commit 'e0959b4b164a26eb9931ed6925c71d7870c063fe':
  Remove unused libm_clang variable.

8 years agoMerge "Remove unused libm_clang variable."
Stephen Hines [Tue, 23 Feb 2016 22:05:25 +0000 (22:05 +0000)]
Merge "Remove unused libm_clang variable."

8 years agoFix wrong guard values for 64 bit.
Christopher Ferris [Tue, 23 Feb 2016 19:33:04 +0000 (19:33 +0000)]
Fix wrong guard values for 64 bit.
am: a071f48b1f

* commit 'a071f48b1f2088c4dd1a18dac58834e4488ac563':
  Fix wrong guard values for 64 bit.

8 years agoMerge "Fix wrong guard values for 64 bit." am: 0a84f1a5eb
Christopher Ferris [Tue, 23 Feb 2016 19:30:22 +0000 (19:30 +0000)]
Merge "Fix wrong guard values for 64 bit." am: 0a84f1a5eb
am: 11bd005f7e

* commit '11bd005f7ed110c45138ee6e239f129b765ee801':
  Fix wrong guard values for 64 bit.

8 years agoMerge "Fix wrong guard values for 64 bit."
Christopher Ferris [Tue, 23 Feb 2016 19:25:18 +0000 (19:25 +0000)]
Merge "Fix wrong guard values for 64 bit."
am: 0a84f1a5eb

* commit '0a84f1a5eb1be4a742ec5ce8f0376c692d49bec2':
  Fix wrong guard values for 64 bit.

8 years agoFix wrong guard values for 64 bit.
Christopher Ferris [Tue, 23 Feb 2016 03:14:26 +0000 (19:14 -0800)]
Fix wrong guard values for 64 bit.

I added the code to force alignments of 8 for 32 bit and 16 for 64 bit,
but I missed a couple of tests that failed due to this change. Fix the
failing tests.

Bug: 26739265

(cherry picked from commit 0e2a0265798ed47cbbf6977f0f84cf81d93173a6)

Change-Id: I21c3e26a340df6e427f06625e525b88b19b0cae1

8 years agoMerge "Fix wrong guard values for 64 bit."
Christopher Ferris [Tue, 23 Feb 2016 19:15:57 +0000 (19:15 +0000)]
Merge "Fix wrong guard values for 64 bit."

8 years agoFix wrong guard values for 64 bit.
Christopher Ferris [Tue, 23 Feb 2016 03:14:26 +0000 (19:14 -0800)]
Fix wrong guard values for 64 bit.

I added the code to force alignments of 8 for 32 bit and 16 for 64 bit,
but I missed a couple of tests that failed due to this change. Fix the
failing tests.

Bug: 26739265
Change-Id: Ice9932d1419e59c07483c4c9fcdb84970844f0a6

8 years agoMerge "Fix incorrect size of array." am: f2d516b3f9
Christopher Ferris [Mon, 22 Feb 2016 22:45:41 +0000 (22:45 +0000)]
Merge "Fix incorrect size of array." am: f2d516b3f9
am: 9e6b62dffe

* commit '9e6b62dffe1c26a39bfe2140dcceb070bc720b52':
  Fix incorrect size of array.

8 years agoMerge "Fix incorrect size of array."
Christopher Ferris [Mon, 22 Feb 2016 19:26:10 +0000 (19:26 +0000)]
Merge "Fix incorrect size of array."
am: f2d516b3f9

* commit 'f2d516b3f9ef901991387ee473140ea24feaab48':
  Fix incorrect size of array.

8 years agoMerge "Fix incorrect size of array."
Christopher Ferris [Mon, 22 Feb 2016 18:46:35 +0000 (18:46 +0000)]
Merge "Fix incorrect size of array."

8 years agoFix incorrect size of array.
Christopher Ferris [Sat, 20 Feb 2016 02:13:29 +0000 (18:13 -0800)]
Fix incorrect size of array.

When using sscanf and "%4s", the array passed in must include space for
a nul terminator.

Bug: 26739265
Change-Id: I0140a6100ca370666ae61689087ba41b4914789d

8 years agoRemove unused libm_clang variable.
Stephen Hines [Fri, 19 Feb 2016 09:17:18 +0000 (01:17 -0800)]
Remove unused libm_clang variable.

Bug: http://b/21899249

As part of the cleanup here, this unset/unused variable was missed.

Change-Id: I0e0f2640e2e975f3e154f68509aa791fd22053a9

8 years agoMerge "Improvements to dynamic linker messages" am: b539baab39
Dimitry Ivanov [Fri, 19 Feb 2016 04:49:01 +0000 (04:49 +0000)]
Merge "Improvements to dynamic linker messages" am: b539baab39
am: 582e162a75

* commit '582e162a7547f343a0f4c428dc2cf5f66a05eb58':
  Improvements to dynamic linker messages

8 years agoMerge changes Iac8109b3,I5ad67001,Ic1adb4df,I08a50349 am: c95a4c8196
Colin Cross [Fri, 19 Feb 2016 04:48:53 +0000 (04:48 +0000)]
Merge changes Iac8109b3,I5ad67001,Ic1adb4df,I08a50349 am: c95a4c8196
am: 74c0a68e3e

* commit '74c0a68e3ee5deef1ccd635acac81bb31f36c633':
  malloc_debug: reread /proc/pid/maps when entry is missing
  Add backtrace_string and export to libmemunreachable
  Export malloc_backtrace
  Export malloc_iterate and friends

8 years agoMerge "Improvements to dynamic linker messages"
Dimitry Ivanov [Fri, 19 Feb 2016 02:49:23 +0000 (02:49 +0000)]
Merge "Improvements to dynamic linker messages"
am: b539baab39

* commit 'b539baab398ce20f9add5d6dfbadfdc7abdeb970':
  Improvements to dynamic linker messages

8 years agoMerge "Improvements to dynamic linker messages"
Dimitry Ivanov [Fri, 19 Feb 2016 02:43:47 +0000 (02:43 +0000)]
Merge "Improvements to dynamic linker messages"

8 years agoMerge changes Iac8109b3,I5ad67001,Ic1adb4df,I08a50349
Colin Cross [Fri, 19 Feb 2016 02:34:34 +0000 (02:34 +0000)]
Merge changes Iac8109b3,I5ad67001,Ic1adb4df,I08a50349
am: c95a4c8196

* commit 'c95a4c8196f470f8fb5e616d8e5cc79672752cbb':
  malloc_debug: reread /proc/pid/maps when entry is missing
  Add backtrace_string and export to libmemunreachable
  Export malloc_backtrace
  Export malloc_iterate and friends

8 years agoImprovements to dynamic linker messages
Dimitry Ivanov [Thu, 18 Feb 2016 22:37:44 +0000 (14:37 -0800)]
Improvements to dynamic linker messages

Error messages now include executable name,
also linker doesn't abort if called on itself.

Change-Id: Ia17dd540919544b28062ed71751a1d79ee865206

8 years agoMerge changes Iac8109b3,I5ad67001,Ic1adb4df,I08a50349
Colin Cross [Fri, 19 Feb 2016 01:55:09 +0000 (01:55 +0000)]
Merge changes Iac8109b3,I5ad67001,Ic1adb4df,I08a50349

* changes:
  malloc_debug: reread /proc/pid/maps when entry is missing
  Add backtrace_string and export to libmemunreachable
  Export malloc_backtrace
  Export malloc_iterate and friends

8 years agomalloc_debug: reread /proc/pid/maps when entry is missing
Colin Cross [Mon, 8 Feb 2016 22:29:03 +0000 (14:29 -0800)]
malloc_debug: reread /proc/pid/maps when entry is missing

Reread /proc/pid/maps on demand in case a new library has been loaded.

Change-Id: Iac8109b3e6a07bf02c38300b21eecabf4bcd54df

8 years agoAdd backtrace_string and export to libmemunreachable
Colin Cross [Sat, 6 Feb 2016 00:17:39 +0000 (16:17 -0800)]
Add backtrace_string and export to libmemunreachable

Add backtrace_string to convert a malloc_debug backtrace to a string.
Also move the backtrace functions to libc_malloc_debug_backtrace so that
libmemunreachable can reuse them.

Change-Id: I5ad67001c0b4d184903c762863a8588181d4873b

8 years agoExport malloc_backtrace
Colin Cross [Tue, 2 Feb 2016 19:57:54 +0000 (11:57 -0800)]
Export malloc_backtrace

Change-Id: Ic1adb4dfd86b9ca698443a36263a3df2c91edda3

8 years agoMerge "Move gdb support functions to a separate file" am: aca201358b
Dimitry Ivanov [Thu, 18 Feb 2016 23:44:05 +0000 (23:44 +0000)]
Merge "Move gdb support functions to a separate file" am: aca201358b
am: a8497a9c19

* commit 'a8497a9c194b599356808166848d81c7b99e4613':
  Move gdb support functions to a separate file

8 years agoExport malloc_iterate and friends
Colin Cross [Fri, 29 Jan 2016 20:48:18 +0000 (12:48 -0800)]
Export malloc_iterate and friends

Export malloc_iterate, malloc_enable, and malloc_disable to be used by
libmemunreachable.

Change-Id: I08a50349af82a95d096b6b4cbac37ababe4b9b06

8 years agoMerge "Move gdb support functions to a separate file"
Dimitry Ivanov [Thu, 18 Feb 2016 22:13:43 +0000 (22:13 +0000)]
Merge "Move gdb support functions to a separate file"
am: aca201358b

* commit 'aca201358b910e5a4b925c639902387fbdfd9016':
  Move gdb support functions to a separate file

8 years agoMerge "Move gdb support functions to a separate file"
Dimitry Ivanov [Thu, 18 Feb 2016 22:12:26 +0000 (22:12 +0000)]
Merge "Move gdb support functions to a separate file"

8 years agoFix scope ids for link-local IPv6 addresses from getifaddrs(3).
Elliott Hughes [Thu, 18 Feb 2016 21:31:50 +0000 (21:31 +0000)]
Fix scope ids for link-local IPv6 addresses from getifaddrs(3).
am: 31e4472dc7

* commit '31e4472dc7779f4de13975090fc88b1e5dfb52b2':
  Fix scope ids for link-local IPv6 addresses from getifaddrs(3).

8 years agoMove gdb support functions to a separate file
Dimitry Ivanov [Thu, 18 Feb 2016 00:08:03 +0000 (16:08 -0800)]
Move gdb support functions to a separate file

Move gdb support functions and variables to
linker_gdb_support.h/cpp

Change-Id: I96c6592a7055715b18f1137367470fe80987263f

8 years agoFix cfi directives for memmove/strlcpy.
Christopher Ferris [Thu, 18 Feb 2016 19:20:57 +0000 (19:20 +0000)]
Fix cfi directives for memmove/strlcpy.
am: 08d6edf522

* commit '08d6edf52249e34942d8ed2af6c35b1e2980bc6d':
  Fix cfi directives for memmove/strlcpy.

8 years agoFix scope ids for link-local IPv6 addresses from getifaddrs(3).
Elliott Hughes [Wed, 17 Feb 2016 22:19:48 +0000 (14:19 -0800)]
Fix scope ids for link-local IPv6 addresses from getifaddrs(3).

Bug: http://b/27219454

(cherry picked from commit 7dac8b8aabadbf2dcff20d3646e701728ba3777d)

Change-Id: I006ae68b928b5836d064c020a6db43dcc05add9e

8 years agoMerge "Fix cfi directives for memmove/strlcpy." am: 4327ae07b9
Christopher Ferris [Thu, 18 Feb 2016 19:06:39 +0000 (19:06 +0000)]
Merge "Fix cfi directives for memmove/strlcpy." am: 4327ae07b9
am: 9b4fd44458

* commit '9b4fd4445804b5bd57ab0bf7cf00d67583a96790':
  Fix cfi directives for memmove/strlcpy.

8 years agoMerge "Fix scope ids for link-local IPv6 addresses from getifaddrs(3)." am: 90ea63a862
Elliott Hughes [Thu, 18 Feb 2016 19:06:33 +0000 (19:06 +0000)]
Merge "Fix scope ids for link-local IPv6 addresses from getifaddrs(3)." am: 90ea63a862
am: e62519ec57

* commit 'e62519ec576ad04bce033f1c1c33e020f891e54f':
  Fix scope ids for link-local IPv6 addresses from getifaddrs(3).

8 years agoMerge "Fix cfi directives for memmove/strlcpy."
Christopher Ferris [Thu, 18 Feb 2016 18:53:20 +0000 (18:53 +0000)]
Merge "Fix cfi directives for memmove/strlcpy."
am: 4327ae07b9

* commit '4327ae07b98d24128adbdfd93e9ed15cfce7e2ed':
  Fix cfi directives for memmove/strlcpy.

8 years agoFix cfi directives for memmove/strlcpy.
Christopher Ferris [Thu, 18 Feb 2016 03:17:02 +0000 (19:17 -0800)]
Fix cfi directives for memmove/strlcpy.

Bug: 27227225

(cherry picked from commit 97b6e131fd85bb0ae321d9e5a8a613f5ee373cf4)

Change-Id: I9462340a478d9b699240703d8da5967000a33d08

8 years agoMerge "Fix cfi directives for memmove/strlcpy."
Christopher Ferris [Thu, 18 Feb 2016 18:46:28 +0000 (18:46 +0000)]
Merge "Fix cfi directives for memmove/strlcpy."

8 years agoMerge "Fix scope ids for link-local IPv6 addresses from getifaddrs(3)."
Elliott Hughes [Thu, 18 Feb 2016 18:40:07 +0000 (18:40 +0000)]
Merge "Fix scope ids for link-local IPv6 addresses from getifaddrs(3)."
am: 90ea63a862

* commit '90ea63a862e2a23c9a72d4fa18ea15c830b25fc8':
  Fix scope ids for link-local IPv6 addresses from getifaddrs(3).

8 years agoMerge "Fix scope ids for link-local IPv6 addresses from getifaddrs(3)."
Elliott Hughes [Thu, 18 Feb 2016 18:35:00 +0000 (18:35 +0000)]
Merge "Fix scope ids for link-local IPv6 addresses from getifaddrs(3)."

8 years agoMerge "Revert "Move gdb support functions to a separate file"" am: be7a1eaf3a
Nicolas Geoffray [Thu, 18 Feb 2016 09:42:57 +0000 (09:42 +0000)]
Merge "Revert "Move gdb support functions to a separate file"" am: be7a1eaf3a
am: 1726565d5f

* commit '1726565d5f2e81de880682cd046c85f1788b1a9a':
  Revert "Move gdb support functions to a separate file"

8 years agoMerge "Revert "Move gdb support functions to a separate file""
Nicolas Geoffray [Thu, 18 Feb 2016 09:38:22 +0000 (09:38 +0000)]
Merge "Revert "Move gdb support functions to a separate file""
am: be7a1eaf3a

* commit 'be7a1eaf3a871477a7e845e7acb8ed11a91a9d82':
  Revert "Move gdb support functions to a separate file"

8 years agoMerge "Revert "Move gdb support functions to a separate file""
Nicolas Geoffray [Thu, 18 Feb 2016 09:31:41 +0000 (09:31 +0000)]
Merge "Revert "Move gdb support functions to a separate file""

8 years agoRevert "Move gdb support functions to a separate file"
Nicolas Geoffray [Thu, 18 Feb 2016 09:31:24 +0000 (09:31 +0000)]
Revert "Move gdb support functions to a separate file"

Was reverted on internal master already.

This reverts commit f8d051c81b7c22575ac940dea612fb3b880e6d7a.

Change-Id: Ia432f83bcce91366fb23f1bb87603a093b7f074d

8 years agoFix cfi directives for memmove/strlcpy.
Christopher Ferris [Thu, 18 Feb 2016 03:17:02 +0000 (19:17 -0800)]
Fix cfi directives for memmove/strlcpy.

Bug: 27227225
Change-Id: I47ca82daaadb3ec24cefc3c9aa4df7ed1798aced

8 years agoMerge changes Id6e60861,I0eacb3f0 am: 4dd56ac9a5
Dimitry Ivanov [Thu, 18 Feb 2016 02:15:18 +0000 (02:15 +0000)]
Merge changes Id6e60861,I0eacb3f0 am: 4dd56ac9a5
am: f0aa1d51af

* commit 'f0aa1d51af5cfb7fca8e6dbb19f36dd58e4c3b0a':
  Move gdb support functions to a separate file
  Use insert_link_map_into_debug_map for executable

8 years agoMerge "Fix cfi directives in small strncmp case." am: e73b27a1d3
Christopher Ferris [Thu, 18 Feb 2016 02:15:12 +0000 (02:15 +0000)]
Merge "Fix cfi directives in small strncmp case." am: e73b27a1d3
am: d715574f40

* commit 'd715574f40842291a5ed706523029175d1e88c8b':
  Fix cfi directives in small strncmp case.

8 years agoFix cfi directives in small strncmp case.
Christopher Ferris [Thu, 18 Feb 2016 02:07:15 +0000 (02:07 +0000)]
Fix cfi directives in small strncmp case.
am: bff9cca9ca

* commit 'bff9cca9ca5817e97dd43962bb11b012cbb97f54':
  Fix cfi directives in small strncmp case.

8 years agoFix cfi directives in small strncmp case.
Christopher Ferris [Thu, 18 Feb 2016 00:34:02 +0000 (16:34 -0800)]
Fix cfi directives in small strncmp case.

Bug: 27227225

(cherry picked from commit de84e51f8c7b45869a8f83a1d5eacbf19b6d5eb5)

Change-Id: I7ebbd1cf9bff849ecdfc84e0e98842fec3215bb4

8 years agoMerge changes Id6e60861,I0eacb3f0
Dimitry Ivanov [Thu, 18 Feb 2016 01:58:25 +0000 (01:58 +0000)]
Merge changes Id6e60861,I0eacb3f0
am: 4dd56ac9a5

* commit '4dd56ac9a5248c9fdeffe6c0f8029a83bcb43fe4':
  Move gdb support functions to a separate file
  Use insert_link_map_into_debug_map for executable

8 years agoMerge changes Id6e60861,I0eacb3f0
Dimitry Ivanov [Thu, 18 Feb 2016 01:25:49 +0000 (01:25 +0000)]
Merge changes Id6e60861,I0eacb3f0

* changes:
  Move gdb support functions to a separate file
  Use insert_link_map_into_debug_map for executable

8 years agoMerge "Fix cfi directives in small strncmp case."
Christopher Ferris [Thu, 18 Feb 2016 01:22:07 +0000 (01:22 +0000)]
Merge "Fix cfi directives in small strncmp case."
am: e73b27a1d3

* commit 'e73b27a1d3482d41a9b3bbc2945426211218b677':
  Fix cfi directives in small strncmp case.

8 years agoMerge "Fix cfi directives in small strncmp case."
Christopher Ferris [Thu, 18 Feb 2016 01:18:25 +0000 (01:18 +0000)]
Merge "Fix cfi directives in small strncmp case."

8 years agoFix cfi directives in small strncmp case.
Christopher Ferris [Thu, 18 Feb 2016 00:34:02 +0000 (16:34 -0800)]
Fix cfi directives in small strncmp case.

Bug: 27227225
Change-Id: Id4f88fe288109a82822ad1b2291858c1c85b0ca7

8 years agoMove gdb support functions to a separate file
Dimitry Ivanov [Thu, 18 Feb 2016 00:08:03 +0000 (16:08 -0800)]
Move gdb support functions to a separate file

Move gdb support functions and variables to
linker_gdb_support.h/cpp

Change-Id: Id6e608617016383b68283760361c567e58e574bc

8 years agoUse insert_link_map_into_debug_map for executable
Dimitry Ivanov [Wed, 17 Feb 2016 23:25:25 +0000 (15:25 -0800)]
Use insert_link_map_into_debug_map for executable

Use insert_link_map_into_debug_map to insert the main
executable's link_map to r_debug

Change-Id: I0eacb3f030ea3eb16ed50ad2011d604beece2d03

8 years agoFix scope ids for link-local IPv6 addresses from getifaddrs(3).
Elliott Hughes [Wed, 17 Feb 2016 22:19:48 +0000 (14:19 -0800)]
Fix scope ids for link-local IPv6 addresses from getifaddrs(3).

Bug: http://b/27219454
Change-Id: I7a166ff5553565f7afdab18dd2c703af4d475ab4

8 years agoMerge "Update a comment for init_linker_info_for_gdb" am: c347a10760
Dimitry Ivanov [Wed, 17 Feb 2016 22:34:58 +0000 (22:34 +0000)]
Merge "Update a comment for init_linker_info_for_gdb" am: c347a10760
am: d537d5f121

* commit 'd537d5f121e58dbe5bd807eb5fbfd43c54bdc7ad':
  Update a comment for init_linker_info_for_gdb

8 years agoMerge "Update a comment for init_linker_info_for_gdb"
Dimitry Ivanov [Wed, 17 Feb 2016 22:26:49 +0000 (22:26 +0000)]
Merge "Update a comment for init_linker_info_for_gdb"
am: c347a10760

* commit 'c347a107602f3011b393f2b2407425b5d668e14e':
  Update a comment for init_linker_info_for_gdb

8 years agoMerge "Update a comment for init_linker_info_for_gdb"
Dimitry Ivanov [Wed, 17 Feb 2016 22:20:22 +0000 (22:20 +0000)]
Merge "Update a comment for init_linker_info_for_gdb"

8 years agoUpdate a comment for init_linker_info_for_gdb
Dimitry Ivanov [Wed, 17 Feb 2016 22:13:06 +0000 (14:13 -0800)]
Update a comment for init_linker_info_for_gdb

Change-Id: I8e2895ecfcc6f77a180c3735342afc93be5923d3

8 years agoMerge "malloc_debug: reset TrackData mutex after fork" am: 598cb89790
Colin Cross [Wed, 17 Feb 2016 21:07:54 +0000 (21:07 +0000)]
Merge "malloc_debug: reset TrackData mutex after fork" am: 598cb89790
am: d0cfff5316

* commit 'd0cfff531619ccd81ddb3d20aee51d02023b8326':
  malloc_debug: reset TrackData mutex after fork

8 years agoMerge commit \'27991ce344830ebb91eba11ded732b513f32b04b\' into HEAD
Bill Yi [Wed, 17 Feb 2016 21:07:47 +0000 (21:07 +0000)]
Merge commit \'27991ce344830ebb91eba11ded732b513f32b04b\' into HEAD
am: 4f78eb0466

* commit '4f78eb0466ea30acda821b40597b080b7711917c':

8 years agoMerge "malloc_debug: reset TrackData mutex after fork"
Colin Cross [Wed, 17 Feb 2016 20:48:37 +0000 (20:48 +0000)]
Merge "malloc_debug: reset TrackData mutex after fork"
am: 598cb89790

* commit '598cb89790ba93edbb392c567ecda32b39d64ff1':
  malloc_debug: reset TrackData mutex after fork

8 years agoMerge "malloc_debug: reset TrackData mutex after fork"
Colin Cross [Wed, 17 Feb 2016 20:38:02 +0000 (20:38 +0000)]
Merge "malloc_debug: reset TrackData mutex after fork"

8 years agoMerge commit '27991ce344830ebb91eba11ded732b513f32b04b' into HEAD
Bill Yi [Wed, 17 Feb 2016 17:50:14 +0000 (09:50 -0800)]
Merge commit '27991ce344830ebb91eba11ded732b513f32b04b' into HEAD

8 years agoMerge "Initialize linker link_map for gdb directly"
Dimitry Ivanov [Wed, 17 Feb 2016 00:23:43 +0000 (00:23 +0000)]
Merge "Initialize linker link_map for gdb directly"
am: 2de48bc809

* commit '2de48bc809bba48a7f209e209b3822bad010166f':
  Initialize linker link_map for gdb directly

8 years agoMerge "Revert "Revert "Split out liblinker_malloc static library"""
Dimitry Ivanov [Wed, 17 Feb 2016 00:23:31 +0000 (00:23 +0000)]
Merge "Revert "Revert "Split out liblinker_malloc static library"""
am: acedcba331

* commit 'acedcba3318413b17fb70f8a53cbc5e75c981387':
  Revert "Revert "Split out liblinker_malloc static library""

8 years agoMerge "Initialize linker link_map for gdb directly"
Dimitry Ivanov [Wed, 17 Feb 2016 00:00:30 +0000 (00:00 +0000)]
Merge "Initialize linker link_map for gdb directly"

8 years agoMerge "Revert "Revert "Split out liblinker_malloc static library"""
Dimitry Ivanov [Tue, 16 Feb 2016 23:51:37 +0000 (23:51 +0000)]
Merge "Revert "Revert "Split out liblinker_malloc static library"""

8 years agoRevert "Revert "Split out liblinker_malloc static library""
Dimitry Ivanov [Tue, 16 Feb 2016 18:13:42 +0000 (10:13 -0800)]
Revert "Revert "Split out liblinker_malloc static library""

This reverts commit 3bbeca7a1ae3d31cddd97fb6a0140c4cf7e39f8e.

Change-Id: I5a757fcd52a14442c2eb7ca53f7d1f1923a4efe9

8 years agoInitialize linker link_map for gdb directly
Dimitry Ivanov [Tue, 16 Feb 2016 21:43:35 +0000 (13:43 -0800)]
Initialize linker link_map for gdb directly

Remove unnecessary construction of soinfo when
initializing linker link_map for gdb.

Change-Id: Idf32cee56309aa9c9cf260efbd17a9deae9a756b

8 years agoMerge "linker: remove soinfo::entry"
Dimitry Ivanov [Tue, 16 Feb 2016 22:13:53 +0000 (22:13 +0000)]
Merge "linker: remove soinfo::entry"
am: b244d21672

* commit 'b244d21672b3bbb8bb4653d737a2d1bfd39ed877':
  linker: remove soinfo::entry

8 years agoMerge "linker: remove soinfo::entry"
Dimitry Ivanov [Tue, 16 Feb 2016 21:29:43 +0000 (21:29 +0000)]
Merge "linker: remove soinfo::entry"

8 years agolinker: remove soinfo::entry
Dimitry Ivanov [Tue, 16 Feb 2016 21:25:29 +0000 (13:25 -0800)]
linker: remove soinfo::entry

This field is used only once and only for main executable;
no need to carry it around in soinfo structure.

Change-Id: I7f80c64e0939e28966b6fed858891f9ce2a9e26b

8 years agoMerge "Revert "Split out liblinker_malloc static library""
Dimitry Ivanov [Mon, 15 Feb 2016 19:34:17 +0000 (19:34 +0000)]
Merge "Revert "Split out liblinker_malloc static library""
am: 85665af917

* commit '85665af917c74ff88668c1c1bffe5455e9f779cc':
  Revert "Split out liblinker_malloc static library"

8 years agoMerge "Revert "Split out liblinker_malloc static library""
Dimitry Ivanov [Mon, 15 Feb 2016 19:21:29 +0000 (19:21 +0000)]
Merge "Revert "Split out liblinker_malloc static library""

8 years agoRevert "Split out liblinker_malloc static library"
Dimitry Ivanov [Mon, 15 Feb 2016 19:19:35 +0000 (19:19 +0000)]
Revert "Split out liblinker_malloc static library"

This reverts commit a80564318a87c1efe76224b8591c707c54d51d2d.

Change-Id: I63f16739a38f40ad930692176a4297ad1ce89570

8 years agoMerge "Add a memcpy(a, a, n) test."
Christopher Ferris [Sat, 13 Feb 2016 17:57:25 +0000 (17:57 +0000)]
Merge "Add a memcpy(a, a, n) test."
am: 60a5f7360e

* commit '60a5f7360e6d57b9805aa587d0b1553f3e7cddab':
  Add a memcpy(a, a, n) test.

8 years agoAdd a memcpy(a, a, n) test.
Christopher Ferris [Sat, 13 Feb 2016 17:56:41 +0000 (17:56 +0000)]
Add a memcpy(a, a, n) test.
am: ee478ead7d

* commit 'ee478ead7dc30235509e36f7675e1b62484bc25d':
  Add a memcpy(a, a, n) test.

8 years agoAdd a memcpy(a, a, n) test.
Christopher Ferris [Sat, 13 Feb 2016 01:24:27 +0000 (17:24 -0800)]
Add a memcpy(a, a, n) test.

clang depends on memcpy where src and dst are the same to actually
work. Even though this is, technically, undefined behavior,
clang is not going to change. Add a test to verify this assumption
holds true for android devices.

(cherry picked from commit 71766c25778fe13717259cdccb62463684794408)

Change-Id: I7d8ba4098729194dda69eab7070fd5c4ba1abbe9

8 years agoMerge "Add a memcpy(a, a, n) test."
Christopher Ferris [Sat, 13 Feb 2016 17:46:28 +0000 (17:46 +0000)]
Merge "Add a memcpy(a, a, n) test."

8 years agoAdd a memcpy(a, a, n) test.
Christopher Ferris [Sat, 13 Feb 2016 01:24:27 +0000 (17:24 -0800)]
Add a memcpy(a, a, n) test.

clang depends on memcpy where src and dst are the same to actually
work. Even though this is, technically, undefined behavior,
clang is not going to change. Add a test to verify this assumption
holds true for android devices.

Change-Id: Ib575af3c14e705bb62c18fad7d57e1cc0d242899

8 years agoFix the default alignment of the allocations.
Christopher Ferris [Sat, 13 Feb 2016 01:56:31 +0000 (01:56 +0000)]
Fix the default alignment of the allocations.
am: 39b952cf0a

* commit '39b952cf0a824db1cdc301dd048db0e56d4d5c24':
  Fix the default alignment of the allocations.

8 years agoFix the default alignment of the allocations.
Christopher Ferris [Thu, 11 Feb 2016 23:51:31 +0000 (15:51 -0800)]
Fix the default alignment of the allocations.

In order to enforce this constraint:

The pointer returned if the allocation succeeds shall be suitably
aligned so that it may be assigned to a pointer to any type of object
and then used to access such an object in the space allocated.

Force all allocations on 32 bit systems to have 8 byte alignment,
and all allocations on 64 bit systems to have 16 byte alignment.

Add a test to verify that the allocator returns the correct alignments.

Bug: 26739265

(cherry picked from commit 72df6708c829a4c6494936fdfbda6dc7e68e647b)

Change-Id: I44ca8bedb1dac375087da1af3a1d7d12034e037f

8 years agoMerge "Fix the default alignment of the allocations."
Christopher Ferris [Sat, 13 Feb 2016 01:50:20 +0000 (01:50 +0000)]
Merge "Fix the default alignment of the allocations."
am: 249fefbda0

* commit '249fefbda0984b2b8bf44238468c411cf7886006':
  Fix the default alignment of the allocations.

8 years agoFix regerror(..., nullptr, 0).
Elliott Hughes [Sat, 13 Feb 2016 01:44:00 +0000 (01:44 +0000)]
Fix regerror(..., nullptr, 0).
am: 66c25c360a

* commit '66c25c360afb161be02fbdb8da21cd02c9d99447':
  Fix regerror(..., nullptr, 0).

8 years agoMerge "Fix the default alignment of the allocations."
Christopher Ferris [Sat, 13 Feb 2016 01:37:06 +0000 (01:37 +0000)]
Merge "Fix the default alignment of the allocations."

8 years agoFix regerror(..., nullptr, 0).
Elliott Hughes [Sat, 13 Feb 2016 00:00:53 +0000 (16:00 -0800)]
Fix regerror(..., nullptr, 0).

Found by passing a bad regular expression to the Google benchmark
code (https://github.com/google/benchmark).

(cherry picked from commit cac2908b08f517802e719ddafe39f45c85c96a33)

Change-Id: I317a7c2ea6535998c0853029023fcefc88cb3750