This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [GOLD] powerpc opd reloc warnings


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]