https://sourceware.org/bugzilla/show_bug.cgi?id=18855

--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Cary Coutant <ccout...@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9eacb935acd69f6532135ec1353630db5111467c

commit 9eacb935acd69f6532135ec1353630db5111467c
Author: Cary Coutant <ccout...@gmail.com>
Date:   Tue Oct 6 14:43:49 2015 -0700

    Fix bug when applying R_SPARC_GOTDATA_OP* relocations to local symbols.

    When applying a GOTDATA_OP* relocation to a local symbol, the addend
    is being applied after getting the value of the symbol. When the
    relocation refers to a merge section, however, the addend must be
    provided when computing the symbol value, since the contents of
    the section may have been rearranged.

    gold/
        PR gold/18855
        * sparc.cc (Sparc_relocate_functions::gdop_hix22): Remove addend
        parameter.
        (Sparc_relocate_functions::gdop_lox10): Likewise.
        (Target_sparc::Relocate::relocate): Use addend when computing
        symbol value for R_SPARC_GOTDATA_OP*.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to