OSDN Git Service

android-x86/bionic.git
7 years agoAdd test config to linker-unit-tests
Dan Shi [Sat, 25 Mar 2017 04:55:52 +0000 (21:55 -0700)]
Add test config to linker-unit-tests

Details about test configs changes are tracked in doc
https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit#

Bug: 35882476
Test: local test
Change-Id: If04ff76e5c4d5e784f5695982cf6115b955d9789

7 years agoMerge "Fix problem that we don't block syscalls below min value" am: 4d099d1576 am...
Paul Lawrence [Wed, 22 Mar 2017 19:43:55 +0000 (19:43 +0000)]
Merge "Fix problem that we don't block syscalls below min value" am: 4d099d1576 am: 58b8d8c43e
am: 1f90e43573

Change-Id: Ic9096250cb21a28dccaa8d4653159cc52d0fd863

7 years agoMerge "Fix problem that we don't block syscalls below min value" am: 4d099d1576
Paul Lawrence [Wed, 22 Mar 2017 19:41:25 +0000 (19:41 +0000)]
Merge "Fix problem that we don't block syscalls below min value" am: 4d099d1576
am: 58b8d8c43e

Change-Id: Iabff94870501f59d94f96fbd9c4f9d35d6867cff

7 years agoMerge "Fix problem that we don't block syscalls below min value"
Paul Lawrence [Wed, 22 Mar 2017 19:38:55 +0000 (19:38 +0000)]
Merge "Fix problem that we don't block syscalls below min value"
am: 4d099d1576

Change-Id: Iaa83772727fd8cb4b9468cd7033523afabe6baed

7 years agoMerge "Fix problem that we don't block syscalls below min value"
Treehugger Robot [Wed, 22 Mar 2017 19:33:07 +0000 (19:33 +0000)]
Merge "Fix problem that we don't block syscalls below min value"

7 years agoFix problem that we don't block syscalls below min value
Paul Lawrence [Wed, 22 Mar 2017 15:03:51 +0000 (08:03 -0700)]
Fix problem that we don't block syscalls below min value

The check that we are not below the lowest permitted syscall was
off by one, so we always allowed them, rather than always denying
them

Test: Check arm64 boots, chrome and maps work
      mips and mips64 emulators boot
      Note that arm, x86 and x86_64 already allow syscall 0 so there
      will be no functional change there

Change-Id: I85873f1d04124e634e648bd47c027f280f1d6dbd

7 years agoMerge "Update timezone data to 2017b" am: 341bb25a19 am: a4a0b78e8d
Joachim Sauer [Wed, 22 Mar 2017 13:21:05 +0000 (13:21 +0000)]
Merge "Update timezone data to 2017b" am: 341bb25a19 am: a4a0b78e8d
am: 4e363fa091

Change-Id: I86dc46fb4053d2ebba2f4a7e81a16ab99146c6c6

7 years agoMerge "Update timezone data to 2017b" am: 341bb25a19
Joachim Sauer [Wed, 22 Mar 2017 13:18:35 +0000 (13:18 +0000)]
Merge "Update timezone data to 2017b" am: 341bb25a19
am: a4a0b78e8d

Change-Id: I21179fde3482f5512832b4313b08cad4ea04be13

7 years agoMerge "Update timezone data to 2017b"
Joachim Sauer [Wed, 22 Mar 2017 13:16:05 +0000 (13:16 +0000)]
Merge "Update timezone data to 2017b"
am: 341bb25a19

Change-Id: Ie617b4613a4faa33ae95d8e610b3f854caa989b8

7 years agoMerge "Update timezone data to 2017b"
Joachim Sauer [Wed, 22 Mar 2017 13:11:45 +0000 (13:11 +0000)]
Merge "Update timezone data to 2017b"

7 years agoMerge "Add systrace output for dlclose/dlsym calls" am: 5153938e9a am: 314c5b4388
Dimitry Ivanov [Tue, 21 Mar 2017 22:26:52 +0000 (22:26 +0000)]
Merge "Add systrace output for dlclose/dlsym calls" am: 5153938e9a am: 314c5b4388
am: 4696a79e83

Change-Id: Ib24f774f79a719b97545ba58b247f70f807f7453

7 years agoMerge "Add systrace output for dlclose/dlsym calls" am: 5153938e9a
Dimitry Ivanov [Tue, 21 Mar 2017 22:20:22 +0000 (22:20 +0000)]
Merge "Add systrace output for dlclose/dlsym calls" am: 5153938e9a
am: 314c5b4388

Change-Id: I755be26817bdf2dea76ff4c82c1d9d9e659c0bf6

