Skip to content

Commit 660b221

Browse files
committed
ARM - pass linker flags along to the linker
On the ARM toolchain linker flags specified in the build profile do not get passed to armlink. This patch adds these flags to the arguments sent to armlink.
1 parent 450701f commit 660b221

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/toolchains/arm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ def link(self, output, objects, libraries, lib_dirs, mem_map):
179179
else:
180180
args = ["-o", output, "--info=totals", "--map", "--list=%s" % map_file]
181181

182+
args.extend(self.flags['ld'])
183+
182184
if mem_map:
183185
args.extend(["--scatter", mem_map])
184186

0 commit comments

Comments
 (0)