Commit graph

16443 commits

Author SHA1 Message Date
Elliott Hughes
74e096efc5 Merge "If you\'re going to use memset..."
am: a8f05fcc64

* commit 'a8f05fcc64c6484051112882a087fba533f14322':
  If you're going to use memset...
2016-02-26 06:07:46 +00:00
Elliott Hughes
a8f05fcc64 Merge "If you're going to use memset..." 2016-02-26 06:06:11 +00:00
Elliott Hughes
f86c4494ff If you're going to use memset...
...you'd better #include <string.h>.

Change-Id: I83e0877f4151fc764588e2d876e66d7712d41f61
2016-02-25 22:05:28 -08:00
Elliott Hughes
30fbacba13 Merge "GCC doesn\'t like {}, and clang doesn\'t like {0}..."
am: a8e75ba37d

* commit 'a8e75ba37deff962b0ddbc2fb81b96c3515ae7e5':
  GCC doesn't like {}, and clang doesn't like {0}...
2016-02-26 05:55:34 +00:00
Elliott Hughes
a8e75ba37d Merge "GCC doesn't like {}, and clang doesn't like {0}..." 2016-02-26 05:53:59 +00:00
Elliott Hughes
2c6c95348c GCC doesn't like {}, and clang doesn't like {0}...
...so memset it is, then.

I'll be glad when GCC is dead and we can use "= {}" like it's the 21st century.

Change-Id: I28d820d3926ac9bf44bf7c1e89e184726c840391
2016-02-25 21:51:50 -08:00
Anton Kirilov
2e3f5e72a6 Merge "Fix a structure initialisation in pthread_exit()."
am: d07d77e399

* commit 'd07d77e399ee26291125bedbe46d03e037e705f2':
  Fix a structure initialisation in pthread_exit().
2016-02-26 05:02:16 +00:00
Elliott Hughes
d07d77e399 Merge "Fix a structure initialisation in pthread_exit()." 2016-02-26 04:59:51 +00:00
Anton Kirilov
6bd5cf60fa Fix a structure initialisation in pthread_exit().
The purpose of this change is to silence Valgrind's warning about a
syscall parameter pointing to uninitialised bytes.

Change-Id: I2737235f9ac288dbc8ec4be0c6f1cef181c9b7d7
2016-02-25 20:49:15 -08:00
Dimitry Ivanov
ec7c01930b Merge "[MIPS] Add __popcountsi2 to libgcc_compat.c"
am: b4b98e750f

* commit 'b4b98e750f81322f1065194e1618c5a965224f95':
  [MIPS] Add __popcountsi2 to libgcc_compat.c
2016-02-25 23:17:58 +00:00
Dimitry Ivanov
b4b98e750f Merge "[MIPS] Add __popcountsi2 to libgcc_compat.c" 2016-02-25 23:12:29 +00:00
Dimitry Ivanov
19acb698e8 [MIPS] Add __popcountsi2 to libgcc_compat.c
Also removed outdated genlibgcc_compat.py script
and references to it.

Bug: http://b/27340856
Change-Id: I7eef362364078867c60a27e72abba515f08b6651
2016-02-25 14:28:45 -08:00
Stephen Hines
32db9a85ec Merge "Remove unused libm_clang variable."
am: e0959b4b16

* commit 'e0959b4b164a26eb9931ed6925c71d7870c063fe':
  Remove unused libm_clang variable.
2016-02-23 22:13:24 +00:00
Stephen Hines
e0959b4b16 Merge "Remove unused libm_clang variable." 2016-02-23 22:05:25 +00:00
Christopher Ferris
11bd005f7e Merge "Fix wrong guard values for 64 bit."
am: 0a84f1a5eb

* commit '0a84f1a5eb1be4a742ec5ce8f0376c692d49bec2':
  Fix wrong guard values for 64 bit.
2016-02-23 19:25:18 +00:00
Christopher Ferris
0a84f1a5eb Merge "Fix wrong guard values for 64 bit." 2016-02-23 19:15:57 +00:00
Christopher Ferris
0e2a026579 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
2016-02-22 19:14:26 -08:00
Christopher Ferris
9e6b62dffe Merge "Fix incorrect size of array."
am: f2d516b3f9

* commit 'f2d516b3f9ef901991387ee473140ea24feaab48':
  Fix incorrect size of array.
2016-02-22 19:26:10 +00:00
Christopher Ferris
f2d516b3f9 Merge "Fix incorrect size of array." 2016-02-22 18:46:35 +00:00
Christopher Ferris
f499dc91e7 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
2016-02-19 18:13:29 -08:00
Stephen Hines
64955c84c0 Remove unused libm_clang variable.
Bug: http://b/21899249

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

Change-Id: I0e0f2640e2e975f3e154f68509aa791fd22053a9
2016-02-19 01:17:18 -08:00
Dimitry Ivanov
582e162a75 Merge "Improvements to dynamic linker messages"
am: b539baab39

* commit 'b539baab398ce20f9add5d6dfbadfdc7abdeb970':
  Improvements to dynamic linker messages
2016-02-19 02:49:23 +00:00
Dimitry Ivanov
b539baab39 Merge "Improvements to dynamic linker messages" 2016-02-19 02:43:48 +00:00
Colin Cross
74c0a68e3e 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
2016-02-19 02:34:34 +00:00
Dimitry Ivanov
9f0a6954c6 Improvements to dynamic linker messages
Error messages now include executable name,
also linker doesn't abort if called on itself.

