summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/tests/malloc_hooks_tests.cpp
diff options
context:
space:
mode:
authorDimitry Ivanov <dimitry@google.com>2016-08-24 14:14:58 -0700
committerDimitry Ivanov <dimitry@google.com>2016-08-25 10:55:26 -0700
commita6f3b63f33d888b9d9030a03e4270e208d97a604 (patch)
treea8013675160fa904c29059bbe0dce6e16ec6b92f /libc/malloc_hooks/tests/malloc_hooks_tests.cpp
parent56762e036ba4dafee2c25dabddd4dc6f7b65f2a6 (diff)
linker: warn about W+E load segments
No mapped segment from the elf file can be writable and executable at the same time. This commit adds a warning for malformed PT_LOAD segments in the elf-files. Change-Id: I5e1e41bc2aabc209d3b07dd6ca2689a394294628 Test: flip protection flag for libtest_empty.so (used hexedit), adb sync Test: run bionic-unit-tests and make sure it displays the warning. Bug: http://b/30146890
Diffstat (limited to 'libc/malloc_hooks/tests/malloc_hooks_tests.cpp')
0 files changed, 0 insertions, 0 deletions