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:

committed by
Oleg Nesterov

parent
29dedee0e6
commit
50204c6f6d
@@ -50,9 +50,6 @@ struct arch_uprobe {
|
||||
u8 opc1;
|
||||
} branch;
|
||||
struct {
|
||||
#ifdef CONFIG_X86_64
|
||||
long riprel_target;
|
||||
#endif
|
||||
u8 fixups;
|
||||
u8 ilen;
|
||||
} def;
|
||||
|
Reference in New Issue
Block a user