This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFA: Add readelf --unwind support for ARM
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org, Richard Earnshaw <Richard dot Earnshaw at arm dot com>, Paul Brook <paul at codesourcery dot com>
- Date: Tue, 2 Mar 2010 10:19:10 -0500
- Subject: Re: RFA: Add readelf --unwind support for ARM
- References: <20100226184508.GA11763@caradoc.them.org> <4B8CC5C4.3010203@redhat.com>
On Tue, Mar 02, 2010 at 08:01:08AM +0000, Nick Clifton wrote:
> > + if (elf_header.e_machine == EM_ARM)
> > + addr.offset &= ~1;
>
> I suspect that this behaviour might be needed for other architectures
> as well (MIPS16 maybe ?). So you might as well use a macro that
> tests e_machine and returns an unmangled offset.
Could you give me an example of what you mean? Something like this?
#define REMOVE_ARCH_BITS(ADDR) do { \
if (elf_header.e_machine == EM_ARM) \
ADDR &= ~1; \
} while (0)
> >+ if (relsec->sh_type == SHT_REL)
>
> Just curious - are there any ARM binaries that use REL relocations
> and have unwind tables ?
In practice, I'm not sure. I know there are REL ARM binaries -
VxWorks uses REL, but last I checked it wasn't on the EABI yet.
--
Daniel Jacobowitz
CodeSourcery