cargo-disasm
cargo-disasm copied to clipboard
Find libc symbols in symbol discovery
At the moment if you run cargo disasm copy_nonoverlapping, this is the output:
core::intrinsics::copy_nonoverlapping:
cc6e0 sub rsp, 0x28
cc6e4 mov qword ptr [rsp + 0x10], rdi
cc6e9 mov qword ptr [rsp + 0x18], rsi
cc6ee mov qword ptr [rsp + 0x20], rdx
cc6f3 shl rdx, 4
cc6f7 mov qword ptr [rsp + 8], rdi
cc6fc mov rdi, rsi
cc6ff mov rsi, qword ptr [rsp + 8]
cc704 call 0xba150 ; Not symbolicated
cc709 add rsp, 0x28
cc70d ret
For some reason the symbol for memcpy isn't being found using the current symbol discovery methods. I think it might
have something to do with this: https://github.com/ExPixel/cargo-disasm/blob/57161abadd60b91fd89ac9f4dd50d0b96c114fe2/src/disasm/binary.rs#L318-L321
But I'm not sure.