aboutsummaryrefslogtreecommitdiff
path: root/gold/sparc.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2011-10-10 17:29:52 +0000
committerCary Coutant <ccoutant@google.com>2011-10-10 17:29:52 +0000
commit397b129b2a1e3d186e62ff37ecdbc329bf6bbc53 (patch)
tree201abe09b47a3367ca0ac89bcc64350e98d7e7b0 /gold/sparc.cc
parent79395f921c81a0a14e92512674fc57971d3a4e2b (diff)
downloadgdb-397b129b2a1e3d186e62ff37ecdbc329bf6bbc53.zip
gdb-397b129b2a1e3d186e62ff37ecdbc329bf6bbc53.tar.gz
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/sparc.cc')
-rw-r--r--gold/sparc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/sparc.cc b/gold/sparc.cc
index 9145fcb..1d2cbad 100644
--- a/gold/sparc.cc
+++ b/gold/sparc.cc
@@ -1852,7 +1852,7 @@ Target_sparc<size, big_endian>::Scan::local(
rela_dyn->add_local_relative(object, r_sym, elfcpp::R_SPARC_RELATIVE,
output_section, data_shndx,
reloc.get_r_offset(),
- reloc.get_r_addend());
+ reloc.get_r_addend(), false);
}
break;
@@ -1943,7 +1943,7 @@ Target_sparc<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_SPARC_RELATIVE,
- got, off, 0);
+ got, off, 0, false);
}
}
else