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

Map bricks below first 2GB of address space #132

Merged
merged 3 commits into from
Oct 13, 2021

Commits on Oct 12, 2021

  1. Map bricks below first 2GB of address space

    This fixes an issue with mono where JIT compiled code would
    near-call wrapped libraries, but fail because the difference
    between PC and the call address did not fit into an imm32.
    
    This was fixed by replacing posix_memalign with my_mmap and
    providing the MAP_32BIT flag.
    
    Fixes ptitSeb#131
    mogery committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    0c27b82 View commit details
    Browse the repository at this point in the history
  2. Fix incorrect brick cleanup

    FreeBridge used free to clean up the pointer allocated by
    my_mmap, which is incorrect and lead to a crash upon code
    that exited gracefully.
    
    The free was replaced with my_munmap.
    mogery committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    4ca58d1 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2021

  1. Declare my_mmap and my_munmap to avoid warning

    This adds a declaration of my_mmap and my_munmap to
    src/tools/bridge.c in order to avoid a
    -Wimplicit-function-declaration warning when compiling.
    
    This should probably be moved to a header file in the
    future.
    mogery committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    bcb0bde View commit details
    Browse the repository at this point in the history