@@ -60,15 +60,15 @@ func (s *Linker) Run(context map[string]interface{}) error {
60
60
warningsLevel := context [constants .CTX_WARNINGS_LEVEL ].(string )
61
61
logger := context [constants .CTX_LOGGER ].(i18n.Logger )
62
62
63
- err = link (objectFiles , coreDotARelPath , buildProperties , verbose , warningsLevel , logger )
63
+ err = link (objectFiles , coreDotARelPath , coreArchiveFilePath , buildProperties , verbose , warningsLevel , logger )
64
64
if err != nil {
65
65
return utils .WrapError (err )
66
66
}
67
67
68
68
return nil
69
69
}
70
70
71
- func link (objectFiles []string , coreArchiveFilePath string , buildProperties map [string ]string , verbose bool , warningsLevel string , logger i18n.Logger ) error {
71
+ func link (objectFiles []string , coreDotARelPath string , coreArchiveFilePath string , buildProperties map [string ]string , verbose bool , warningsLevel string , logger i18n.Logger ) error {
72
72
optRelax := addRelaxTrickIfATMEGA2560 (buildProperties )
73
73
74
74
objectFiles = utils .Map (objectFiles , wrapWithDoubleQuotes )
@@ -77,7 +77,8 @@ func link(objectFiles []string, coreArchiveFilePath string, buildProperties map[
77
77
properties := utils .MergeMapsOfStrings (make (map [string ]string ), buildProperties )
78
78
properties [constants .BUILD_PROPERTIES_COMPILER_C_ELF_FLAGS ] = properties [constants .BUILD_PROPERTIES_COMPILER_C_ELF_FLAGS ] + optRelax
79
79
properties [constants .BUILD_PROPERTIES_COMPILER_WARNING_FLAGS ] = properties [constants .BUILD_PROPERTIES_COMPILER_WARNING_FLAGS + "." + warningsLevel ]
80
- properties [constants .BUILD_PROPERTIES_ARCHIVE_FILE ] = coreArchiveFilePath
80
+ properties [constants .BUILD_PROPERTIES_ARCHIVE_FILE ] = coreDotARelPath
81
+ properties [constants .BUILD_PROPERTIES_ARCHIVE_FILE_PATH ] = coreArchiveFilePath
81
82
properties [constants .BUILD_PROPERTIES_OBJECT_FILES ] = objectFileList
82
83
83
84
_ , err := builder_utils .ExecRecipe (properties , constants .RECIPE_C_COMBINE_PATTERN , false , verbose , verbose , logger )
0 commit comments