bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/18846] gold PowerPC --emit-relocs differ from ld


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gold/18846] gold PowerPC --emit-relocs differ from ld
Date: Thu, 20 Aug 2015 02:35:17 +0000

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 <address@hidden>:

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

commit 9215b98bb27c071386a277f5578dbb17569a1471
Author: Alan Modra <address@hidden>
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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]