Change-Id: Ia17dd540919544b28062ed71751a1d79ee865206
2016-02-18 18:28:08 -08:00
Colin Cross
c95a4c8196 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
2016-02-19 01:55:10 +00:00
Colin Cross
d75d4bea54 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
2016-02-18 16:09:17 -08:00
Colin Cross
2c75991359 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
2016-02-18 16:09:17 -08:00
Colin Cross
2d4721c0c5 Export malloc_backtrace
Change-Id: Ic1adb4dfd86b9ca698443a36263a3df2c91edda3
2016-02-18 16:09:16 -08:00
Colin Cross
869691c6f7 Export malloc_iterate and friends
Export malloc_iterate, malloc_enable, and malloc_disable to be used by
libmemunreachable.

Change-Id: I08a50349af82a95d096b6b4cbac37ababe4b9b06
2016-02-18 15:05:38 -08:00
Dimitry Ivanov
a8497a9c19 Merge "Move gdb support functions to a separate file"
am: aca201358b

* commit 'aca201358b910e5a4b925c639902387fbdfd9016':
  Move gdb support functions to a separate file
2016-02-18 22:13:43 +00:00
Dimitry Ivanov
aca201358b Merge "Move gdb support functions to a separate file" 2016-02-18 22:12:26 +00:00
Dimitry Ivanov
6b788eeff2 Move gdb support functions to a separate file
Move gdb support functions and variables to
linker_gdb_support.h/cpp

Change-Id: I96c6592a7055715b18f1137367470fe80987263f
2016-02-18 12:32:56 -08:00
Christopher Ferris
9b4fd44458 Merge "Fix cfi directives for memmove/strlcpy."
am: 4327ae07b9

* commit '4327ae07b98d24128adbdfd93e9ed15cfce7e2ed':
  Fix cfi directives for memmove/strlcpy.
2016-02-18 18:53:20 +00:00
Christopher Ferris
4327ae07b9 Merge "Fix cfi directives for memmove/strlcpy." 2016-02-18 18:46:28 +00:00
Elliott Hughes
e62519ec57 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).
2016-02-18 18:40:07 +00:00
Elliott Hughes
90ea63a862 Merge "Fix scope ids for link-local IPv6 addresses from getifaddrs(3)." 2016-02-18 18:35:00 +00:00
Nicolas Geoffray
1726565d5f Merge "Revert "Move gdb support functions to a separate file""
am: be7a1eaf3a

* commit 'be7a1eaf3a871477a7e845e7acb8ed11a91a9d82':
  Revert "Move gdb support functions to a separate file"
2016-02-18 09:38:22 +00:00
Nicolas Geoffray
be7a1eaf3a Merge "Revert "Move gdb support functions to a separate file"" 2016-02-18 09:31:41 +00:00
Nicolas Geoffray
0fa5410b0f Revert "Move gdb support functions to a separate file"
Was reverted on internal master already.

This reverts commit f8d051c81b.

Change-Id: Ia432f83bcce91366fb23f1bb87603a093b7f074d
2016-02-18 09:31:24 +00:00
Christopher Ferris
97b6e131fd Fix cfi directives for memmove/strlcpy.
Bug: 27227225
Change-Id: I47ca82daaadb3ec24cefc3c9aa4df7ed1798aced
2016-02-17 19:17:02 -08:00
Dimitry Ivanov
f0aa1d51af 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
2016-02-18 01:58:25 +00:00
Dimitry Ivanov
4dd56ac9a5 Merge changes Id6e60861,I0eacb3f0
* changes:
  Move gdb support functions to a separate file
  Use insert_link_map_into_debug_map for executable
2016-02-18 01:25:49 +00:00
Christopher Ferris
d715574f40 Merge "Fix cfi directives in small strncmp case."
am: e73b27a1d3

* commit 'e73b27a1d3482d41a9b3bbc2945426211218b677':
  Fix cfi directives in small strncmp case.
2016-02-18 01:22:07 +00:00
Christopher Ferris
e73b27a1d3 Merge "Fix cfi directives in small strncmp case." 2016-02-18 01:18:26 +00:00
Christopher Ferris
de84e51f8c Fix cfi directives in small strncmp case.
Bug: 27227225
Change-Id: Id4f88fe288109a82822ad1b2291858c1c85b0ca7
2016-02-17 16:34:02 -08:00
Dimitry Ivanov
f8d051c81b Move gdb support functions to a separate file
Move gdb support functions and variables to
linker_gdb_support.h/cpp

Change-Id: Id6e608617016383b68283760361c567e58e574bc
2016-02-17 16:09:35 -08:00
Dimitry Ivanov
f3064e4bc7 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
2016-02-17 15:25:25 -08:00
Elliott Hughes
7dac8b8aab Fix scope ids for link-local IPv6 addresses from getifaddrs(3).
Bug: http://b/27219454
Change-Id: I7a166ff5553565f7afdab18dd2c703af4d475ab4
2016-02-17 14:38:09 -08:00
Dimitry Ivanov
d537d5f121 Merge "Update a comment for init_linker_info_for_gdb"
am: c347a10760

* commit 'c347a107602f3011b393f2b2407425b5d668e14e':
  Update a comment for init_linker_info_for_gdb
2016-02-17 22:26:49 +00:00