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

ELF exec: add AT_BASE entry to auxiliary vector #1991

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

francescolavra
Copy link
Member

This change adds the AT_BASE entry (which contains the base address of the interpreter for the user program, or zero if there is no interpreter) to the auxiliary vector that is set up on the user stack when executing the program. This is needed by the musl dynamic linker, which would otherwise calculate a wrong base address during startup, resulting in a segmentation fault.

This change adds the AT_BASE entry (which contains the base
address of the interpreter for the user program, or zero if there
is no interpreter) to the auxiliary vector that is set up on the
user stack when executing the program. This is needed by the musl
dynamic linker, which would otherwise calculate a wrong base
address during startup, resulting in a segmentation fault.
@francescolavra francescolavra merged commit 027f7f8 into master Jan 20, 2024
5 checks passed
@francescolavra francescolavra deleted the feature/at_base branch January 20, 2024 09:14
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.

None yet

2 participants