fix segault with linaro armsoc