[PATCH] x86_64: fill out reloc list

Mike Frysinger vapier at gentoo.org
Wed Apr 29 03:35:40 PDT 2015


From: Mike Frysinger <vapier at chromium.org>

This makes it easy to understand failures w/invalid relocs.

Signed-off-by: Mike Frysinger <vapier at chromium.org>
---
 kexec/arch/x86_64/kexec-elf-rel-x86_64.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
index 06db7f0..5a9854f 100644
--- a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
+++ b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
@@ -48,6 +48,21 @@ static const char *reloc_name(unsigned long r_type)
 	"R_X86_64_DTPOFF32",
 	"R_X86_64_GOTTPOFF",
 	"R_X86_64_TPOFF32",
+	"R_X86_64_PC64",
+	"R_X86_64_GOTOFF64",
+	"R_X86_64_GOTPC32",
+	"R_X86_64_GOT64",
+	"R_X86_64_GOTPCREL64",
+	"R_X86_64_GOTPC64",
+	"R_X86_64_GOTPLT64",
+	"R_X86_64_PLTOFF64",
+	"R_X86_64_SIZE32",
+	"R_X86_64_SIZE64",
+	"R_X86_64_GOTPC32_TLSDESC",
+	"R_X86_64_TLSDESC_CALL",
+	"R_X86_64_TLSDESC",
+	"R_X86_64_IRELATIVE",
+	"R_X86_64_RELATIVE64",
 	};
 	static char buf[100];
 	const char *name;
-- 
2.3.6




More information about the kexec mailing list