[lld] r194010 - [ELF] Fix typo in the expression calculates an absolute atom offset.

Rui Ueyama ruiu at google.com
Mon Nov 4 12:29:08 PST 2013


It would be good if we have a test for this.


On Mon, Nov 4, 2013 at 11:40 AM, Simon Atanasyan <simon at atanasyan.com>wrote:

> Author: atanasyan
> Date: Mon Nov  4 13:40:02 2013
> New Revision: 194010
>
> URL: http://llvm.org/viewvc/llvm-project?rev=194010&view=rev
> Log:
> [ELF] Fix typo in the expression calculates an absolute atom offset.
>
> Patch reviewed by Shankar Easwaran.
>
> Modified:
>     lld/trunk/lib/ReaderWriter/Native/ReaderNative.cpp
>
> Modified: lld/trunk/lib/ReaderWriter/Native/ReaderNative.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/Native/ReaderNative.cpp?rev=194010&r1=194009&r2=194010&view=diff
>
> ==============================================================================
> --- lld/trunk/lib/ReaderWriter/Native/ReaderNative.cpp (original)
> +++ lld/trunk/lib/ReaderWriter/Native/ReaderNative.cpp Mon Nov  4 13:40:02
> 2013
> @@ -633,7 +633,7 @@ private:
>                                       - _sharedLibraryAtoms._elementCount;
>        if ( abIndex < _absoluteAtoms._elementCount ) {
>          const uint8_t* p = _absoluteAtoms._arrayStart
> -                                  + slIndex * _absoluteAtoms._elementSize;
> +                                  + abIndex * _absoluteAtoms._elementSize;
>          this->_targetsTable[i] = reinterpret_cast<const AbsoluteAtom*>(p);
>          continue;
>        }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131104/7d4f4c19/attachment.html>


More information about the llvm-commits mailing list