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

[GR-58575] SubstrateVM PLT/GOT Feature #9883

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Oct 14, 2024

  1. [GR-58575] SubstrateVM PLT/GOT Feature

    Introduces an additional level of indirection for calls where a GOT (Global Offset Table) is an array of method pointers and PLT (Procedure Linkage Table) is a collection of small stubs.  With this feature enabled, direct calls are emitted as indirect calls through the GOT. The virtual table is filled with PLT stubs instead.
    
    While inspired by ELF, no ELF mechanisms are used in the implementation.
    
    Example usecase: Hijack code execution on call boundaries to diverge execution from AOT code to an interpreter.
    
    Contributors:
    - Aleksandar Gradinac: Initial implementation on linux-amd64.
    - Marko Spasic: Miscellaneous improvements.
    - Bernhard Urban-Forster: Support for linux-aarch64, darwin-aarch64 and darwin-amd64.
    - Alfonso² Peterssen: Support for windows-amd64.
    
    Co-authored-by: Aleksandar Gradinac <[email protected]>
    Co-authored-by: Marko Spasic <[email protected]>
    Co-authored-by: Alfonso² Peterssen <[email protected]>
    4 people committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    61dcc49 View commit details
    Browse the repository at this point in the history