Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating pure machine code with LLVM

Is there a way to generate "pure" machine code from a Module with LLVM?

I mean, I have a Module and want to get only the x86 opcodes without any MachO or Darwin object headers, just the opcodes(and if possible, get them relocated to a certain base address).

like image 949
greenboxal Avatar asked Dec 03 '25 17:12

greenboxal


1 Answers

I think you are looking for objdump. use objdump -d your_executable > dump_file

like image 143
A. K. Avatar answered Dec 06 '25 09:12

A. K.