Skip to content
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

Cherry-pick to master: [sram-exec] Avoid using compressed instructions when loading sp. #26067

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

github-actions[bot]
Copy link

This is an automatic cherry-pick of #26065 to branch master.

This changes solves an issue that caused larger programs to return the
following linker error:

```
relocation truncated to fit: R_RISCV_GPREL_I against symbol `_stack_end' defined in .sram_start
```

Using the `norelax` option avoids the use of compressed instructions
which was causing the `_stack_end` address calculation error.

Patch submitted by [email protected].

Signed-off-by: Miguel Osorio <[email protected]>
(cherry picked from commit 0dd7cdc)
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 this pull request may close these issues.

2 participants