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

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <amo...@sourceware.org>:

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

commit 9215b98bb27c071386a277f5578dbb17569a1471
Author: Alan Modra <amo...@gmail.com>
Date:   Thu Aug 20 12:02:45 2015 +0930

    gold --emit-relocs

    A symbol value in an ELF final linked binary is absolute, in contrast
    to a relocatable object file where the value is section relative.  For
    --emit-relocs it is therefore incorrect to use the value of a section
    symbol as the addend when adjusting relocs against input section
    symbols to output section symbols.

        PR gold/18846
        * target-reloc.h (relocate_relocs <RELOC_ADJUST_FOR_SECTION_RELA>):
        Subtract os->address() from addend.
        * powerpc.cc (relocate_relocs): Likewise.

-- 
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