7 years agoMerge "Add systrace output for dlclose/dlsym calls"
Dimitry Ivanov [Tue, 21 Mar 2017 22:15:51 +0000 (22:15 +0000)]
Merge "Add systrace output for dlclose/dlsym calls"
am: 5153938e9a

Change-Id: I7c9914ae9b309e9c8d0369503546772b2b5b491e

7 years agoMerge "Add systrace output for dlclose/dlsym calls"
Treehugger Robot [Tue, 21 Mar 2017 22:06:08 +0000 (22:06 +0000)]
Merge "Add systrace output for dlclose/dlsym calls"

7 years agoMerge "POSIX support varies by API level." am: 8ebfc0d3a3 am: 650593498d
Elliott Hughes [Tue, 21 Mar 2017 20:30:14 +0000 (20:30 +0000)]
Merge "POSIX support varies by API level." am: 8ebfc0d3a3 am: 650593498d
am: f31212fbfe

Change-Id: Id18a10ff4359ba7531ffbf27d725bb381e5fd685

7 years agoMerge "POSIX support varies by API level." am: 8ebfc0d3a3
Elliott Hughes [Tue, 21 Mar 2017 20:26:43 +0000 (20:26 +0000)]
Merge "POSIX support varies by API level." am: 8ebfc0d3a3
am: 650593498d

Change-Id: I44846a3cf1fa3b03d33f804079b4037b25506cc2

7 years agoMerge "POSIX support varies by API level."
Elliott Hughes [Tue, 21 Mar 2017 20:22:13 +0000 (20:22 +0000)]
Merge "POSIX support varies by API level."
am: 8ebfc0d3a3

Change-Id: Ifa732c7835620aaf1d12ad9b3a97253fad3f14b3

7 years agoMerge "POSIX support varies by API level."
Treehugger Robot [Tue, 21 Mar 2017 20:11:35 +0000 (20:11 +0000)]
Merge "POSIX support varies by API level."

7 years agoMerge "pthread barrier and spinlock types should only appear at API level 24." am...
Elliott Hughes [Tue, 21 Mar 2017 19:29:11 +0000 (19:29 +0000)]
Merge "pthread barrier and spinlock types should only appear at API level 24." am: 72b6f4fae2 am: 6d60179839
am: 79d88ed706

Change-Id: Ieeaf1db4f62230da8f690dda02ea375b43b6682b

7 years agoMerge "pthread barrier and spinlock types should only appear at API level 24." am...
Elliott Hughes [Tue, 21 Mar 2017 19:24:41 +0000 (19:24 +0000)]
Merge "pthread barrier and spinlock types should only appear at API level 24." am: 72b6f4fae2
am: 6d60179839

Change-Id: I28bb0f6829d8d83a6bddda6e66aedc33d788ffe1

7 years agoMerge "pthread barrier and spinlock types should only appear at API level 24."
Elliott Hughes [Tue, 21 Mar 2017 19:20:41 +0000 (19:20 +0000)]
Merge "pthread barrier and spinlock types should only appear at API level 24."
am: 72b6f4fae2

Change-Id: I497096763a796e0e69643d2240d3608eb169104d

7 years agoMerge "pthread barrier and spinlock types should only appear at API level 24."
Elliott Hughes [Tue, 21 Mar 2017 19:14:05 +0000 (19:14 +0000)]
Merge "pthread barrier and spinlock types should only appear at API level 24."

7 years agoPOSIX support varies by API level.
Elliott Hughes [Tue, 21 Mar 2017 18:24:13 +0000 (11:24 -0700)]
POSIX support varies by API level.

Bug: https://github.com/android-ndk/ndk/issues/332
Test: builds
Change-Id: I249c214d34244a1149ba6b1160e8eafc2cdbcdea

7 years agoAdd systrace output for dlclose/dlsym calls
Dimitry Ivanov [Tue, 21 Mar 2017 17:29:06 +0000 (10:29 -0700)]
Add systrace output for dlclose/dlsym calls

Bug: http://b/27195126
Test: manual: adb shell atrace -t 5 bionic
      and run bionic-unit-tests --gtest_filter=dl*

Change-Id: I9e93a069dd440bb643890d9952913938442ac375

7 years agopthread barrier and spinlock types should only appear at API level 24.
Elliott Hughes [Tue, 21 Mar 2017 16:39:56 +0000 (09:39 -0700)]
pthread barrier and spinlock types should only appear at API level 24.

Bug: https://github.com/android-ndk/ndk/issues/336
Test: builds
Change-Id: I938d9d7ea879d1dbc355f14e100f1ea31a51a1f0

7 years agoUpdate timezone data to 2017b
Joachim Sauer [Tue, 21 Mar 2017 15:25:34 +0000 (15:25 +0000)]
Update timezone data to 2017b

