[CRIU] [PATCH] compel: print nr of unsupported relocation
    Dmitry Safonov 
    dsafonov at virtuozzo.com
       
    Mon Jun 20 01:08:33 PDT 2016
    
    
  
Impact: just a bit more info for debugging.
Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 compel/handle-elf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/compel/handle-elf.c b/compel/handle-elf.c
index 22a7f0f5d4c2..bf038aff0ce8 100644
--- a/compel/handle-elf.c
+++ b/compel/handle-elf.c
@@ -527,7 +527,8 @@ int __handle_elf(void *mem, size_t size)
 #endif
 
 			default:
-				pr_err("Unsupported relocation\n");
+				pr_err("Unsupported relocation of type %lu\n",
+					(unsigned long)ELF_R_TYPE(r->rel.r_info));
 				goto err;
 			}
 		}
-- 
2.8.3
    
    
More information about the CRIU
mailing list