gold: Allow use_plt_offset to be specified for global relocations.
authorDavid S. Miller <davem@redhat.com>
Tue, 17 Apr 2012 01:50:39 +0000 (01:50 +0000)
committerDavid S. Miller <davem@redhat.com>
Tue, 17 Apr 2012 01:50:39 +0000 (01:50 +0000)
commit13cf9988bc2852ba66d6096578a518c94bfccdcd
tree683c5e39327f7de26f38a4205562ed60446491b4
parent31821be097c4154d3d7d201d9f4939a47af97ac6
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.
gold/ChangeLog
gold/output.cc
gold/output.h
gold/powerpc.cc
gold/sparc.cc
gold/x86_64.cc