IANA changes:

  Briefly: Haiti has resumed DST.

  Changes to past and future time stamps

    Haiti resumed observance of DST in 2017.  (Thanks to Steffen Thorsen.)

  Changes to past time stamps

    Liberia changed from -004430 to +00 on 1972-01-07, not 1972-05-01.

    Use "MMT" to abbreviate Liberia's time zone before 1972, as "-004430"
    is one byte over the POSIX limit.  (Problem reported by Derick Rethans.)

Bug: 36470257
Test: CtsLibcoreTestCases / CtsBionicTestCases
Change-Id: I5a8ffb60232410d88ffa67c7702dd234ff05f61d

7 years agoMerge changes Ib2bad794,I82436292 am: e98d1e68ce am: ab6cc15afd
Dimitry Ivanov [Mon, 20 Mar 2017 22:47:19 +0000 (22:47 +0000)]
Merge changes Ib2bad794,I82436292 am: e98d1e68ce am: ab6cc15afd
am: b05bc9364f

Change-Id: I85ae2a1d8ba126c1dc3cb41308a002d7a4203c01

7 years agoMerge changes Ib2bad794,I82436292 am: e98d1e68ce
Dimitry Ivanov [Mon, 20 Mar 2017 22:43:48 +0000 (22:43 +0000)]
Merge changes Ib2bad794,I82436292 am: e98d1e68ce
am: ab6cc15afd

Change-Id: Ifd8d8a37c4af5061474b814effa72e67ecf9cd3e

7 years agoMerge changes Ib2bad794,I82436292
Dimitry Ivanov [Mon, 20 Mar 2017 22:39:50 +0000 (22:39 +0000)]
Merge changes Ib2bad794,I82436292
am: e98d1e68ce

Change-Id: I9a7976262216e9196bb1bc5a5b2bd5736346b109

7 years agoMerge changes Ib2bad794,I82436292
Dimitry Ivanov [Mon, 20 Mar 2017 22:34:36 +0000 (22:34 +0000)]
Merge changes Ib2bad794,I82436292

* changes:
  Add systrace output for dlopen calls
  Add end() method to bionic's ScopedTrace class

7 years agoMerge "Only rename mmap to mmap64 if we're L or newer." am: e36fb9ed9e am: 364aed595c
Dan Albert [Mon, 20 Mar 2017 22:07:16 +0000 (22:07 +0000)]
Merge "Only rename mmap to mmap64 if we're L or newer." am: e36fb9ed9e am: 364aed595c
am: 91f3973678

Change-Id: Ia6fdf1e52976233a0ff27c7693a83f68e693053e

7 years agoMerge "Only rename mmap to mmap64 if we're L or newer." am: e36fb9ed9e
Dan Albert [Mon, 20 Mar 2017 22:03:46 +0000 (22:03 +0000)]
Merge "Only rename mmap to mmap64 if we're L or newer." am: e36fb9ed9e
am: 364aed595c

Change-Id: I36bc2f094776578d794b862835726fb966fd5f48

7 years agoMerge "Only rename mmap to mmap64 if we're L or newer."
Dan Albert [Mon, 20 Mar 2017 22:00:16 +0000 (22:00 +0000)]
Merge "Only rename mmap to mmap64 if we're L or newer."
am: e36fb9ed9e

Change-Id: Id3694c3dbb255887c208566757063bf51f08ec42

7 years agoMerge "Only rename mmap to mmap64 if we're L or newer."
Treehugger Robot [Mon, 20 Mar 2017 21:53:39 +0000 (21:53 +0000)]
Merge "Only rename mmap to mmap64 if we're L or newer."

7 years agoAdd systrace output for dlopen calls
Dimitry Ivanov [Fri, 17 Mar 2017 23:41:34 +0000 (16:41 -0700)]
Add systrace output for dlopen calls

Bug: http://b/27195126
Test: manual: adb shell atrace -t 5 bionic
      and run bionic-unit-tests --gtest_filter=dl*:Dl*

Change-Id: Ib2bad794e571b89bd1f52c9e0de642c2092e5c21

7 years agoMerge "Only rename fgetpos/fsetpos/fseeko/ftello/funopen if we're N or newer." am...
Elliott Hughes [Mon, 20 Mar 2017 20:15:10 +0000 (20:15 +0000)]
Merge "Only rename fgetpos/fsetpos/fseeko/ftello/funopen if we're N or newer." am: 8bd97b007e am: 7a228993be
am: e8a04a8ed3

Change-Id: I9999ab4f74afb98a0325e5aeee3184dd911cc4f1

7 years agoMerge "Only rename sendfile to sendfile64 if we're L or newer." am: f12d719b01 am...
Elliott Hughes [Mon, 20 Mar 2017 20:14:40 +0000 (20:14 +0000)]
Merge "Only rename sendfile to sendfile64 if we're L or newer." am: f12d719b01 am: b6aae754bf
am: 1fcd364365

Change-Id: If555e8845c9a24460a943f29e013f683ef068927

7 years agoMerge "Only rename fgetpos/fsetpos/fseeko/ftello/funopen if we're N or newer." am...
Elliott Hughes [Mon, 20 Mar 2017 20:11:49 +0000 (20:11 +0000)]
Merge "Only rename fgetpos/fsetpos/fseeko/ftello/funopen if we're N or newer." am: 8bd97b007e
am: 7a228993be

Change-Id: I130a29e213e4f0848c9e175a177ed0a93bb36c1c

7 years agoMerge "Only rename sendfile to sendfile64 if we're L or newer." am: f12d719b01
Elliott Hughes [Mon, 20 Mar 2017 20:11:39 +0000 (20:11 +0000)]
Merge "Only rename sendfile to sendfile64 if we're L or newer." am: f12d719b01
am: b6aae754bf

Change-Id: I8282d67edad0e57e6b36adac46b6656b8400c639

7 years agoMerge "Only rename fgetpos/fsetpos/fseeko/ftello/funopen if we're N or newer."
Elliott Hughes [Mon, 20 Mar 2017 20:08:20 +0000 (20:08 +0000)]
Merge "Only rename fgetpos/fsetpos/fseeko/ftello/funopen if we're N or newer."
am: 8bd97b007e

Change-Id: I64aadf8f81717e78c2d96d6fe13ae034a5955557

7 years agoMerge "Only rename sendfile to sendfile64 if we're L or newer."
Elliott Hughes [Mon, 20 Mar 2017 20:08:09 +0000 (20:08 +0000)]
Merge "Only rename sendfile to sendfile64 if we're L or newer."
am: f12d719b01

Change-Id: Id7bab533a4be040f5c3eac10a5df32e9b6820cfc

7 years agoMerge "Expand whitelist" am: b43a222ee7 am: 1551b7a9b2
Paul Lawrence [Mon, 20 Mar 2017 20:04:37 +0000 (20:04 +0000)]
Merge "Expand whitelist" am: b43a222ee7 am: 1551b7a9b2
am: 002e3daef9

Change-Id: I518cc83bfec8f33cbfd067cc749cbf54c62c974f

7 years agoMerge "Only rename fgetpos/fsetpos/fseeko/ftello/funopen if we're N or newer."
Elliott Hughes [Mon, 20 Mar 2017 20:01:16 +0000 (20:01 +0000)]
Merge "Only rename fgetpos/fsetpos/fseeko/ftello/funopen if we're N or newer."

7 years agoMerge "Only rename sendfile to sendfile64 if we're L or newer."
Elliott Hughes [Mon, 20 Mar 2017 20:01:06 +0000 (20:01 +0000)]
Merge "Only rename sendfile to sendfile64 if we're L or newer."

7 years agoMerge "Expand whitelist" am: b43a222ee7
Paul Lawrence [Mon, 20 Mar 2017 20:00:37 +0000 (20:00 +0000)]
Merge "Expand whitelist" am: b43a222ee7
am: 1551b7a9b2

Change-Id: I0edc4e1c1dcc90f80839214ac0b13f373c5e71da

7 years agoMerge "Expand whitelist"
Paul Lawrence [Mon, 20 Mar 2017 19:57:36 +0000 (19:57 +0000)]
Merge "Expand whitelist"
am: b43a222ee7

Change-Id: If0754c6fed7fc9d2704c6761e46643abb502a5ca

7 years agoOnly rename mmap to mmap64 if we're L or newer.
Dan Albert [Fri, 17 Mar 2017 18:47:09 +0000 (11:47 -0700)]
Only rename mmap to mmap64 if we're L or newer.

Without this, setting `__USE_FILE_OFFSET64` and targeting pre-L made
mmap entirely unavailable.

Test: make checkbuild
Bug: https://github.com/android-ndk/ndk/issues/332
Change-Id: I9f61c44f8d9ab5c7cae845c9f89a7d889c6df365

7 years agoMerge "Expand whitelist"
Treehugger Robot [Mon, 20 Mar 2017 19:52:12 +0000 (19:52 +0000)]
Merge "Expand whitelist"

7 years agoAdd end() method to bionic's ScopedTrace class
Dimitry Ivanov [Mon, 20 Mar 2017 17:54:52 +0000 (10:54 -0700)]
Add end() method to bionic's ScopedTrace class

Bug: http://b/27195126
Test: make
Change-Id: I8243629200606ca87b11cbd479ca093add42eb56

