Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Cheng Shao's avatar
    cc67ef51
    rts: don't build predefined GloblRegs for wasm PIC mode · cc67ef51
    Cheng Shao authored
    This commit wraps the predefined GlobalRegs in Wasm.S under a CPP
    guard to prevent building for PIC mode. When building dynamic ways of
    RTS, the wasm globals that represent STG GlobalRegs will be created
    and supplied by dyld.mjs. The current wasm dylink convention doesn't
    properly support exporting relocatable wasm globals at all, any wasm
    global exported by a .so is assumed to be a GOT.mem entry.
    
    (cherry picked from commit 98a32ec5)
    cc67ef51
    History
    rts: don't build predefined GloblRegs for wasm PIC mode
    Cheng Shao authored
    This commit wraps the predefined GlobalRegs in Wasm.S under a CPP
    guard to prevent building for PIC mode. When building dynamic ways of
    RTS, the wasm globals that represent STG GlobalRegs will be created
    and supplied by dyld.mjs. The current wasm dylink convention doesn't
    properly support exporting relocatable wasm globals at all, any wasm
    global exported by a .so is assumed to be a GOT.mem entry.
    
    (cherry picked from commit 98a32ec5)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.