support libpatch_patch for ARM and thumb