This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Question about life-time of symbol name strings in BFD
- From: Ian Lance Taylor <iant at google dot com>
- To: =?big5?b?RG91ZyBLd2FuICjD9q62vHcp?= <dougkwan at google dot com>
- Cc: binutils at sourceware dot org
- Date: 24 Jul 2007 07:52:18 -0700
- Subject: Re: Question about life-time of symbol name strings in BFD
- References: <498552560707170000o1f37e9c2v26c360c7577acc2d@mail.gmail.com>
"Doug Kwan (Ãö®¶¼w)" <dougkwan@google.com> writes:
> :I am working on speeding up nm -l in the case a large binary. I
> added a bit of code that uses the BFD hash table in dwarf2.c. The
> speed comes with a price in terms of memory usage. However, I found
> that I can reduce the extra memory required significantly if I do not
> copy hash keys. My question is whether this is safe. Can I assume that
> symbol->name is a constant pointer?
Yes.
Ian