libmem icon indicating copy to clipboard operation
libmem copied to clipboard

Reconsider uses of `process->bits`

Open rdbo opened this issue 1 year ago • 1 comments

Now that the processes store their architecture in lm_process_t, perhaps the use of process->bits is no longer required (or should be minimized) Another thing that should be analyzed is functions like generate_hook_payload and ptrace functions that take bits as parameters

rdbo avatar May 29 '24 17:05 rdbo

Another thing to consider before going deep on this: architectures are still compiled separately. So if bits is not enough to distinguish one architecture from another (e.g x86 from x64), maybe it's time to create a port for that specific architecture, while still using bits for the architectures that allow for it.

rdbo avatar May 29 '24 17:05 rdbo