From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17090 invoked by alias); 17 Jul 2007 07:00:23 -0000 Received: (qmail 17082 invoked by uid 22791); 17 Jul 2007 07:00:23 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 17 Jul 2007 07:00:21 +0000 Received: from zps37.corp.google.com (zps37.corp.google.com [172.25.146.37]) by smtp-out.google.com with ESMTP id l6H70GDO005331 for ; Tue, 17 Jul 2007 08:00:16 +0100 Received: from wx-out-0506.google.com (wxdi28.prod.google.com [10.70.135.28]) by zps37.corp.google.com with ESMTP id l6H6xgjS009690 for ; Tue, 17 Jul 2007 00:00:10 -0700 Received: by wx-out-0506.google.com with SMTP id i28so1678442wxd for ; Tue, 17 Jul 2007 00:00:10 -0700 (PDT) Received: by 10.90.118.8 with SMTP id q8mr61318agc.1184655609834; Tue, 17 Jul 2007 00:00:09 -0700 (PDT) Received: by 10.90.78.12 with HTTP; Tue, 17 Jul 2007 00:00:09 -0700 (PDT) Message-ID: <498552560707170000o1f37e9c2v26c360c7577acc2d@mail.gmail.com> Date: Tue, 17 Jul 2007 13:11:00 -0000 From: "=?BIG5?B?RG91ZyBLd2FuICjD9q62vHcp?=" To: binutils@sourceware.org Subject: Question about life-time of symbol name strings in BFD MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00304.txt.bz2 Hi, :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? Thanks -Doug