diff options
author | Cary Coutant <ccoutant@google.com> | 2013-07-31 18:47:50 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2013-07-31 18:47:50 +0000 |
commit | c6905c28a51b6716f2d0243a76825e2dd6ad59de (patch) | |
tree | 9406e5291db3fd1e4fe8e3e1bf8a8c3de9b22404 /gold/powerpc.cc | |
parent | 31a91d61f9ea4504812349166ef6ad5308270927 (diff) | |
download | binutils-gdb-c6905c28a51b6716f2d0243a76825e2dd6ad59de.tar.gz |
gold/
* 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.
Diffstat (limited to 'gold/powerpc.cc')
-rw-r--r-- | gold/powerpc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 676aad6f181..1afe01c4bfb 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -6203,7 +6203,7 @@ Target_powerpc<size, big_endian>::symval_for_branch( Address opd_addr = symobj->get_output_section_offset(shndx); if (opd_addr == invalid_address) return value; - opd_addr += symobj->output_section(shndx)->address(); + opd_addr += symobj->output_section_address(shndx); if (value >= opd_addr && value < opd_addr + symobj->section_size(shndx)) { Address sec_off; |