This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold patch] Add method to get output section address that works with --just-symbols
- From: Cary Coutant <ccoutant at google dot com>
- To: Binutils <binutils at sourceware dot org>, Alan Modra <amodra at gmail dot com>, Ian Lance Taylor <iant at google dot com>
- Date: Wed, 31 Jul 2013 11:51:19 -0700
- Subject: [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.