We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dde970d commit 88054faCopy full SHA for 88054fa
tools/toolchains/iar.py
@@ -158,7 +158,7 @@ def compile_cpp(self, source, object, includes):
158
def link(self, output, objects, libraries, lib_dirs, mem_map):
159
# Build linker command
160
map_file = splitext(output)[0] + ".map"
161
- cmd = [self.ld, "-o", output, "--skip_dynamic_initialization", "--map=%s" % map_file] + objects + libraries
+ cmd = [self.ld, "-o", output, "--map=%s" % map_file] + objects + libraries + self.flags['ld']
162
163
if mem_map:
164
cmd.extend(["--config", mem_map])
@@ -195,10 +195,6 @@ def archive(self, objects, lib_path):
195
196
self.default_cmd([self.ar, lib_path, '-f', archive_files])
197
198
- def link(self, output, objects, libraries, lib_dirs, mem_map):
199
- args = [self.ld, "-o", output, "--config", mem_map] + self.flags['ld']
200
- self.default_cmd(self.hook.get_cmdline_linker(args + objects + libraries))
201
-
202
@hook_tool
203
def binary(self, resources, elf, bin):
204
# Build binary command
0 commit comments