This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] nm size/value output fixes.
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- To: Elias Athanasopoulos <eathan at otenet dot gr>
- Cc: binutils at sources dot redhat dot com
- Date: 24 May 2002 10:17:38 +0100
- Subject: Re: [PATCH] nm size/value output fixes.
- References: <20020522155416.A1267@neutrino.particles.org>
Hi Elias,
> Of course, there are more to be done. I would like to have a code
> review from the maintainers, in order to proceed and change the
> other formats, too, which, using my patch, are misfunctional.
The patch is looking good.
One thing I would suggest is to add macros to access the fields in the
symbol_info and extended_symbol_info structures, eg:
#define SYM_VALUE(sym) (sym->sinfo->value)
#define SYM_SIZE(sym) (sym->ssize)
and then use them throughout the code. That way if you do have to
change the layout of the structures (eg because you find you have to
move the ssize field into the _symbol_info struct) then you only have
to change the accessor macro and not tons of lines of code.
Cheers
Nick