notaz.gp2x.de
/
ia32rtools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4741fdf
)
plugin: replace rva with offset, don't rm
author
notaz
<notasas@gmail.com>
Sat, 8 Feb 2014 21:31:21 +0000
(23:31 +0200)
committer
notaz
<notasas@gmail.com>
Sat, 8 Feb 2014 21:31:21 +0000
(23:31 +0200)
plugin/saveasm.cpp
patch
|
blob
|
blame
|
history
diff --git
a/plugin/saveasm.cpp
b/plugin/saveasm.cpp
index
3622cc8
..
2d07728
100644
(file)
--- a/
plugin/saveasm.cpp
+++ b/
plugin/saveasm.cpp
@@
-413,7
+413,7
@@
static void idaapi run(int /*arg*/)
for (;;)
{
for (;;)
{
- int drop_large = 0, d
rop
_rva = 0, set_scale = 0, jmp_near = 0;
+ int drop_large = 0, d
o
_rva = 0, set_scale = 0, jmp_near = 0;
int word_imm = 0, dword_imm = 0, do_pushf = 0;
if ((ea >> 14) != ui_ea_block) {
int word_imm = 0, dword_imm = 0, do_pushf = 0;
if ((ea >> 14) != ui_ea_block) {
@@
-476,7
+476,7
@@
static void idaapi run(int /*arg*/)
}
else { // not code
if (isOff0(ea_flags))
}
else { // not code
if (isOff0(ea_flags))
- d
rop
_rva = 1;
+ d
o
_rva = 1;
}
pass:
}
pass:
@@
-494,11
+494,12
@@
pass:
if (p != NULL)
memmove(p, p + 6, strlen(p + 6) + 1);
}
if (p != NULL)
memmove(p, p + 6, strlen(p + 6) + 1);
}
- while (d
rop
_rva) {
+ while (d
o
_rva) {
p = strstr(fw, " rva ");
if (p == NULL)
break;
p = strstr(fw, " rva ");
if (p == NULL)
break;
- memmove(p, p + 4, strlen(p + 4) + 1);
+ memmove(p + 4 + 3, p + 4, strlen(p + 4) + 1);
+ memcpy(p + 1, "offset", 6);
}
if (set_scale) {
p = strchr(fw, '[');
}
if (set_scale) {
p = strchr(fw, '[');