What is the meaning of this message in IDA?
When you load a file into Ida (.exe, .dll, .bin,,.hex, etc.), it creates at least one segment for the memory address (you can add or remove segments on your own). Every segment has a unique name that you can change. A segment with the name .text means that the content of this segment is read-only and not writable. So if a piece of code is accessing this segment and changing a variable value in it, the message in your question will appear and say that the target segment is considered read-only, which results in wrong decompiled code.
How can we fix this issue in IDA Pro?
Two workarounds:
- Change the
segment name
to something else: View->Open subviews->Segments (Shift+F7), right click on the segment-->Edit, Change the name.
- Change the
segment permission
to read and write: Follow the above path and check the write
and read
check boxes.