From ab07805166d7964cfd6945b96a2f2a00042d9232 Mon Sep 17 00:00:00 2001 From: Seth Jennings Date: Mon, 21 Apr 2014 17:39:14 -0500 Subject: [PATCH] add info to expected rela sym error While debugging the code for the bug table logic, I found it useful to know which rela section and entry the error occurred on. Signed-off-by: Seth Jennings --- kpatch-build/create-diff-object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index 1ee980d..2697075 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -1045,7 +1045,8 @@ void kpatch_create_rela_section(struct section *sec, int link) /* reindex and copy into buffer */ for_each_rela(i, rela, &sec->relas) { if (!rela->sym || !rela->sym->twino) - ERROR("expected rela symbol"); + ERROR("expected rela symbol in rela section %s entry %d", + sec->name, i); symndx = rela->sym->twino->index; type = GELF_R_TYPE(rela->rela.r_info); rela->rela.r_info = GELF_R_INFO(symndx, type);