Re: Mysterious relocation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



NetStranger <shtras@xxxxxxxxx> writes:

> Hi, I have a problem understanding the purpose of the following relocation:
> 8359178:       b8 50 0b 36 08          mov    $0x8360b50,%eax
>                         8359179: R_386_32      
> _ZNK13LaplaceSolver6SolverILi3EE15assemble_matrixERNS1_12LinearSystemERK18TriaActiveIteratorILi3E15
> DoFCellAccessorILi3EEES9_RN7Threads16DummyThreadMutexE
> 835917d:       a8 01                   test   $0x1,%al
> 835917f:       0f 84 c2 02 00 00       je     8359447
> <_ZN13LaplaceSolver6SolverILi3EE22assemble_linear_systemERNS1_12LinearSystemE+0x377>
>
> It appears to me that whether or not to jump depends on the address
> 0x8360b50 (and not the value in it).
> And there's a relocation which means, if for some reason relocation target
> will move, the address will change and the test instruction results will be
> different.

This does look odd.  I think you will need to show us the source code.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux