[BOLT] Fix binary corruption in non-reloc mode
Summary: We have a problem where we will emit sections that we are not supposed to emit (with no output offset assigned). This will make us write at file offset 0 and corrupt the first sections in the binary (usually .interp section will be corrupted and bash will refuse to run the binary). This only happens in non-reloc mode when using JTS_BASIC and when we do not emit a function that has a jump table (if it gets too large). Using -update-debug-sections will trigger the pass check-large-functions, which will mark large funcs as non-simple and will hide this bug. (cherry picked from FBD30882012)
parent
9aa134dc
Please register or sign in to comment