fix the crashing problem. Do not use --debug-ir; remove -s in LD