Skip to content

Commit 43cb3a0

Browse files
committed
zpu: fix linking
1 parent d0f0391 commit 43cb3a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hardware/zpuino/zpu/platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -D
4141
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{build.path}/{archive_file}" "{object_file}"
4242

4343
## Combine gc-sections, archives, and objects
44-
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} "-Wl,-Map,{build.path}/{build.project_name}.map" -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} "{build.path}/{archive_file}" -Wl,--end-group
44+
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} "-Wl,-Map,{build.path}/{build.project_name}.map" -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols {object_files} -Wl,--whole-archive "{build.path}/{archive_file}" -Wl,--no-whole-archive
4545

4646
## Create eeprom
4747
recipe.objcopy.eep.pattern=

hardware/zpuino/zpu20/platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -D
4141
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{build.path}/{archive_file}" "{object_file}"
4242

4343
## Combine gc-sections, archives, and objects
44-
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} "-Wl,-Map,{build.path}/{build.project_name}.map" -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} "{build.path}/{archive_file}" -Wl,--end-group
44+
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} "-Wl,-Map,{build.path}/{build.project_name}.map" -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--whole-archive {object_files} "{build.path}/{archive_file}" -Wl,--no-whole-archive
4545

4646
## Create eeprom
4747
recipe.objcopy.eep.pattern=

0 commit comments

Comments
 (0)