aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_dump
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-02-28 12:49:25 +0100
committerAndrzej Janik <[email protected]>2021-02-28 12:49:25 +0100
commiteec55d9d02f7e778ebeaea6688b632e9899f2e1e (patch)
treeafbffccfddd11c5421d3d7a0345d4a59d15f8ee2 /zluda_dump
parent06a5cff2d85aa691152680f6fd4b0c32ba7fe39f (diff)
downloadZLUDA-eec55d9d02f7e778ebeaea6688b632e9899f2e1e.tar.gz
ZLUDA-eec55d9d02f7e778ebeaea6688b632e9899f2e1e.zip
Inform about ELF binaries in dumper
Diffstat (limited to 'zluda_dump')
-rw-r--r--zluda_dump/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/zluda_dump/src/lib.rs b/zluda_dump/src/lib.rs
index 228b633..8c3518b 100644
--- a/zluda_dump/src/lib.rs
+++ b/zluda_dump/src/lib.rs
@@ -130,6 +130,10 @@ pub unsafe fn cuModuleLoadData(
}
unsafe fn record_module_image_raw(module: CUmodule, raw_image: *const ::std::os::raw::c_void) {
+ if *(raw_image as *const u32) == 0x464c457f {
+ eprintln!("[ZLUDA_DUMP] Unsupported ELF module: {:?}", raw_image);
+ return;
+ }
let image = to_str(raw_image);
match image {
None => eprintln!("[ZLUDA_DUMP] Malformed module image: {:?}", raw_image),