Skip to content
Snippets Groups Projects
Commit 98a32ec5 authored by Cheng Shao's avatar Cheng Shao
Browse files

rts: don't build predefined GloblRegs for wasm PIC mode

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.
parent 90a35c41
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@
#define W_ i64
#endif
#if !defined(__PIC__)
.hidden __R1
.globl __R1
.section .data.__R1,"",@
......@@ -169,3 +171,5 @@ __Hp:
.section .data.__HpLim,"",@
.globaltype __HpLim, W_
__HpLim:
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment