aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-05-30 08:19:30 +0000
committerNick Clifton <nickc@redhat.com>2003-05-30 08:19:30 +0000
commit06aa72344f3d961f1c6c6bbbdf59b415b329611d (patch)
treebf1aacf6ccb5d1834a14fd51fc46b4ba1c0449e6 /ld/emultempl
parent01e51bd08148b55264dd83db3d4cfae5ffa18595 (diff)
downloadgdb-06aa72344f3d961f1c6c6bbbdf59b415b329611d.zip
gdb-06aa72344f3d961f1c6c6bbbdf59b415b329611d.tar.gz
gdb-06aa72344f3d961f1c6c6bbbdf59b415b329611d.tar.bz2
(arm_elf_before_allocation): Replace ASSERT with a test for a NULL
bfd_for_interworking.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/armelf.em8
1 files changed, 6 insertions, 2 deletions
diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em
index 4a63e69..b125c57 100644
--- a/ld/emultempl/armelf.em
+++ b/ld/emultempl/armelf.em
@@ -108,11 +108,15 @@ arm_elf_before_allocation ()
tem->output_has_begun = FALSE;
lang_for_each_statement (arm_elf_set_bfd_for_interworking);
- ASSERT (bfd_for_interwork != NULL);
for (tem = link_info.input_bfds; tem != NULL; tem = tem->link_next)
tem->output_has_begun = FALSE;
- bfd_elf32_arm_get_bfd_for_interworking (bfd_for_interwork, &link_info);
+ /* If bfd_for_interwork is NULL, then there are no loadable sections
+ with real contents to be linked, so we are not going to have to
+ create any interworking stubs, so it is OK not to call
+ bfd_elf32_arm_get_bfd_for_interworking. */
+ if (bfd_for_interwork != NULL)
+ bfd_elf32_arm_get_bfd_for_interworking (bfd_for_interwork, &link_info);
}
/* We should be able to set the size of the interworking stub section. */