* elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
authorBob Wilson <bob.wilson@acm.org>
Fri, 20 May 2005 19:53:18 +0000 (19:53 +0000)
committerBob Wilson <bob.wilson@acm.org>
Fri, 20 May 2005 19:53:18 +0000 (19:53 +0000)
xtensa_default_isa is initialized.

bfd/ChangeLog
bfd/elf32-xtensa.c

index 12121766d462bab6cc1e1222631307a35f07d1c7..d608100fded4bcc93d83d06abd0a5e5d77ba0d64 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-20  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
+       xtensa_default_isa is initialized.
+
 2005-05-20  Alan Modra  <amodra@bigpond.net.au>
 
        * elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned
index e4e5cc831c15642acb0e12766ba4778db8f82c7b..fea89dded97867e7b23cc4ac74b24a611f11c5e1 100644 (file)
@@ -1855,6 +1855,9 @@ bfd_elf_xtensa_reloc (bfd *abfd,
   asection *reloc_target_output_section;
   bfd_boolean is_weak_undef;
 
+  if (!xtensa_default_isa)
+    xtensa_default_isa = xtensa_isa_init (0, 0);
+
   /* ELF relocs are against symbols.  If we are producing relocatable
      output, and the reloc is against an external symbol, the resulting
      reloc will also be against the same symbol.  In such a case, we
This page took 0.032955 seconds and 4 git commands to generate.