Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is currently automatically added by arduino-builder/arduino-cli,
but it should really be made explicit in the platform definition. This
allows removing it from arduino-cli later, see arduino/arduino-cli#639
This option tells the linker to replace "call" instructions by "rcall"
instructions where possible. This option was only automatically added
for the atmega2560, but it is actually useful for any ATmega with > 8K
flash (and a no-op for boards with <= 8K flash), so it can be added to
the commandline unconditionally.
This was tested on a Uno board (which saves a few bytes on the empty
sketch) and an Arduino NG with atmega8, which also accepts the option
but as expected it does not make a difference in sketch size.
Because this option is added at the end, it does not conflict with the
automatically added option (the linker commandline just gets
-Wl,--relax,--relax
which works fine.