Increase the size of the .text section in ELF. #346
Replies: 1 comment
-
Hello! Increasing the .text section is often tricky because simply increasing the size would force moving the sections after it. In OFRAK, we have a the ElfLoadAlignmentModifier which will look for unused alignment bytes next to the .text section and add those to the .text section, increasing the size. However this requires that there are unused alignment bytes, which is not always the case. An alternative approach is the LiefAddSegmentModifier, which can add a segment to a binary. This has its own restrictions, because it requires that there is already a Thanks for asking! |
Beta Was this translation helpful? Give feedback.
-
Hi !!!
Maybe someone has a good experience with increasing the size of the .text section of an ELF file, share an example..
I need to unlock some functions in program I know how, but it needs more space.
Beta Was this translation helpful? Give feedback.
All reactions