bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/28192] powerpc64le: gold generates wrong address with a reloca


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gold/28192] powerpc64le: gold generates wrong address with a relocation of symbol+offset@got@pcrel
Date: Thu, 30 Sep 2021 02:36:21 +0000

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

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

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

commit 1540c6cd53f154ebf7de1895bd2d5baa32ad8d70
Author: Alan Modra <amodra@gmail.com>
Date:   Thu Aug 5 14:32:56 2021 +0930

    [GOLD] Got_offset_list: addend field

    This is the first in a series of patches aimed at supporting GOT
    entries against symbol plus addend generally for PowerPC64 rather than
    just section symbol plus addend as gold has currently.

    This patch adds an addend field to Got_offset_list, so that both local
    and global symbols can have GOT entries with addend.

            PR 28192
            * object.h (Got_offset_list): Add addend_ field, init in both
            constructors.  Adjust all accessors to suit.
            (Sized_relobj::do_local_has_got_offset): Adjust to suit.
            (Sized_relobj::do_local_got_offset): Likewise.
            (Sized_relobj::do_set_local_got_offset): Likewise.
            * symtab.h (Symbol::has_got_offset): Add optional addend param.
            (Symbol::got_offset, Symbol::set_got_offset): Likewise.
            * incremental.cc (Local_got_offset_visitor::visit): Add unused
            uint64_t parameter with FIXME.
            (Global_got_offset_visitor::visit): Add unused uint64_t parameter.

    (cherry picked from commit 912697efc15768894c13a9370a2fcaa950f24558)

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