Fix lpm with TARGET_SMALL_BOOTSIZE