Displaying 1 result from an estimated 1 matches for "_zl8constant".
2010 Feb 15
2
[LLVMdev] Incorrect execution of global constructor with JIT on ARM
...t.value[i]);
}
I am compiling it with llvm-gcc (with -O3 or -O2 optimization), and am running it with llvm version 2.6. Instead of priniting out 1234, it prints out 4444.
I verified contents of Constant memory with this code:
const llvm::GlobalValue* v = module->getGlobalVariable("_ZL8Constant", true);
void* addr = EE->getPointerToGlobal(v);
const unsigned char* ptr = (const unsigned char*)addr;
for (int i=0; i<6; i++)
{
outs() << (int)ptr[i] << ',';
}
I really see that memory is filled with 4,4,4,4 and...