From 8c13bcd2209cb776aa2cf7e5016b7884b0aecbf6 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Tue, 25 Apr 2017 19:21:57 -0700 Subject: Experimental implementation of RELR-style relocations. For x86-64 only. Instead of R_X86_64_RELATIVE relocations, we write the offsets of the relocation targets to a new section, .relr.dyn, with section type SHT_RELR. --- elfcpp/elfcpp_internal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'elfcpp/elfcpp_internal.h') diff --git a/elfcpp/elfcpp_internal.h b/elfcpp/elfcpp_internal.h index 14adfde..a1cfcf5 100644 --- a/elfcpp/elfcpp_internal.h +++ b/elfcpp/elfcpp_internal.h @@ -180,6 +180,12 @@ struct Rela_data typename Elf_types::Elf_Swxword r_addend; }; +template +struct Relr_data +{ + typename Elf_types::Elf_Addr r_offset; +}; + // MIPS-64 has a non-standard layout for relocations. struct Mips64_rel_data -- cgit v1.1