Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hkahl opened this issue May 14, 2019 · 1 comment · Fixed by #6100
Closed

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

hkahl opened this issue May 14, 2019 · 1 comment · Fixed by #6100
Assignees
Milestone

Comments

@hkahl
Copy link

hkahl commented May 14, 2019

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.

@earlephilhower earlephilhower self-assigned this May 14, 2019
@earlephilhower earlephilhower added this to the 2.6.0 milestone May 14, 2019
@earlephilhower
Copy link
Collaborator

Seems like a reasonable request. Do you want to submit a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants