Convert ELF with stabs to A.OUT

Smets, Jan (Jan) jan.smets@alcatel-lucent.com
Fri Feb 3 16:38:00 GMT 2012


Hi everyone

I'm wondering if there is a way to convert ELF executables with stabs debugging information to the older a.out format.

I have a objcopy that supports both elf and a.out formats. 

objcopy -I elf32-i386 -O a.out-i386 --debugging in.o out.o

The output I get is:  don't know how to write debugging information for a.out-i386: Success   , no file is written.

write_debugging_info in objcopy.c only works if the target format is elf or coff.

Is there anything else I can try? 

There are a number of reasons why I need a.out with stabs. (crappy debugger) I don't want to discuss that.

Thanks in advance
 
 - Jan



More information about the Binutils mailing list