LOG_I(
"==================reset_soinfo==================="
);
LOG_I(
"phdr_table_ old=%lx, new=%p"
,
*
(
long
*
)((char
*
)mysoinfo),myso.phdr_table_);
*
(
long
*
)((char
*
)mysoinfo)
=
reinterpret_cast<
long
>(myso.phdr_table_);
LOG_I(
"phdr_num_ old=%ld, new=%ld"
,
*
(size_t
*
)((char
*
)mysoinfo
+
8
),myso.phdr_num_);
*
(size_t
*
)((char
*
)mysoinfo
+
8
)
=
myso.phdr_num_;
LOG_I(
"load_start_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
16
),reinterpret_cast<
long
>(myso.load_start_));
*
(
long
*
)((char
*
)mysoinfo
+
16
)
=
reinterpret_cast<
long
>(myso.load_start_);
LOG_I(
"load_size_ old=%ld, new=%ld"
,
*
(size_t
*
)((char
*
)mysoinfo
+
24
),myso.load_size_);
*
(size_t
*
)((char
*
)mysoinfo
+
24
)
=
myso.load_size_;
LOG_I(
"dynamic_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
32
),(
long
)myso.dynamic_);
*
(
long
*
)((char
*
)mysoinfo
+
32
)
=
(
long
) myso.dynamic_;
LOG_I(
"strtab_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
56
) ,(
long
)myso.strtab_);
*
(
long
*
)((char
*
)mysoinfo
+
56
)
=
reinterpret_cast<
long
>(myso.strtab_);
LOG_I(
"sym_table_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
64
) ,(
long
)myso.sym_table_);
*
(
long
*
)((char
*
)mysoinfo
+
64
)
=
reinterpret_cast<
long
>(myso.sym_table_);
/
/
DT_HASH
*
(size_t
*
)((char
*
)mysoinfo
+
72
)
=
myso.nbucket_;
*
(size_t
*
)((char
*
)mysoinfo
+
80
)
=
myso.nchain_;
*
(
long
*
)((char
*
)mysoinfo
+
88
)
=
reinterpret_cast<
long
>(myso.bucket_);
*
(
long
*
)((char
*
)mysoinfo
+
96
)
=
reinterpret_cast<
long
>(myso.chain_);
LOG_I(
"plt_rela_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
104
) ,(
long
)myso.jum_rel_tab_);
*
(
long
*
)((char
*
)mysoinfo
+
104
)
=
reinterpret_cast<
long
>(myso.jum_rel_tab_);
LOG_I(
"plt_rela_count_ old=%ld, new=%ld"
,
*
(size_t
*
)((char
*
)mysoinfo
+
112
) ,myso.plt_rela_count_);
*
(size_t
*
)((char
*
)mysoinfo
+
112
)
=
myso.plt_rela_count_;
LOG_I(
"rela_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
120
) ,(
long
)myso.rela_table_);
*
(
long
*
)((char
*
)mysoinfo
+
120
)
=
reinterpret_cast<
long
>(myso.rela_table_);
LOG_I(
"rela_count_ old=%ld, new=%ld"
,
*
(size_t
*
)((char
*
)mysoinfo
+
128
) ,myso.rela_count_);
*
(size_t
*
)((char
*
)mysoinfo
+
128
)
=
myso.rela_count_;
LOG_E(
"preinit_array_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
136
) ,reinterpret_cast<
long
>(myso.preinit_array_));
*
(
long
*
)((char
*
)mysoinfo
+
136
)
=
reinterpret_cast<
long
>(myso.preinit_array_);
LOG_I(
"preinit_array_count_ old=zu, new=%zu"
,
*
(size_t
*
)((char
*
)mysoinfo
+
144
) ,myso.preinit_array_count_);
*
(size_t
*
)((char
*
)mysoinfo
+
144
)
=
myso.preinit_array_count_;
LOG_I(
"init_array_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
152
) ,(
long
)myso.init_array_);
*
(
long
*
)((char
*
)mysoinfo
+
152
)
=
reinterpret_cast<
long
>(myso.init_array_);
LOG_I(
"init_array_count_ old=%ld, new=%zu"
,
*
(size_t
*
)((char
*
)mysoinfo
+
160
) ,myso.init_array_count_);
*
(size_t
*
)((char
*
)mysoinfo
+
160
)
=
myso.init_array_count_;
LOG_I(
"fini_array_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
168
) ,(
long
)myso.fini_array_);
*
(
long
*
)((char
*
)mysoinfo
+
168
)
=
reinterpret_cast<
long
>(myso.fini_array_);
LOG_I(
"fini_array_count_ old=%ld, new=%ld"
,
*
(size_t
*
)((char
*
)mysoinfo
+
176
) ,myso.fini_array_count_);
*
(size_t
*
)((char
*
)mysoinfo
+
176
)
=
myso.fini_array_count_;
LOG_I(
"init_func_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
184
) ,(
long
)myso.init_func_);
*
(
long
*
)((char
*
)mysoinfo
+
184
)
=
reinterpret_cast<
long
>(myso.init_func_);
LOG_I(
"fini_func_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
192
) ,(
long
)myso.fini_func_);
*
(
long
*
)((char
*
)mysoinfo
+
192
)
=
reinterpret_cast<
long
>(myso.fini_func_);
LOG_I(
"load_bias_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
256
) ,(
long
)myso.load_bias_);
*
(size_t
*
)((char
*
)mysoinfo
+
256
)
=
myso.load_bias_;
LOG_I(
"strtab_size_ old=%ld, new=%ld"
,
*
(size_t
*
)((char
*
)mysoinfo
+
336
),myso.strtab_size_);
*
(size_t
*
)((char
*
)mysoinfo
+
336
)
=
myso.strtab_size_;
/
/
DT_GNU_HASH
LOG_I(
"gnu_nbucket_ old=%ld, new=%ld"
,
*
(size_t
*
)((char
*
)mysoinfo
+
344
),myso.gnu_nbucket_);
*
(size_t
*
)((char
*
)mysoinfo
+
344
)
=
myso.gnu_nbucket_;
LOG_I(
"gnu_bucket_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
352
) ,(
long
)myso.gnu_bucket_);
*
(
long
*
)((char
*
)mysoinfo
+
352
)
=
reinterpret_cast<
long
>(myso.gnu_bucket_);
LOG_I(
"gnu_chain_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
360
) ,(
long
)myso.gnu_chain_);
*
(
long
*
)((char
*
)mysoinfo
+
360
)
=
reinterpret_cast<
long
>(myso.gnu_chain_);
LOG_I(
"gnu_maskwords_ old=%u, new=%u"
,
*
(uint32_t
*
)((char
*
)mysoinfo
+
368
),myso.gnu_maskwords_);
*
(uint32_t
*
)((char
*
)mysoinfo
+
368
)
=
myso.gnu_maskwords_;
LOG_I(
"gnu_shift2_ old=%u, new=%u"
,
*
(uint32_t
*
)((char
*
)mysoinfo
+
372
),myso.gnu_shift2_);
*
(uint32_t
*
)((char
*
)mysoinfo
+
372
)
=
myso.gnu_shift2_;
LOG_I(
"gnu_bloom_filter_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
376
) ,(
long
)myso.gnu_bloom_filter_);
*
(
long
*
)((char
*
)mysoinfo
+
376
)
=
reinterpret_cast<
long
>(myso.gnu_bloom_filter_);
LOG_I(
"android_relocs_ old=%u, new=%p"
,
*
(uint8_t
*
)((char
*
)mysoinfo
+
392
),myso.android_relocs_);
*
(uint8_t
*
)((char
*
)mysoinfo
+
392
)
=
reinterpret_cast<
long
>(myso.android_relocs_);
LOG_I(
"android_relocs_size_ old=%zu, new=%zu"
,
*
(size_t
*
)((char
*
)mysoinfo
+
400
),myso.android_relocs_size_);
*
(size_t
*
)((char
*
)mysoinfo
+
400
)
=
myso.android_relocs_size_;
LOG_I(
"versym_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
440
) ,(
long
)myso.versym_);
*
(
long
*
)((char
*
)mysoinfo
+
440
)
=
(
long
) myso.versym_;
LOG_I(
"verdef_ptr_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
448
) ,(
long
)myso.verdef_ptr_);
*
(
long
*
)((char
*
)mysoinfo
+
448
)
=
(
long
)myso.verdef_ptr_;
LOG_I(
"verdef_cnt_ old=%ld, new=%ld"
,
*
(size_t
*
)((char
*
)mysoinfo
+
456
),myso.verdef_cnt_);
*
(size_t
*
)((char
*
)mysoinfo
+
456
)
=
myso.verdef_cnt_;
LOG_I(
"verneed_ptr_ old=%lx, new=%lx"
,
*
(
long
*
)((char
*
)mysoinfo
+
464
) ,(
long
)myso.verneed_ptr_);
*
(
long
*
)((char
*
)mysoinfo
+
464
)
=
(
long
)myso.verneed_ptr_;
LOG_I(
"verneed_cnt_ old=%ld, new=%ld"
,
*
(size_t
*
)((char
*
)mysoinfo
+
472
),myso.verneed_cnt_);
*
(size_t
*
)((char
*
)mysoinfo
+
472
)
=
myso.verneed_cnt_;