Skip to content

linker script does not put .cc files into flash #6096

Closed
@hkahl

Description

@hkahl

In tools/sdk/ld/eagle.app.v6.common.ld.h files matching *.c.o and *.cpp .o are considered. The suffix ".cc" is a also pretty common for c++ files. Currently, if .cc is used somewhere, this code goes to iram by default which is quickly filled and linking fails.

This line in the script makes cpp files go to iram by default:
.cpp.o(.literal, .text*)

I suggest adding a line like this:
.cc.o(.literal, .text*)

to the linker script so that .cc file go to flash by default like .cpp files.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions