Skip to content

Make linker fill alignment gaps with bkpt instruction - #1305

Open
bruelltuete wants to merge 1 commit into
raspberrypi:developfrom
bruelltuete:linkerfill
Open

bruelltuete wants to merge 1 commit into
raspberrypi:developfrom
bruelltuete:linkerfill

Conversation

@bruelltuete

@bruelltuete bruelltuete commented Mar 11, 2023 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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