summaryrefslogtreecommitdiff
path: root/gold/target-reloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/target-reloc.h')
-rw-r--r--gold/target-reloc.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gold/target-reloc.h b/gold/target-reloc.h
index 6efcdf49bd..464a3fa896 100644
--- a/gold/target-reloc.h
+++ b/gold/target-reloc.h
@@ -423,17 +423,17 @@ apply_relocation(const Relocate_info<size, big_endian>* relinfo,
section_size_type view_size)
{
// Construct the ELF relocation in a temporary buffer.
- const int reloc_size = elfcpp::Elf_sizes<size>::rela_size;
+ const int reloc_size = elfcpp::Elf_sizes<64>::rela_size;
unsigned char relbuf[reloc_size];
- elfcpp::Rela<size, big_endian> rel(relbuf);
- elfcpp::Rela_write<size, big_endian> orel(relbuf);
+ elfcpp::Rela<64, false> rel(relbuf);
+ elfcpp::Rela_write<64, false> orel(relbuf);
orel.put_r_offset(r_offset);
- orel.put_r_info(elfcpp::elf_r_info<size>(0, r_type));
+ orel.put_r_info(elfcpp::elf_r_info<64>(0, r_type));
orel.put_r_addend(r_addend);
// Setup a Symbol_value for the global symbol.
- const Sized_symbol<size>* sym = static_cast<const Sized_symbol<size>*>(gsym);
- Symbol_value<size> symval;
+ const Sized_symbol<64>* sym = static_cast<const Sized_symbol<64>*>(gsym);
+ Symbol_value<64> symval;
gold_assert(sym->has_symtab_index() && sym->symtab_index() != -1U);
symval.set_output_symtab_index(sym->symtab_index());
symval.set_output_value(sym->value());