Bug fix the export function to the IAR.
Bug fix the export function to the IAR.

We added the IAR tool chain to release build.

tung7970/mbed-os,NXPmicro/mbed,monkiineko/mbed-os,mikaleppanen/mbed-os,andreaslarssonublox/mbed,nvlsianpu/mbed,karsev/mbed-os,CalSol/mbed,Shengliang/mbed,nRFMesh/mbed-os,j-greffe/mbed-os,geky/mbed,mmorenobarm/mbed-os,adustm/mbed,adustm/mbed,svogl/mbed-os,karsev/mbed-os,andcor02/mbed-os,bikeNomad/mbed,RonEld/mbed,dbestm/mbed,bcostm/mbed-os,tung7970/mbed-os,CalSol/mbed,HeadsUpDisplayInc/mbed,geky/mbed,karsev/mbed-os,betzw/mbed-os,Archcady/mbed-os,tung7970/mbed-os-1,bcostm/mbed-os,CalSol/mbed,catiedev/mbed-os,adustm/mbed,svastm/mbed,andcor02/mbed-os,infinnovation/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,nvlsianpu/mbed,fanghuaqi/mbed,ARM-software/mbed-beetle,radhika-raghavendran/mbed-os5.1-onsemi,andreaslarssonublox/mbed,ARM-software/mbed-beetle,karsev/mbed-os,pradeep-gr/mbed-os5-onsemi,mbedmicro/mbed,maximmbed/mbed,ryankurte/mbed-os,betzw/mbed-os,RonEld/mbed,rgrover/mbed,tung7970/mbed-os,pradeep-gr/mbed-os5-onsemi,HeadsUpDisplayInc/mbed,bulislaw/mbed-os,arostm/mbed-os,netzimme/mbed-os,nvlsianpu/mbed,bulislaw/mbed-os,fvincenzo/mbed-os,pradeep-gr/mbed-os5-onsemi,geky/mbed,NXPmicro/mbed,c1728p9/mbed-os,infinnovation/mbed-os,screamerbg/mbed,fanghuaqi/mbed,maximmbed/mbed,screamerbg/mbed,kl-cruz/mbed-os,maximmbed/mbed,tung7970/mbed-os-1,mazimkhan/mbed-os,fvincenzo/mbed-os,kl-cruz/mbed-os,adamgreen/mbed,mikaleppanen/mbed-os,jeremybrodt/mbed,fahhem/mbed-os,bikeNomad/mbed,fahhem/mbed-os,theotherjimmy/mbed,HeadsUpDisplayInc/mbed,nRFMesh/mbed-os,mbedmicro/mbed,svastm/mbed,bcostm/mbed-os,c1728p9/mbed-os,ryankurte/mbed-os,RonEld/mbed,Shengliang/mbed,andreaslarssonublox/mbed,mmorenobarm/mbed-os,nRFMesh/mbed-os,infinnovation/mbed-os,svogl/mbed-os,tung7970/mbed-os-1,kl-cruz/mbed-os,mmorenobarm/mbed-os,andcor02/mbed-os,netzimme/mbed-os,arostm/mbed-os,kjbracey-arm/mbed,mikaleppanen/mbed-os,DanKupiniak/mbed,catiedev/mbed-os,c1728p9/mbed-os,tung7970/mbed-os-1,pradeep-gr/mbed-os5-onsemi,infinnovation/mbed-os,ryankurte/mbed-os,CalSol/mbed,svogl/mbed-os,maximmbed/mbed,NXPmicro/mbed,svastm/mbed,fvincenzo/mbed-os,rgrover/mbed,YarivCol/mbed-os,YarivCol/mbed-os,CalSol/mbed,adamgreen/mbed,j-greffe/mbed-os,RonEld/mbed,rgrover/mbed,cvtsi2sd/mbed-os,adamgreen/mbed,kl-cruz/mbed-os,monkiineko/mbed-os,screamerbg/mbed,ryankurte/mbed-os,jeremybrodt/mbed,Shengliang/mbed,theotherjimmy/mbed,adustm/mbed,svastm/mbed,Archcady/mbed-os,fahhem/mbed-os,rgrover/mbed,monkiineko/mbed-os,DanKupiniak/mbed,cvtsi2sd/mbed-os,HeadsUpDisplayInc/mbed,mazimkhan/mbed-os,YarivCol/mbed-os,cvtsi2sd/mbed-os,kl-cruz/mbed-os,fvincenzo/mbed-os,bulislaw/mbed-os,bulislaw/mbed-os,fanghuaqi/mbed,nvlsianpu/mbed,bcostm/mbed-os,nRFMesh/mbed-os,fahhem/mbed-os,CalSol/mbed,catiedev/mbed-os,Shengliang/mbed,adamgreen/mbed,ryankurte/mbed-os,ARM-software/mbed-beetle,dbestm/mbed,nRFMesh/mbed-os,betzw/mbed-os,karsev/mbed-os,nRFMesh/mbed-os,NXPmicro/mbed,Archcady/mbed-os,andcor02/mbed-os,pradeep-gr/mbed-os5-onsemi,nvlsianpu/mbed,geky/mbed,kjbracey-arm/mbed,ryankurte/mbed-os,DanKupiniak/mbed,catiedev/mbed-os,fahhem/mbed-os,cvtsi2sd/mbed-os,cvtsi2sd/mbed-os,theotherjimmy/mbed,NXPmicro/mbed,netzimme/mbed-os,mikaleppanen/mbed-os,mbedmicro/mbed,Shengliang/mbed,Shengliang/mbed,adustm/mbed,dbestm/mbed,cvtsi2sd/mbed-os,c1728p9/mbed-os,mazimkhan/mbed-os,kjbracey-arm/mbed,mmorenobarm/mbed-os,svogl/mbed-os,netzimme/mbed-os,catiedev/mbed-os,rgrover/mbed,jeremybrodt/mbed,bikeNomad/mbed,andcor02/mbed-os,j-greffe/mbed-os,maximmbed/mbed,catiedev/mbed-os,fanghuaqi/mbed,mikaleppanen/mbed-os,bikeNomad/mbed,tung7970/mbed-os-1,monkiineko/mbed-os,theotherjimmy/mbed,mazimkhan/mbed-os,RonEld/mbed,RonEld/mbed,kl-cruz/mbed-os,jeremybrodt/mbed,infinnovation/mbed-os,andreaslarssonublox/mbed,betzw/mbed-os,theotherjimmy/mbed,svastm/mbed,Archcady/mbed-os,maximmbed/mbed,screamerbg/mbed,radhika-raghavendran/mbed-os5.1-onsemi,dbestm/mbed,netzimme/mbed-os,c1728p9/mbed-os,betzw/mbed-os,j-greffe/mbed-os,bikeNomad/mbed,pradeep-gr/mbed-os5-onsemi,karsev/mbed-os,DanKupiniak/mbed,kjbracey-arm/mbed,radhika-raghavendran/mbed-os5.1-onsemi,bcostm/mbed-os,j-greffe/mbed-os,adamgreen/mbed,infinnovation/mbed-os,arostm/mbed-os,adustm/mbed,bulislaw/mbed-os,ARM-software/mbed-beetle,mmorenobarm/mbed-os,dbestm/mbed,dbestm/mbed,j-greffe/mbed-os,c1728p9/mbed-os,Archcady/mbed-os,mazimkhan/mbed-os,fanghuaqi/mbed,theotherjimmy/mbed,mbedmicro/mbed,svogl/mbed-os,YarivCol/mbed-os,tung7970/mbed-os,fahhem/mbed-os,YarivCol/mbed-os,HeadsUpDisplayInc/mbed,radhika-raghavendran/mbed-os5.1-onsemi,bulislaw/mbed-os,svogl/mbed-os,arostm/mbed-os,monkiineko/mbed-os,fvincenzo/mbed-os,bcostm/mbed-os,arostm/mbed-os,andreaslarssonublox/mbed,betzw/mbed-os,mikaleppanen/mbed-os,andcor02/mbed-os,monkiineko/mbed-os,arostm/mbed-os,geky/mbed,mazimkhan/mbed-os,NXPmicro/mbed,screamerbg/mbed,netzimme/mbed-os,YarivCol/mbed-os,mbedmicro/mbed,mmorenobarm/mbed-os,screamerbg/mbed,HeadsUpDisplayInc/mbed,Archcady/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,jeremybrodt/mbed,nvlsianpu/mbed,adamgreen/mbed,tung7970/mbed-os