7 years agoExpand whitelist
Paul Lawrence [Mon, 20 Mar 2017 18:02:11 +0000 (11:02 -0700)]
Expand whitelist

Bug: 36435222
Test: App starts, plays game
Change-Id: If21f59e4d218be64fdac46115d35dc1ffb6fe771

7 years agoOnly rename fgetpos/fsetpos/fseeko/ftello/funopen if we're N or newer.
Elliott Hughes [Sat, 18 Mar 2017 01:56:08 +0000 (18:56 -0700)]
Only rename fgetpos/fsetpos/fseeko/ftello/funopen if we're N or newer.

Without this, setting __FILE_OFFSET_BITS to 64 and targeting pre-L
made these functions entirely unavailable.

Bug: https://github.com/android-ndk/ndk/issues/333
Test: builds
Change-Id: Id17ae3c070f8b2650a9bc9aa2aa2e92c5fcdf4ad

7 years agoOnly rename sendfile to sendfile64 if we're L or newer.
Elliott Hughes [Sat, 18 Mar 2017 01:50:12 +0000 (18:50 -0700)]
Only rename sendfile to sendfile64 if we're L or newer.

Without this, setting __FILE_OFFSET_BITS to 64 and targeting pre-L
made sendfile entirely unavailable.

Bug: https://github.com/android-ndk/ndk/issues/333
Test: builds
Change-Id: I82d326ff244473dd5443632ff6c19d726d5e29ee

7 years agoMerge "Add libc optimizations to bionic for MIPS" am: 9cb82a2c6b am: 2052e20fec
Prashant Patil [Fri, 17 Mar 2017 15:39:18 +0000 (15:39 +0000)]
Merge "Add libc optimizations to bionic for MIPS" am: 9cb82a2c6b am: 2052e20fec
am: 4a1b70e85d

Change-Id: Ic0444e783add8ec2d835303a83635523096681bd

7 years agoMerge "Add libc optimizations to bionic for MIPS" am: 9cb82a2c6b
Prashant Patil [Fri, 17 Mar 2017 15:36:18 +0000 (15:36 +0000)]
Merge "Add libc optimizations to bionic for MIPS" am: 9cb82a2c6b
am: 2052e20fec

Change-Id: I99ba763cf73ac3a186ca55e693214c29b92e019c

7 years agoMerge "Add libc optimizations to bionic for MIPS"
Prashant Patil [Fri, 17 Mar 2017 15:32:48 +0000 (15:32 +0000)]
Merge "Add libc optimizations to bionic for MIPS"
am: 9cb82a2c6b

Change-Id: I5b0417f2053ba28fb9cd104c8f51ef9b206bf194

7 years agoMerge "Add libc optimizations to bionic for MIPS"
Treehugger Robot [Fri, 17 Mar 2017 15:29:13 +0000 (15:29 +0000)]
Merge "Add libc optimizations to bionic for MIPS"

7 years agoMerge "Use libbase for realpath and dirname" am: e0561cb0c9 am: b1a44366b8
Dimitry Ivanov [Thu, 16 Mar 2017 20:47:04 +0000 (20:47 +0000)]
Merge "Use libbase for realpath and dirname" am: e0561cb0c9 am: b1a44366b8
am: ec08b7f0c1

Change-Id: I3d047b655c91ae4d612502c1772d02080274889f

7 years agoMerge "Use libbase for realpath and dirname" am: e0561cb0c9
Dimitry Ivanov [Thu, 16 Mar 2017 20:44:01 +0000 (20:44 +0000)]
Merge "Use libbase for realpath and dirname" am: e0561cb0c9
am: b1a44366b8

Change-Id: I5582ba5f2f250561146384e0fad116efd1da02cf

7 years agoMerge "Use libbase for realpath and dirname"
Dimitry Ivanov [Thu, 16 Mar 2017 20:42:01 +0000 (20:42 +0000)]
Merge "Use libbase for realpath and dirname"
am: e0561cb0c9

Change-Id: I7fe096792674724641548d62c9c6e7041ebce85b

7 years agoMerge "Use libbase for realpath and dirname"
Treehugger Robot [Thu, 16 Mar 2017 20:36:56 +0000 (20:36 +0000)]
Merge "Use libbase for realpath and dirname"

7 years agoUse libbase for realpath and dirname
Dimitry Ivanov [Thu, 16 Mar 2017 18:34:13 +0000 (11:34 -0700)]
Use libbase for realpath and dirname

Test: run bionic-unit-tests
Bug: http://b/31396973
Change-Id: Ie8dc60348b9c57892a77be6a24dadb42241f6b62

