![](https://seccdn.libravatar.org/avatar/e21afe982e51fc3a4ad1e3d2e595a3f2.jpg?s=120&d=mm&r=g)
15 Nov
2003
15 Nov
'03
21:23
Andi Kleen may (or may not) have said:
When it is a code like
movl bla,%edi
replace it with
movl bla(%rip),%edi
Thanks, it works in yasm too, just a touch different because of the syntax variation: mov eax,bla becomes lea eax,[bla wrt rip] or lea eax,[bla+rip] You also need to pass yasm the -g stabs parameter otherwise it won't populate the symbol table properly. Mike