OSDN Git Service

Fix x86 system calls made from ELF preinit.
authorElliott Hughes <enh@google.com>
Wed, 29 Mar 2017 20:48:02 +0000 (13:48 -0700)
committerElliott Hughes <enh@google.com>
Wed, 29 Mar 2017 23:15:08 +0000 (16:15 -0700)
commit842423911f65eab4a36e923bf63f81e2a53ba256
tree320b57247c41c5a40ca0ce203e2fdf88959814c5
parente7cdb2953aa8846826082ee11d571e67a4c1246b
Fix x86 system calls made from ELF preinit.

Used by CFI, so broke cfi_test#early_init@x86, but I've added a specific
test for this (and a similar test for getauxval from preinit, which this
patch does not fix).

Bug: http://b/35885875
Test: ran tests

(cherry picked from commit eb04ed506fbb0561b677d9518c9bae33f0262b03)

Change-Id: Ie9da1bf4c2dcc23be7d75c739ae8549309813f88
libc/bionic/libc_init_common.cpp
tests/dl_test.cpp
tests/libs/Android.bp
tests/libs/libs_utils.h
tests/libs/preinit_getauxval_test_helper.cpp [new file with mode: 0644]
tests/libs/preinit_syscall_test_helper.cpp [new file with mode: 0644]