This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld version 2.15.91.0.1 crashes when generating map file


On Mon, Jun 14, 2004 at 12:27:19AM +0200, Richard Wirth wrote:
> Hello bug-binutils,
> 
>   in ldlang.c in lang_finish() lang_definedness_table is freed, but
>   used later when generting the map file.
>   hot fix: removed  call to 'bfd_hash_table_free (&lang_definedness_table)'

Thanks.  Applying the following.

ld/ChangeLog
	From Richard Wirth <r.wirth@wirthware.de>
	* ldlang.c (lang_finish): Don't free lang_definedness_table.

Index: ld/ldlang.c
===================================================================
RCS file: /cvs/src/src/ld/ldlang.c,v
retrieving revision 1.153
diff -u -p -r1.153 ldlang.c
--- ld/ldlang.c	29 May 2004 04:30:41 -0000	1.153
+++ ld/ldlang.c	14 Jun 2004 12:44:46 -0000
@@ -3802,7 +3802,8 @@ lang_finish (void)
 	}
     }
 
-  bfd_hash_table_free (&lang_definedness_table);
+  /* Don't bfd_hash_table_free (&lang_definedness_table);
+     map file output may result in a call of lang_track_definedness.  */
 }
 
 /* This is a small function used when we want to ignore errors from

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]