This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld version 2.15.91.0.1 crashes when generating map file
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Richard Wirth <r dot wirth at wirthware dot de>
- Cc: bug-binutils at gnu dot org, binutils at sources dot redhat dot com
- Date: Mon, 14 Jun 2004 22:16:09 +0930
- Subject: Re: ld version 2.15.91.0.1 crashes when generating map file
- References: <1153413362.20040614002719@wirthware.de>
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