On Tuesday, April 1, 2014 10:36:05 PM UTC+2, Jean-Pierre Flori wrote:
>
> What look strange to me is the way the function is called.
> All other function calls use rip or a different address range.
>
> E.g. for the call in t-neg:
> 39   gmp_randinit_default(rands);
>
> First it goes through the import lib:
>    0x00000001004010fa <+42>:    mov    0x818f(%rip),%rax        # 
> 0x100409290 <__imp___gmp_randinit_default>
>    0x0000000100401101 <+49>:    callq  *%rax
>
> And %rax looks saner: 
> (gdb) info reg
> rax            0x4ff1e1550      21460030800
>
> Just as in cygmpir-16.dll:
> 00000004ff1e1550 T __gmp_randinit_default
>
> In particularn in the mpn_store direct call, the leading 4 is missing...
>

And:
 (gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /home/jp/mpir-flori.git/tests/mpn/.libs/t-neg
[New Thread 3836.0x408]
[New Thread 3836.0x26c]

Program received signal SIGSEGV, Segmentation fault.
0x00000000ff2746c0 in ?? ()
(gdb) x/i $pc
=> 0xff2746c0:  Cannot access memory at address 0xff2746c0
(gdb) x/i $pc + 0x400000000
   0x4ff2746c0 <__gmpn_store>:  lea    -0x20(%rcx),%rcx
(gdb)

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mpir-devel+unsubscr...@googlegroups.com.
To post to this group, send email to mpir-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to