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

Make linker fill alignment gaps with bkpt instruction #1305

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

Conversation

bruelltuete
Copy link
Contributor

@bruelltuete bruelltuete commented Mar 11, 2023

Request for comment: what do you think of this?
This came out from https://forums.raspberrypi.com/viewtopic.php?p=2089017#p2088888.

The linker fills in some gaps that result from alignment. But it filled in just zeros. Would it be better if those filler bytes would trigger a breakpoint or fault in case they are ever executed?

(and thanks to alastairpatrick for suggesting bkpt instead of udf)

@kilograham kilograham added this to the back burner milestone May 25, 2023
@kilograham
Copy link
Contributor

revisit when we do some cleanup of linker scripts

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

Successfully merging this pull request may close these issues.

2 participants