diff options
author | Andrzej Janik <[email protected]> | 2021-02-28 12:49:25 +0100 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-02-28 12:49:25 +0100 |
commit | eec55d9d02f7e778ebeaea6688b632e9899f2e1e (patch) | |
tree | afbffccfddd11c5421d3d7a0345d4a59d15f8ee2 | |
parent | 06a5cff2d85aa691152680f6fd4b0c32ba7fe39f (diff) | |
download | ZLUDA-eec55d9d02f7e778ebeaea6688b632e9899f2e1e.tar.gz ZLUDA-eec55d9d02f7e778ebeaea6688b632e9899f2e1e.zip |
Inform about ELF binaries in dumper
-rw-r--r-- | zluda_dump/src/lib.rs | 4 |
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), |