OSDN Git Service

uprobes/x86: Simplify rip-relative handling
authorDenys Vlasenko <dvlasenk@redhat.com>
Thu, 1 May 2014 14:52:46 +0000 (16:52 +0200)
committerOleg Nesterov <oleg@redhat.com>
Wed, 14 May 2014 11:57:25 +0000 (13:57 +0200)
commit50204c6f6dd01b5bce1b53e0b003d01849455512
tree2ed16e91199c0d7fac54f06bb843300615915030
parent29dedee0e693aa113164c820395ce51446a71ace
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>
arch/x86/include/asm/uprobes.h
arch/x86/kernel/uprobes.c