Browse Source

2002-11-05 H.J. Lu <hjl@gnu.org>

* config/tc-mips.c (support_64bit_objects): Check *l before it
	is freed.
jimb-separate-debug-021125-branch
H.J. Lu 24 years ago
parent
commit
aa3d8fdff8
  1. 5
      gas/ChangeLog
  2. 4
      gas/config/tc-mips.c

5
gas/ChangeLog

@ -1,3 +1,8 @@
2002-11-05 H.J. Lu <hjl@gnu.org>
* config/tc-mips.c (support_64bit_objects): Check *l before it
is freed.
2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
* config/obj-coff.c (obj-coff-section): Set SEC_DATA and

4
gas/config/tc-mips.c

@ -10161,6 +10161,7 @@ md_number_to_chars (buf, val, n)
static int support_64bit_objects(void)
{
const char **list, **l;
int yes;
list = bfd_target_list ();
for (l = list; *l != NULL; l++)
@ -10173,8 +10174,9 @@ static int support_64bit_objects(void)
|| strcmp (*l, "elf64-littlemips") == 0)
#endif
break;
yes = (*l != NULL);
free (list);
return (*l != NULL);
return yes;
}
#endif /* OBJ_ELF */

Loading…
Cancel
Save