Skip to content

Conversation

bjia56
Copy link
Contributor

@bjia56 bjia56 commented Apr 22, 2025

This change modifies the order of non-input platform loaders and generic multi-OS loaders to prioritize non-input loaders, which allows us to add loaders which match APE-supported architectures (arm64/amd64) but aren't one of Linux/FreeBSD/NetBSD/OpenBSD. For example, this change enables us to add a Blink binary compiled for SunOS, which only supports amd64. The existing APE loaders passed as input will be matched last using existing script logic if no specific OSNAME target is set.

This change modifies the order of non-input platform loaders and generic
multi-OS loaders to prioritize non-input loaders, which allows us to add
loaders which match APE-supported architectures (arm64/amd64) but aren't
one of Linux/FreeBSD/NetBSD/OpenBSD. For example, this change enables us
to add a Blink binary compiled for SunOS, which only supports amd64. The
existing APE loaders passed as input will be matched last using existing
script logic if no specific OSNAME target is set.
@github-actions github-actions bot added the tool label Apr 22, 2025
@bjia56
Copy link
Contributor Author

bjia56 commented Apr 22, 2025

An alternative use case would be to embed a Blink loader for modern OpenBSD, which though emulated, should technically bypass the syscall pinning, though I haven't tried it.

@954681
Copy link

954681 commented Apr 22, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants