Trying to assemble the output of an disassembler (such as objdump) [duplicate]
This question already has answers here : Closed 6 years ago . Possible Duplicate: Disassembling, modifying and then reassembling a Linux executable I've been told that assembly and dissassembly are not inverses. Apparently, you can't dissassemble a program, put that output directly into an assembler, and expect it to run correctly because information is lost. My question is, why is information lost? Also, what information is lost? One important thing that disassemblers (or their users) routinely do not preserve is the instruction encoding. Some instructions can be encoded in multiple different