Check to see if the filename symbol has been initialised before extracting
its symbol index.
This commit is contained in:
parent
d6d788bdf3
commit
ea3b9044a6
|
@ -1,3 +1,8 @@
|
||||||
|
2001-04-25 Nick Clifton <nickc@cambridge.redhat.com>
|
||||||
|
|
||||||
|
* config/obj-coff.c (do_linenos_for): Check to see if the filename
|
||||||
|
symbol has been initialised before extracting its symbol index.
|
||||||
|
|
||||||
2001-04-24 H.J. Lu <hjl@gnu.org>
|
2001-04-24 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* configure: Regenerated with the right version of autoconf.
|
* configure: Regenerated with the right version of autoconf.
|
||||||
|
|
|
@ -2076,7 +2076,7 @@ fill_section (abfd, h, file_cursor)
|
||||||
if (s->s_name[0])
|
if (s->s_name[0])
|
||||||
{
|
{
|
||||||
fragS *frag = segment_info[i].frchainP->frch_root;
|
fragS *frag = segment_info[i].frchainP->frch_root;
|
||||||
char *buffer;
|
char *buffer = NULL;
|
||||||
|
|
||||||
if (s->s_size == 0)
|
if (s->s_size == 0)
|
||||||
s->s_scnptr = 0;
|
s->s_scnptr = 0;
|
||||||
|
@ -3350,12 +3350,13 @@ do_linenos_for (abfd, h, file_cursor)
|
||||||
line_ptr != (struct lineno_list *) NULL;
|
line_ptr != (struct lineno_list *) NULL;
|
||||||
line_ptr = line_ptr->next)
|
line_ptr = line_ptr->next)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (line_ptr->line.l_lnno == 0)
|
if (line_ptr->line.l_lnno == 0)
|
||||||
{
|
{
|
||||||
/* Turn a pointer to a symbol into the symbols' index */
|
/* Turn a pointer to a symbol into the symbols' index,
|
||||||
line_ptr->line.l_addr.l_symndx =
|
provided that it has been initialised. */
|
||||||
((symbolS *) line_ptr->line.l_addr.l_symndx)->sy_number;
|
if (line_ptr->line.l_addr.l_symndx)
|
||||||
|
line_ptr->line.l_addr.l_symndx =
|
||||||
|
((symbolS *) line_ptr->line.l_addr.l_symndx)->sy_number;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue