Mail Archives: djgpp/1997/04/29/05:05:39
On Mon, 28 Apr 1997 19:31:27 -0400, lab <lab AT icgroup DOT net> wrote:
> I am very new to djgpp/rhide. I managed to build a library but somehow I
> lost all my .c and .o files. All I have left is the library.Is there a
> way I can disassemble the lib and get my .c files back?........
>
> LAB
To extract all archive members from library:
ar xv libsome.a
To disassemble object file:
objdump --source file.o
If it was compiled with `-g' you will get source lines
mixed with assmebler listing. In this case you can
strip assembler listing (less hand editing needed):
objdump --source file.o | grep -v '^[0-9]' > file.c
`ar' and `objdump' come with binutils.
- Raw text -