uprobes/x86: Simplify rip-relative handling

It is possible to replace rip-relative addressing mode with addressing
mode of the same length: (reg+disp32). This eliminates the need to fix
up immediate and correct for changing instruction length.

And we can kill arch_uprobe->def.riprel_target.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Reviewed-by: Jim Keniston <jkenisto@us.ibm.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
This commit is contained in:
Denys Vlasenko
2014-05-01 16:52:46 +02:00
committed by Oleg Nesterov
parent 29dedee0e6
commit 50204c6f6d
2 changed files with 30 additions and 44 deletions

View File

@@ -50,9 +50,6 @@ struct arch_uprobe {
u8 opc1;
} branch;
struct {
#ifdef CONFIG_X86_64
long riprel_target;
#endif
u8 fixups;
u8 ilen;
} def;