Skip to content

cpu/cortexm: ldscripts: bkup-ram -> bkup_ram#16753

Merged
kaspar030 merged 1 commit intoRIOT-OS:masterfrom
kaspar030:fix_bkup-ram
Aug 18, 2021
Merged

cpu/cortexm: ldscripts: bkup-ram -> bkup_ram#16753
kaspar030 merged 1 commit intoRIOT-OS:masterfrom
kaspar030:fix_bkup-ram

Conversation

@kaspar030
Copy link
Copy Markdown
Contributor

Contribution description

Fixes this error with binutils 2.37 (the current one on Arch Linux):

/usr/lib/gcc/arm-none-eabi/11.2.0/../../../../arm-none-eabi/bin/ld:cortexm_base.ld:217: warning: memory region `bkup' not declared
/usr/lib/gcc/arm-none-eabi/11.2.0/../../../../arm-none-eabi/bin/ld:cortexm_base.ld:217: syntax error

Seems like newer binutils trip over the minus in the region name. This PR renames the memory region to "bkup_ram" (underline),
which is also more in line with the related variable names.

Testing procedure

I'm not aware of any in-tree user. With my binutils, this broke every compilation for affected boards.
IMO, successful CI should be fine!

Issues/PRs references

bkup-ram was introduced in #11486.

Fixes this error with binutils 2.37:

```
/usr/lib/gcc/arm-none-eabi/11.2.0/../../../../arm-none-eabi/bin/ld:cortexm_base.ld:217: warning: memory region `bkup' not declared
/usr/lib/gcc/arm-none-eabi/11.2.0/../../../../arm-none-eabi/bin/ld:cortexm_base.ld:217: syntax error
```
@kaspar030 kaspar030 added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Platform: ARM Platform: This PR/issue effects ARM-based platforms CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: toolchain Area: toolchains; everything related to compilation, libc, linking, … labels Aug 18, 2021
@kaspar030 kaspar030 requested a review from benpicco August 18, 2021 08:36
@kaspar030 kaspar030 requested a review from bergzand as a code owner August 18, 2021 08:36
@github-actions github-actions bot added Area: cpu Area: CPU/MCU ports and removed Area: toolchain Area: toolchains; everything related to compilation, libc, linking, … labels Aug 18, 2021
Copy link
Copy Markdown
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code will only use .backup.bss and .backup.data, so the section names do not matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ARM Platform: This PR/issue effects ARM-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants