aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Chojnacki <marcinch7@gmail.com>2013-11-10 13:59:47 +0100
committerSteve Kondik <shade@chemlab.org>2016-08-04 23:27:32 -0700
commit92595081575c82ace07201a3ea32004eba968c0b (patch)
tree07586a49a41d4a7d9e43cc34e5894083d00fc7e7
parent545862d54af2b210bba725cc655857f7d7068ad9 (diff)
downloadandroid_bionic-92595081575c82ace07201a3ea32004eba968c0b.tar.gz
android_bionic-92595081575c82ace07201a3ea32004eba968c0b.tar.bz2
android_bionic-92595081575c82ace07201a3ea32004eba968c0b.zip
linker: Avoid logcat spam with some blobs
Many of pre-kitkat blobs would emit a "text relocations" warning which makes logcat completely unreadable. This commit will hide this warning to prevent it. Change-Id: I8f32b5bbfea33d732320b3ac29da6b0027fbd521 Reworked-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
-rw-r--r--linker/linker.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/linker/linker.cpp b/linker/linker.cpp
index 6019c9115..99c02d810 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -3023,7 +3023,11 @@ bool soinfo::link_image(const soinfo_list_t& global_group, const soinfo_list_t&
#endif
// Make segments writable to allow text relocations to work properly. We will later call
// phdr_table_protect_segments() after all of them are applied and all constructors are run.
+#if defined(USE_LEGACY_BLOBS)
+ DEBUG("%s has text relocations. This is wasting memory and prevents "
+#else
DL_WARN("%s has text relocations. This is wasting memory and prevents "
+#endif
"security hardening. Please fix.", get_realpath());
if (phdr_table_unprotect_segments(phdr, phnum, load_bias) < 0) {
DL_ERR("can't unprotect loadable segments for \"%s\": %s",