Skip to content

Commit 71466f8

Browse files
authored
Update gcc.py for preprocessing in linker script
To fix #11214, we need this update. :-)
1 parent 033fffe commit 71466f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/toolchains/gcc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ def link(self, output, objects, libraries, lib_dirs, mem_map):
248248
preproc_output = join(dirname(output), ".link_script.ld")
249249
cmd = (
250250
self.preproc + [mem_map] + self.ld[1:] + ["-o", preproc_output]
251+
self.get_compile_options(self.get_symbols(), [])
251252
)
252253
self.notify.cc_verbose("Preproc: %s" % ' '.join(cmd))
253254
self.default_cmd(cmd)

0 commit comments

Comments
 (0)