Commit ada13856 authored by Ian Lynagh's avatar Ian Lynagh

Test for misaligned sections, and fail if we find one

parent b26a1b3f
......@@ -3628,6 +3628,10 @@ ocGetNames_PEi386 ( ObjectCode* oc )
}
if (kind != SECTIONKIND_OTHER && end >= start) {
if ((((size_t)(start)) % (size_t)sizeof(void *)) != 0) {
barf("Misaligned section: %p", start);
}
addSection(oc, kind, start, end);
addProddableBlock(oc, start, end - start + 1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment