This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [arm] EABI annotation of thumb symbols.
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: binutils at sources dot redhat dot com, Richard Earnshaw <rearnsha at arm dot com>
- Date: 02 Nov 2004 10:05:56 -0500
- Subject: Re: [arm] EABI annotation of thumb symbols.
- References: <200411021422.03537.paul@codesourcery.com>
Paul Brook <paul@codesourcery.com> writes:
> The patch below implements this. The main complication is that objdump -d
> breaks. I added a new bfd function to get the real address of a symbol. This
> seemed preferable to trying to mangle symbols while reading them in.
>
> I'm open to alternative suggestions if people think this is the wrong way to
> implement this.
I think this is the wrong way to implement this. It introduces a new
function with rather unclear semantics. When is a program supposed to
call bfd_real_symbol_address()? Why don't you have to change nm.c and
ar.c while you are at it?
Richard's suggestion of mangling the values on the way in seems
plausible. Alternatively, add a new disassembler hook to frob the
symbol table.
Ian