This fixes a bug I introduced to the PDP11 target when I was trying to fix an illegal memory access problem.
* pdp11.c (aout_get_external_symbols): Return TRUE if there are no symbols - just set the count to zero.
This commit is contained in:
parent
62f8d21784
commit
49987e5cbb
|
@ -1191,7 +1191,12 @@ aout_get_external_symbols (bfd *abfd)
|
||||||
|
|
||||||
/* PR 17512: file: 011f5a08. */
|
/* PR 17512: file: 011f5a08. */
|
||||||
if (count == 0)
|
if (count == 0)
|
||||||
return FALSE;
|
{
|
||||||
|
obj_aout_external_syms (abfd) = NULL;
|
||||||
|
obj_aout_external_sym_count (abfd) = count;
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef USE_MMAP
|
#ifdef USE_MMAP
|
||||||
if (! bfd_get_file_window (abfd, obj_sym_filepos (abfd),
|
if (! bfd_get_file_window (abfd, obj_sym_filepos (abfd),
|
||||||
exec_hdr (abfd)->a_syms,
|
exec_hdr (abfd)->a_syms,
|
||||||
|
|
Loading…
Reference in New Issue