首页
社区
课程
招聘
[求助]app_process has text relocations
发表于: 2015-7-20 14:24 24547

[求助]app_process has text relocations

2015-7-20 14:24
24547
在做uiautomator时命令行显示了app_process has text relocations.This is wasting memory and is a security risk. Please fix.这个警告提示,虽然最后没有影响程序的运行,但是想知道是那方面的原因

[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 2676
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
https://android.googlesource.com/platform/bionic/+/master/linker/linker.cpp 2999行
#if !defined(__LP64__)
  if (has_text_relocations) {
    // Fail if app is targeting sdk version > 22
    // TODO (dimitry): remove != __ANDROID_API__ check once http://b/20020312 is fixed
    if (get_application_target_sdk_version() != __ANDROID_API__
        && get_application_target_sdk_version() > 22) {
      DL_ERR("%s: has text relocations", get_realpath());
      return false;
    }
    // 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.
[COLOR="Red"]    DL_WARN("%s has text relocations. This is wasting memory and prevents "
            "security hardening. Please fix.", get_realpath());[/COLOR]
    if (phdr_table_unprotect_segments(phdr, phnum, load_bias) < 0) {
      DL_ERR("can't unprotect loadable segments for \"%s\": %s",
             get_realpath(), strerror(errno));
      return false;
    }
  }
#endif


https://code.google.com/p/android/issues/detail?id=23203根据这里的说法,只要使用最新的toolchain编译app_process就行了。不过app_process是android系统的,说明手机的生产厂商对安全不重视。
2015-7-20 16:29
0
游客
登录 | 注册 方可回帖
返回
//