7 years agoAdd libc optimizations to bionic for MIPS
Prashant Patil [Thu, 16 Mar 2017 12:37:00 +0000 (18:07 +0530)]
Add libc optimizations to bionic for MIPS

Test: Used bionic tests available under bionic/tests folder.
      Tested for mips32r1/mips32r2/mips64r6 on emulators.

Change-Id: I589415ddc496df3f6067ae34cb33ca58b3a1f276
Signed-off-by: Prashant Patil <prashant.patil@imgtec.com>
7 years agoMerge "Split up the stack space tests into their own noinline functions." am: b2882dd...
Josh Gao [Thu, 16 Mar 2017 06:54:37 +0000 (06:54 +0000)]
Merge "Split up the stack space tests into their own noinline functions." am: b2882dd429 am: 96be725d4b
am: 5083f6ac85

Change-Id: I873e976f11347672d46497de647b2d672a9ef496

7 years agoMerge "Split up the stack space tests into their own noinline functions." am: b2882dd429
Josh Gao [Thu, 16 Mar 2017 06:52:06 +0000 (06:52 +0000)]
Merge "Split up the stack space tests into their own noinline functions." am: b2882dd429
am: 96be725d4b

Change-Id: I5a3105ec6ef5ba851b1e77ac2f0788964bb978f0

7 years agoMerge "Split up the stack space tests into their own noinline functions."
Josh Gao [Thu, 16 Mar 2017 06:49:38 +0000 (06:49 +0000)]
Merge "Split up the stack space tests into their own noinline functions."
am: b2882dd429

Change-Id: Id6212e053b0f4b886146224a962fd8744d5e8eb4

7 years agoMerge "Split up the stack space tests into their own noinline functions."
Josh Gao [Thu, 16 Mar 2017 06:44:58 +0000 (06:44 +0000)]
Merge "Split up the stack space tests into their own noinline functions."

7 years agoSplit up the stack space tests into their own noinline functions.
Josh Gao [Thu, 16 Mar 2017 02:42:05 +0000 (19:42 -0700)]
Split up the stack space tests into their own noinline functions.

Prevent the compiler from being too smart and allocating a stack buffer
at the beginning of a function.

Bug: http://b/36206043
Test: 32/64-bit dynamic tests pass, static ones still don't
Change-Id: I90c575be43a9dd6c4fefc0d8b514f1ae0405b994

7 years agoMerge "Enable ld-android on linux_bionic builds" am: 2390f83da4 am: 485abd93b7
Dan Willemsen [Wed, 15 Mar 2017 23:26:36 +0000 (23:26 +0000)]
Merge "Enable ld-android on linux_bionic builds" am: 2390f83da4 am: 485abd93b7
am: 4624109324

Change-Id: I49ed2cfee1e8ece4902db33298fe677658fec16c

7 years agoMerge "Enable ld-android on linux_bionic builds" am: 2390f83da4
Dan Willemsen [Wed, 15 Mar 2017 23:24:06 +0000 (23:24 +0000)]
Merge "Enable ld-android on linux_bionic builds" am: 2390f83da4
am: 485abd93b7

Change-Id: I09bff12bc796c1aaeda8104595443281640ec124

7 years agoMerge "Enable ld-android on linux_bionic builds"
Dan Willemsen [Wed, 15 Mar 2017 23:22:05 +0000 (23:22 +0000)]
Merge "Enable ld-android on linux_bionic builds"
am: 2390f83da4

Change-Id: Ic3c5db339df779def9c9ea0767706ace38977bf1

7 years agoMerge "Enable ld-android on linux_bionic builds"
Treehugger Robot [Wed, 15 Mar 2017 23:18:17 +0000 (23:18 +0000)]
Merge "Enable ld-android on linux_bionic builds"

7 years agoMerge "Add tests for pthread TLS leak." am: a4db9d6f41 am: 0531178d46
Josh Gao [Wed, 15 Mar 2017 22:18:01 +0000 (22:18 +0000)]
Merge "Add tests for pthread TLS leak." am: a4db9d6f41 am: 0531178d46
am: 9061b4b882

Change-Id: I9b200a538a31e8cc3fd71c1633f3e50852a2e188

7 years agoMerge "Add tests for pthread TLS leak." am: a4db9d6f41
Josh Gao [Wed, 15 Mar 2017 22:16:00 +0000 (22:16 +0000)]
Merge "Add tests for pthread TLS leak." am: a4db9d6f41
am: 0531178d46

Change-Id: I3739f8c2037dc089ab233f8e600d49156d994235

7 years agoMerge "Add tests for pthread TLS leak."
Josh Gao [Wed, 15 Mar 2017 22:14:01 +0000 (22:14 +0000)]
Merge "Add tests for pthread TLS leak."
am: a4db9d6f41

