[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ld version 2.15.91.0.1 crashes when generating map file
From: |
Alan Modra |
Subject: |
Re: ld version 2.15.91.0.1 crashes when generating map file |
Date: |
Mon, 14 Jun 2004 22:16:09 +0930 |
User-agent: |
Mutt/1.4i |
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 <address@hidden>
* 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