diff options
author | Cary Coutant <ccoutant@google.com> | 2011-10-10 17:29:52 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2011-10-10 17:29:52 +0000 |
commit | 397b129b2a1e3d186e62ff37ecdbc329bf6bbc53 (patch) | |
tree | 201abe09b47a3367ca0ac89bcc64350e98d7e7b0 /gold/powerpc.cc | |
parent | 79395f921c81a0a14e92512674fc57971d3a4e2b (diff) | |
download | fsf-binutils-gdb-397b129b2a1e3d186e62ff37ecdbc329bf6bbc53.zip fsf-binutils-gdb-397b129b2a1e3d186e62ff37ecdbc329bf6bbc53.tar.gz fsf-binutils-gdb-397b129b2a1e3d186e62ff37ecdbc329bf6bbc53.tar.bz2 |
PR gold/13249
* gold/output.cc (Output_reloc::Output_reloc): Add use_plt_offset flag.
(Output_reloc::symbol_value): Return PLT offset if flag is set.
* gold/output.h (class Output_reloc): Add use_plt_offset flag.
(Output_reloc::type_): Adjust size of bit field.
(Output_reloc::use_plt_offset_): New bit field.
(class Output_data_reloc): Adjust all calls to Output_reloc_type.
(Output_data_reloc::add_local_relative): (RELA only) Add use_plt_offset
flag. Adjust all callers.
* gold/x86_64.cc (Target_x86_64::Scan::local): Check for IFUNC when
creating RELATIVE relocations.
Diffstat (limited to 'gold/powerpc.cc')
-rw-r--r-- | gold/powerpc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 45783c3..62a17ca 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -1329,7 +1329,7 @@ Target_powerpc<size, big_endian>::Scan::local( rela_dyn->add_local_relative(object, r_sym, r_type, output_section, data_shndx, reloc.get_r_offset(), - reloc.get_r_addend()); + reloc.get_r_addend(), false); } } break; @@ -1372,7 +1372,7 @@ Target_powerpc<size, big_endian>::Scan::local( object->set_local_got_offset(r_sym, GOT_TYPE_STANDARD, off); rela_dyn->add_local_relative(object, r_sym, elfcpp::R_POWERPC_RELATIVE, - got, off, 0); + got, off, 0, false); } } else |