Skip to content

Conversation

@jrtc27
Copy link
Member

@jrtc27 jrtc27 commented Feb 10, 2026

When PCC bounds are in use, further divide up the existing section
category order to ensure PCC sections are contiguous. Note that, in
order to avoid emitting multiple PT_GNU_RELRO segments (since, whilst
CheriBSD supports it, other CHERI runtimes may not yet), the PCC RW
sections are flipped compared with the non-PCC ones, with RELRO sections
coming after, not before, the non-RELRO sections.

When PCC bounds are in use, further divide up the existing section
category order to ensure PCC sections are contiguous. Note that, in
order to avoid emitting multiple PT_GNU_RELRO segments (since, whilst
CheriBSD supports it, other CHERI runtimes may not yet), the PCC RW
sections are flipped compared with the non-PCC ones, with RELRO sections
coming after, not before, the non-RELRO sections.
@jrtc27
Copy link
Member Author

jrtc27 commented Feb 10, 2026

I haven't yet tested this with CheriBSD, and I'd also like to test merge it to Morello LLVM as well, but putting this up now as I'm done for the night.

@jrtc27 jrtc27 requested a review from bsdjhb February 10, 2026 00:44
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.

1 participant