commit | 0a932127041d1c87335421da297135dd2eb98538 | [log] [tgz] |
---|---|---|
author | Yi-yo Chiang <yochiang@google.com> | Thu Aug 02 17:36:32 2018 +0800 |
committer | Yi-yo Chiang <yochiang@google.com> | Thu Aug 02 17:51:36 2018 +0800 |
tree | ed0c1749b43b5a683033d5cb267934ddc62cd1ee | |
parent | 77b844cb9888154d519a3e3005b77250bb883a23 [diff] |
Check machine arch before detecting relocation type This commit makes vndk-vtable-dumper to check ELF file machine arch (x86/x86_64/arm/arm64) when detecting relocation type, as relocation type constants such as R_ARM_ABS32, R_386_32 are not gauranteed to be unique across different machines. Test: m vndk-vtable-dumper Test: vndk-vtable-dumper libziparchive.so # with x86/x86_64/arm/arm64 arch Change-Id: I58d6d7bff7b7eb16e96cbe02f4989e45a17fd295