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]

[gold patch] Add method to get output section address that works with --just-symbols


I've committed this patch to fix a problem where a branch directly to
a symbol defined in a module linked with --just-symbols can result in
a segfault.

Tested on ppc64 and x86_64.

-cary


2013-07-31  Cary Coutant  <ccoutant@google.com>

        * object.cc (Sized_relobj::do_output_section_address): New function.
        (Sized_relobj): Instantiate explicitly.
        * object.h (Object::output_section_address): New function.
        (Object::do_output_section_address): New function.
        (Sized_relobj::do_output_section_address): New function.
        * powerpc.cc (Target_powerpc::symval_for_branch): Use it.


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