Emit 8 NULs for target section name instead of dumping core when the target
symbol is undefined.
This commit is contained in:
parent
9830501b31
commit
ff0829fd43
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
|
||||||
|
|
||||||
|
* coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
|
||||||
|
target section name instead of dumping core when the target symbol is
|
||||||
|
undefined.
|
||||||
|
|
||||||
2000-09-09 Kazu Hirata <kazu@hxi.com>
|
2000-09-09 Kazu Hirata <kazu@hxi.com>
|
||||||
|
|
||||||
* riscix.c: Remove DEFUN.
|
* riscix.c: Remove DEFUN.
|
||||||
|
|
|
@ -504,7 +504,8 @@ bfd_m68k_coff_create_embedded_relocs (abfd, info, datasec, relsec, errmsg)
|
||||||
bfd_put_32 (abfd,
|
bfd_put_32 (abfd,
|
||||||
(irel->r_vaddr - datasec->vma + datasec->output_offset), p);
|
(irel->r_vaddr - datasec->vma + datasec->output_offset), p);
|
||||||
memset (p + 4, 0, 8);
|
memset (p + 4, 0, 8);
|
||||||
strncpy (p + 4, targetsec->output_section->name, 8);
|
if (targetsec != NULL)
|
||||||
|
strncpy (p + 4, targetsec->output_section->name, 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue