Lines Matching refs:elf
67 elf = ELF()
68 self.assertEqual(elf, eval(repr(elf)))
70 elf = ELF(ei_class=ELF.ELFCLASS32, ei_data=ELF.ELFDATA2LSB,
73 self.assertEqual(elf, eval(repr(elf)))
79 elf = ELF(ELF.ELFCLASS32)
80 self.assertEqual('32', elf.elf_class_name)
81 self.assertTrue(elf.is_32bit)
82 self.assertFalse(elf.is_64bit)
84 elf = ELF(ELF.ELFCLASS64)
85 self.assertEqual('64', elf.elf_class_name)
86 self.assertFalse(elf.is_32bit)
87 self.assertTrue(elf.is_64bit)
108 elf = ELF()
109 self.assertEqual([], elf.dt_rpath)
110 self.assertEqual([], elf.dt_runpath)
112 elf = ELF(None, None, 0, ['a'], ['b'])
113 self.assertEqual(['a'], elf.dt_rpath)
114 self.assertEqual(['b'], elf.dt_runpath)
118 elf = ELF(ELF.ELFCLASS32, ELF.ELFDATA2LSB, 183, ['a'], ['b'],
122 elf.dump(f)
195 elf = ELF(dt_needed=['libnativehelper.so'])
196 self.assertTrue(elf.is_jni_lib())
198 elf = ELF(dt_needed=['libandroid_runtime.so'])
199 self.assertTrue(elf.is_jni_lib())
201 elf = ELF(dt_needed=['libc.so'])
202 self.assertFalse(elf.is_jni_lib())
206 elf = ELF(imported_symbols={'JNI_CreateJavaVM'})
207 self.assertTrue(elf.is_jni_lib())
209 elf = ELF(exported_symbols={'JNI_CreateJavaVM'})
210 self.assertTrue(elf.is_jni_lib())
212 elf = ELF(imported_symbols={'Java_com_example_Example_test'})
213 self.assertTrue(elf.is_jni_lib())
215 elf = ELF(exported_symbols={'Java_com_example_Example_test'})
216 self.assertTrue(elf.is_jni_lib())
218 elf = ELF(imported_symbols={'printf'})
219 self.assertFalse(elf.is_jni_lib())
221 elf = ELF(exported_symbols={'printf'})
222 self.assertFalse(elf.is_jni_lib())