summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-02-15 15:05:18 +0000
committerNick Clifton <nickc@redhat.com>2015-02-15 15:05:18 +0000
commit49987e5cbb94d95e844374952923b7bb8f13ca87 (patch)
tree7da9a93d981c966ff68019851f82713bc8f03d43
parent62f8d21784db0dd5f8e3717290bff32bd824cf2f (diff)
downloadbinutils-gdb-49987e5cbb94d95e844374952923b7bb8f13ca87.tar.gz
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.
-rw-r--r--bfd/pdp11.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/pdp11.c b/bfd/pdp11.c
index 420c9c3d074..0c2bb136757 100644
--- a/bfd/pdp11.c
+++ b/bfd/pdp11.c
@@ -1191,7 +1191,12 @@ aout_get_external_symbols (bfd *abfd)
/* PR 17512: file: 011f5a08. */
if (count == 0)
- return FALSE;
+ {
+ obj_aout_external_syms (abfd) = NULL;
+ obj_aout_external_sym_count (abfd) = count;
+ return TRUE;
+ }
+
#ifdef USE_MMAP
if (! bfd_get_file_window (abfd, obj_sym_filepos (abfd),
exec_hdr (abfd)->a_syms,