Skip to content
  • Moritz Angermann's avatar
    [linker] Fix out of range relocations. · dff1cb3d
    Moritz Angermann authored and Marge Bot's avatar Marge Bot committed
    mmap may return address all over the place. mmap_next will ensure we get
    the next free page after the requested address.
    
    This is especially important for linking on aarch64, where the memory model with PIC
    admits relocations in the +-4GB range, and as such we can't work with
    arbitrary object locations in memory.
    
    Of note: we map the rts into process space, so any mapped objects must
    not be ouside of the 4GB from the processes address space.
    dff1cb3d