Change-Id: I595112f67b875a1f8cc841adaf9adf3c10a792b4

7 years agoMerge "Add tests for pthread TLS leak."
Treehugger Robot [Wed, 15 Mar 2017 22:09:27 +0000 (22:09 +0000)]
Merge "Add tests for pthread TLS leak."

7 years agoEnable ld-android on linux_bionic builds
Dan Willemsen [Wed, 15 Mar 2017 21:23:50 +0000 (14:23 -0700)]
Enable ld-android on linux_bionic builds

Bug: 31559095
Test: Enable host bionic, run soong
Change-Id: If94927c66c0c2dc74c213ca403d45e73508b0025

7 years agoAdd tests for pthread TLS leak.
Josh Gao [Tue, 14 Mar 2017 00:10:46 +0000 (17:10 -0700)]
Add tests for pthread TLS leak.

Add tests that ensure that threads don't leak memory mappings after
they exit.

Bug: http://b/36045112
Test: /data/nativetest/bionic-unit-tests/bionic-unit-tests --gtest_filter=*leak*
Test: /data/nativetest64/bionic-unit-tests/bionic-unit-tests --gtest_filter=*leak*
Change-Id: Id0c1194b5d2bb7d89947b1ade16eb0d768d8c5b7

7 years agoMerge "Extract format_string function." am: 616b2d87ea am: 3e33d38606
Dimitry Ivanov [Tue, 14 Mar 2017 01:15:08 +0000 (01:15 +0000)]
Merge "Extract format_string function." am: 616b2d87ea am: 3e33d38606
am: ee70242800

Change-Id: I1a0a491f8936b3d29e76726c44f134cdedf218ac

7 years agoMerge "Extract format_string function." am: 616b2d87ea
Dimitry Ivanov [Tue, 14 Mar 2017 01:10:06 +0000 (01:10 +0000)]
Merge "Extract format_string function." am: 616b2d87ea
am: 3e33d38606

Change-Id: Ic4bcfcda3accf40f4e35d3cff45bb92140483db2

7 years agoMerge "Extract format_string function."
Dimitry Ivanov [Tue, 14 Mar 2017 01:05:07 +0000 (01:05 +0000)]
Merge "Extract format_string function."
am: 616b2d87ea

Change-Id: Iddd05400705c54e522fade3af9008a4832257200

7 years agoMerge "Extract format_string function."
Treehugger Robot [Tue, 14 Mar 2017 00:58:14 +0000 (00:58 +0000)]
Merge "Extract format_string function."

7 years agoMerge "linker: add more directories to default lib paths" am: e5422d7d1f am: 1f45a4005d
Jiyong Park [Tue, 14 Mar 2017 00:31:37 +0000 (00:31 +0000)]
Merge "linker: add more directories to default lib paths" am: e5422d7d1f am: 1f45a4005d
am: cceba82bce

Change-Id: Ifdcdab915f05a28d37198cc4c318ce6f93ef1ef6

7 years agoMerge "linker: add more directories to default lib paths" am: e5422d7d1f
Jiyong Park [Tue, 14 Mar 2017 00:27:09 +0000 (00:27 +0000)]
Merge "linker: add more directories to default lib paths" am: e5422d7d1f
am: 1f45a4005d

Change-Id: Icfec6861ababe862d56dbf0fed546b4ca9918fb2

7 years agoMerge "linker: add more directories to default lib paths"
Jiyong Park [Tue, 14 Mar 2017 00:22:39 +0000 (00:22 +0000)]
Merge "linker: add more directories to default lib paths"
am: e5422d7d1f

Change-Id: Ie8dbc9b05827abf0a21ba29013cd381a69eaed73

7 years agoMerge "linker: add more directories to default lib paths"
Treehugger Robot [Tue, 14 Mar 2017 00:15:49 +0000 (00:15 +0000)]
Merge "linker: add more directories to default lib paths"

7 years agoExtract format_string function.
Dimitry Ivanov [Sat, 11 Mar 2017 22:35:38 +0000 (14:35 -0800)]
Extract format_string function.

Extract format_string function and add a test.

Test: run linker-unit-tests
Change-Id: I794a29aaf62e184438ce1a9224b88aa0586c17b5

7 years agoMerge "Support all architectures in seccomp" am: b1fe870a36 am: 6692dda3da
Paul Lawrence [Mon, 13 Mar 2017 20:25:19 +0000 (20:25 +0000)]
Merge "Support all architectures in seccomp" am: b1fe870a36 am: 6692dda3da
am: 65a77a9318

Change-Id: I93a8f2f2878852dc375375a415a5fb6a247f1e49

