diff options
author | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2019-02-15 18:57:20 +0000 |
---|---|---|
committer | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2019-02-15 18:57:20 +0000 |
commit | c782f9e4052823f7a494bf6653a25b9fdc60594e (patch) | |
tree | c3ec31792eeade4f801c9d34b121bba6b0805566 /compiler | |
parent | e6b8d0b596babe42ffb28befe42c0ea5d0b1fd8e (diff) | |
download | fpc-c782f9e4052823f7a494bf6653a25b9fdc60594e.tar.gz |
* properly quote pathes for objcopy calls, resolves #35072
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@41324 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/systems/t_embed.pas | 8 |
1 files 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 } |