Skip to content

[ELFLOADER] Added support for read-only after relocation - #4150

Open
ksco wants to merge 1 commit into
ptitSeb:mainfrom
ksco:relro
Open

[ELFLOADER] Added support for read-only after relocation#4150
ksco wants to merge 1 commit into
ptitSeb:mainfrom
ksco:relro

Conversation

@ksco

@ksco ksco commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

RELRO sections (e.g. .got and .got.plt) are read-only after resolved relocations. This PR prevents unnecessary always_test blocks created on 16K page size systems by following this semantics.

Example sections:

  ELF headers and constants     R
  .text and .plt                R-X
  .got and .got.plt             RW during relocation (PT_GNU_RELRO)

RELRO sections (e.g. .got and .got.plt) are read-only after resolved relocations. This PR prevents unnecessary always_test blocks created on 16K page size systems by following this semantics.

Example sections:
```
  ELF headers and constants     R
  .text and .plt                R-X
  .got and .got.plt             RW during relocation (PT_GNU_RELRO)
  ```
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