Skip to content

cmrt: change condition on _stext location check #510

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

Merged
merged 1 commit into from
Feb 10, 2024
Merged

Conversation

adamgreig
Copy link
Member

This avoids spurious errors when .text doesn't fit in FLASH which have nothing to do with the position of _stext. By not checking, we let the linker provide its own, more-useful, error.

Closes #509.

This avoids spurious errors when `.text` doesn't fit in `FLASH` which
have nothing to do with the position of `_stext`. By not checking, we
let the linker provide its own, more-useful, error.

Closes #509.
@adamgreig adamgreig requested a review from a team as a code owner January 30, 2024 20:01
Copy link
Contributor

@thejpster thejpster left a comment

Choose a reason for hiding this comment

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

This removes the + sizeof(.text)?

@thejpster
Copy link
Contributor

Ah, that's by design. #509 (comment)

@adamgreig adamgreig added this pull request to the merge queue Feb 10, 2024
Merged via the queue into master with commit f47ec95 Feb 10, 2024
@adamgreig adamgreig deleted the linker-errors branch February 10, 2024 00:51
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.

More-helpful linker errors
2 participants