The x86_64 abi defines a special section type for .eh_frame[_hdr],
SHT_X86_64_UNWIND, which is a valid relocation target type.
https://sourceware.org/bugzilla/show_bug.cgi?id=26878
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2020-11-17 Mark Wielard <mark@klomp.org>
+
+ * x86_64_symbol.c (x86_64_check_reloc_target_type): New function.
+ * x86_64_init.c (x86_64_init): Hook check_reloc_target_type.
+
2020-10-19 Mark Wielard <mark@klomp.org>
* Makefile.am (modules): Remove tilegx.
eh->frame_nregs = 17;
HOOK (eh, set_initial_registers_tid);
HOOK (eh, unwind);
+ HOOK (eh, check_reloc_target_type);
return eh;
}
return NULL;
}
+
+/* The SHT_X86_64_UNWIND section type is a valid target for relocation. */
+bool
+x86_64_check_reloc_target_type (Ebl *ebl __attribute__ ((unused)),
+ Elf64_Word sh_type)
+{
+ return sh_type == SHT_X86_64_UNWIND;
+}