radare2-extras icon indicating copy to clipboard operation
radare2-extras copied to clipboard

Unicorn initialization parameters change for ARM

Open elouet opened this issue 3 years ago • 1 comments

For the ARM architecture, it appears that the following line no longer works err = uc_open (UC_ARCH_ARM, bits==64? UC_MODE_64: UC_MODE_32, &uh); instead I tried err = uc_open (bits==64? UC_ARCH_ARM64: UC_ARCH_ARM, UC_MODE_ARM, &uh); which works better. My version of unicorn (build from latest source) won't intialize with the former statement.

elouet avatar Feb 10 '22 12:02 elouet

we may want to look into the second parameters which allows for THUMB mode, but then what happens with mixed modes, I'm not sure.

elouet avatar Feb 10 '22 12:02 elouet