Skip to content

Crt0#76

Merged
stsp merged 13 commits into
masterfrom
crt0
Jun 30, 2026
Merged

Crt0#76
stsp merged 13 commits into
masterfrom
crt0

Conversation

@stsp

@stsp stsp commented Jun 30, 2026

Copy link
Copy Markdown
Owner

No description provided.

stsp added 13 commits June 29, 2026 21:21
Change condition from "stub_ver >= 6" to "stub_ver == 6".
In upcoming v7 don't look into emb_ov at all.
This is a pure legacy, pre-v6 I think.
It is set on stub ver >= 7 and tells dynamic linker that static
crt0 is not here (payloads are split). It allows to delay the
resolution of upl, which is later done by second loader.
Instead check the needed flag in plt.S.
With stub-v7 and second loader we are no longer interested in that.
Second loader is libelf-based and can do many things, so we need to
off-load to it as much as possible, keeping the stub simple.
In v6 there was an extra field to jump to emb_ov, but it is not in v7.
So we get directly to 64bit ELF and need to load dyn.
@stsp stsp merged commit 1005197 into master Jun 30, 2026
2 checks passed
@stsp stsp deleted the crt0 branch June 30, 2026 09:18
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