This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ELF .stabs to a.out
- From: Ian Lance Taylor <iant at google dot com>
- To: Vincent RiviÃre <vincent dot riviere at freesbee dot fr>
- Cc: binutils at sourceware dot org
- Date: Mon, 05 Oct 2009 13:03:04 -0700
- Subject: Re: ELF .stabs to a.out
- References: <4AC87320.5030406@freesbee.fr>
Vincent RiviÃre <vincent.riviere@freesbee.fr> writes:
> Can ld convert the .stabs sections from ELF objects to standard a.out
> debugging information ?
No.
> If this is not possible, is there any other debugging information
> format supported by ELF that can be converted to a.out debugging
> information ?
I haven't tried it, but in principle objcopy should be able to convert
ELF stabs to a.out STABS if you use the --debugging option when
converting the file format. You'll need to use a linker script which
forces the ELF executable to use only .text, .data, and .bss sections.
Ian