Skip to content

Commit cb702f4

Browse files
committed
Fix incorrect handling of positional linker flags
Resolves #1430
1 parent e519b92 commit cb702f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builder/frameworks/espidf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,9 @@ def get_python_exe():
15951595

15961596
# Extra flags which need to be explicitly specified in LINKFLAGS section because SCons
15971597
# cannot merge them correctly
1598-
extra_flags = filter_args(link_args["LINKFLAGS"], ["-T", "-u"])
1598+
extra_flags = filter_args(
1599+
link_args["LINKFLAGS"], ["-T", "-u", "-Wl,--start-group", "-Wl,--end-group"]
1600+
)
15991601
link_args["LINKFLAGS"] = sorted(list(set(link_args["LINKFLAGS"]) - set(extra_flags)))
16001602

16011603
# remove the main linker script flags '-T memory.ld'

0 commit comments

Comments
 (0)