//
-// The tail-call optimzation may result in a function ending in a jump (b)
+// The tail-call optimization may result in a function ending in a jump (b)
// to another functions. At compile time the compiler does not know
// if the target of the jump will be in the same mode (arm vs thumb).
// The arm/thumb instruction set has a way to change modes in a bl(x)
}
shims.push_back(shim);
thumbToAtomMap[target] = shim;
+ state.atomToSection[shim] = sect;
}
else {
shim = pos->second;
shim = new ARMtoThumbShimAtom(target, *sect);
shims.push_back(shim);
atomToThumbMap[target] = shim;
+ state.atomToSection[shim] = sect;
}
else {
shim = pos->second;