7 years agoMerge "Support all architectures in seccomp" am: b1fe870a36
Paul Lawrence [Mon, 13 Mar 2017 20:20:49 +0000 (20:20 +0000)]
Merge "Support all architectures in seccomp" am: b1fe870a36
am: 6692dda3da

Change-Id: I7929679d74858493ad0d386068c8f1025c29025a

7 years agoMerge "Support all architectures in seccomp"
Paul Lawrence [Mon, 13 Mar 2017 20:16:16 +0000 (20:16 +0000)]
Merge "Support all architectures in seccomp"
am: b1fe870a36

Change-Id: I1350a35e567ba7e8f37c7e5c424ac90e4577f58a

7 years agoMerge "Support all architectures in seccomp"
Treehugger Robot [Mon, 13 Mar 2017 20:10:48 +0000 (20:10 +0000)]
Merge "Support all architectures in seccomp"

7 years agoMerge "Apply ASan linker path translation to subdirectories." am: b3473f20db am:...
Evgenii Stepanov [Mon, 13 Mar 2017 18:52:13 +0000 (18:52 +0000)]
Merge "Apply ASan linker path translation to subdirectories." am: b3473f20db am: ecc9b03dad
am: 5e8ea4cc03

Change-Id: I30d8b4f8b9d7bf048754c05f57ee4e0ffe5ca6df

7 years agoMerge "Apply ASan linker path translation to subdirectories." am: b3473f20db
Evgenii Stepanov [Mon, 13 Mar 2017 18:47:41 +0000 (18:47 +0000)]
Merge "Apply ASan linker path translation to subdirectories." am: b3473f20db
am: ecc9b03dad

Change-Id: Ib7eb3d893875eeb3774a19463e4b3b19e4125fa4

7 years agoMerge "Apply ASan linker path translation to subdirectories."
Evgenii Stepanov [Mon, 13 Mar 2017 18:43:12 +0000 (18:43 +0000)]
Merge "Apply ASan linker path translation to subdirectories."
am: b3473f20db

Change-Id: I8163d0d5be8665511814a7468d26b7146bfb66e0

7 years agoMerge "Apply ASan linker path translation to subdirectories."
Treehugger Robot [Mon, 13 Mar 2017 18:37:29 +0000 (18:37 +0000)]
Merge "Apply ASan linker path translation to subdirectories."

7 years agoSupport all architectures in seccomp
Paul Lawrence [Fri, 17 Feb 2017 18:22:03 +0000 (10:22 -0800)]
Support all architectures in seccomp

Test: Make sure arm, x86, x86_64, mips, mips64 emulators boot
      Make sure sailfish still boots
      Ran CTS test from
      https://android-review.googlesource.com/#/c/348671/3 and it passed
      The instructions for how to run mips emulators above worked, but
      the CTS tests did not seem to actually run.

Change-Id: Iddee5acdb19ed32c7bd4657573313ca439cf6a49

7 years agoMerge "Fix the way malloc debug returns info." am: c0f275d028 am: 0549e49416
Christopher Ferris [Mon, 13 Mar 2017 18:02:09 +0000 (18:02 +0000)]
Merge "Fix the way malloc debug returns info." am: c0f275d028 am: 0549e49416
am: cbf586a8a7

Change-Id: I192343418866aac3ee0c7e69082d947ed3a8903f

7 years agoMerge "Fix the way malloc debug returns info." am: c0f275d028
Christopher Ferris [Mon, 13 Mar 2017 17:58:08 +0000 (17:58 +0000)]
Merge "Fix the way malloc debug returns info." am: c0f275d028
am: 0549e49416

Change-Id: I81f59836faa02204afffd4943b12a7411f7bac76

7 years agoMerge "Fix the way malloc debug returns info."
Christopher Ferris [Mon, 13 Mar 2017 17:54:08 +0000 (17:54 +0000)]
Merge "Fix the way malloc debug returns info."
am: c0f275d028

Change-Id: I6679b9cd5d93017337da73ee2f69dd16b937b033

7 years agoMerge "Fix the way malloc debug returns info."
Christopher Ferris [Mon, 13 Mar 2017 17:47:31 +0000 (17:47 +0000)]
Merge "Fix the way malloc debug returns info."

7 years agoApply ASan linker path translation to subdirectories.
Evgenii Stepanov [Mon, 3 Oct 2016 22:09:28 +0000 (15:09 -0700)]
Apply ASan linker path translation to subdirectories.

Specifically, this change would translate /system/lib/hw/foo.so to /data/lib/hw/foo.so.

Bug: 30320104
Test: in SANITIZE_TARGET=address build, /proc/$PID/maps for
  system_server show libraries from /data/lib64/hw and not from
  /system/lib64/hw.
Change-Id: Ia1fa22fa1ca088fe76e41308762efe037541fc74