From e3546cf5af9cb17fd98cba5fa50f54ad16e14c9e Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 15 Feb 2019 18:57:20 +0000 Subject: [PATCH] * properly quote pathes for objcopy calls, resolves #35072 git-svn-id: trunk@41324 - --- compiler/systems/t_embed.pas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/systems/t_embed.pas b/compiler/systems/t_embed.pas index da1fc7874f..89ca2f9bee 100644 --- a/compiler/systems/t_embed.pas +++ b/compiler/systems/t_embed.pas @@ -1311,12 +1311,12 @@ begin if success and (target_info.system in [system_arm_embedded,system_avr_embedded,system_mipsel_embedded]) then begin success:=DoExec(FindUtil(utilsprefix+'objcopy'),'-O ihex '+ - ChangeFileExt(current_module.exefilename,'.elf')+' '+ - ChangeFileExt(current_module.exefilename,'.hex'),true,false); + maybequoted(ScriptFixFileName(ChangeFileExt(current_module.exefilename,'.elf')))+' '+ + maybequoted(ScriptFixFileName(ChangeFileExt(current_module.exefilename,'.hex'))),true,false); if success then success:=DoExec(FindUtil(utilsprefix+'objcopy'),'-O binary '+ - ChangeFileExt(current_module.exefilename,'.elf')+' '+ - ChangeFileExt(current_module.exefilename,'.bin'),true,false); + maybequoted(ScriptFixFileName(ChangeFileExt(current_module.exefilename,'.elf')))+' '+ + maybequoted(ScriptFixFileName(ChangeFileExt(current_module.exefilename,'.bin'))),true,false); end; MakeExecutable:=success; { otherwise a recursive call to link method }