diff options
Diffstat (limited to 'courgette/patcher_x86_32.h')
-rw-r--r-- | courgette/patcher_x86_32.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/courgette/patcher_x86_32.h b/courgette/patcher_x86_32.h index cf8ac00..9488270 100644 --- a/courgette/patcher_x86_32.h +++ b/courgette/patcher_x86_32.h @@ -54,6 +54,13 @@ class PatcherX86_32 : public TransformationPatcher { if (status != C_OK) return status; + // Trim labels below a certain threshold + Status trim_status = TrimLabels(program); + if (trim_status != C_OK) { + DeleteAssemblyProgram(program); + return trim_status; + } + EncodedProgram* encoded = NULL; status = Encode(program, &encoded); DeleteAssemblyProgram(program); |