This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [GOLD] powerpc opd reloc warnings
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Wed, 12 Sep 2012 08:24:09 -0700
- Subject: Re: [GOLD] powerpc opd reloc warnings
- References: <20120912092524.GB20621@bubble.grove.modra.org>
On Wed, Sep 12, 2012 at 2:25 AM, Alan Modra <amodra@gmail.com> wrote:
>
> * target-reloc.h (scan_relocs): Call scan.local for relocs
> against symbols in discarded sections. Pass is_discarded
> param.
> * arm.cc, * i386.cc, * sparc.cc, * x86_64.cc (Target_*::Scan::local):
> Add is_discarded param.
> * powerpc (Target_powerpc::Scan::local): Likewise. Use
> is_discarded to flag opd entry as discarded. Don't emit dyn
> relocs on such entries.
> (Target_powerpc::Scan::global): Similarly detect and handle
> such opd entries.
> (Powerpc_relobj): Replace opd_ent_shndx_ and opd_ent_off_ with
> opd_ent_. Update all uses.
> (Powerpc_relobj::get_opd_discard, set_opd_discard): New functions.
> (Target_powerpc::relocate_section): Zero out discarded opd
> entry relocs.
This is OK.
Thanks.
Ian