diff options
author | David S. Miller <davem@redhat.com> | 2012-04-17 01:50:39 +0000 |
---|---|---|
committer | David S. Miller <davem@redhat.com> | 2012-04-17 01:50:39 +0000 |
commit | 13cf9988bc2852ba66d6096578a518c94bfccdcd (patch) | |
tree | 683c5e39327f7de26f38a4205562ed60446491b4 /gold/powerpc.cc | |
parent | 31821be097c4154d3d7d201d9f4939a47af97ac6 (diff) | |
download | gdb-13cf9988bc2852ba66d6096578a518c94bfccdcd.zip gdb-13cf9988bc2852ba66d6096578a518c94bfccdcd.tar.gz gdb-13cf9988bc2852ba66d6096578a518c94bfccdcd.tar.bz2 |
gold: Allow use_plt_offset to be specified for global relocations.
gold/
* output.h (Output_reloc): Allow use_plt_offset for global relocs too.
(class Output_data_reloc): Adjust calls to Output_reloc_type.
(Output_data_reloc::add_global_relative): (RELA only) Add use_plt_offset.
* output.cc (Output_reloc::Output_reloc): Add use_plt_offset flag for
global relocs too.
(Output_reloc::symbol_value): Respect use_plt_offset_ for global symbols.
* powerpc.cc (Target_powerpc::Scan::global): Adjust add_global_relative
calls.
* sparc.cc (Target_sparc::Scan::global): Likewise.
* x86_64.cc (Target_x86_64::Scan::global): Likewise.
Diffstat (limited to 'gold/powerpc.cc')
-rw-r--r-- | gold/powerpc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 372443f..b443304 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -1486,7 +1486,7 @@ Target_powerpc<size, big_endian>::Scan::global( rela_dyn->add_global_relative(gsym, elfcpp::R_POWERPC_RELATIVE, output_section, object, data_shndx, reloc.get_r_offset(), - reloc.get_r_addend()); + reloc.get_r_addend(), false); } else { @@ -1505,7 +1505,7 @@ Target_powerpc<size, big_endian>::Scan::global( output_section, object, data_shndx, reloc.get_r_offset(), - reloc.get_r_addend()); + reloc.get_r_addend(), false); } } } @@ -1574,7 +1574,7 @@ Target_powerpc<size, big_endian>::Scan::global( gsym->set_got_offset(GOT_TYPE_STANDARD, off); rela_dyn->add_global_relative(gsym, elfcpp::R_POWERPC_RELATIVE, - got, off, 0); + got, off, 0, false); } } } |