aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-07-01 18:45:02 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-03 15:31:05 -0700
commit8b68c8ada6845886bebe698a35bea27858d07db0 (patch)
tree63e95d611f6a4f4b0edb3b8088f7c5725d5de41d /src/jsifier.js
parent218696cdd2af0f6a96b7bb506c60c845ab36852f (diff)
fix relocation of global linkable variables, enable iostream module linking test
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index acf0f2ac..7072c9c8 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1605,6 +1605,7 @@ function JSify(data, functionsOnly, givenFunctions) {
if (phase == 'pre' && !Variables.generatedGlobalBase) {
Variables.generatedGlobalBase = true;
// Globals are done, here is the rest of static memory
+ assert((TARGET_LE32 && Runtime.GLOBAL_BASE == 8) || (TARGET_X86 && Runtime.GLOBAL_BASE == 4)); // this is assumed in e.g. relocations for linkable modules
print('STATIC_BASE = ' + Runtime.GLOBAL_BASE + ';\n');
print('STATICTOP = STATIC_BASE + ' + Runtime.alignMemory(Variables.nextIndexedOffset) + ';\n');
}