summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2005-05-20 19:53:18 +0000
committerBob Wilson <bob.wilson@acm.org>2005-05-20 19:53:18 +0000
commitdd1a320be63abd442e85607f8052ff597901efe5 (patch)
tree08f6791c8e12f56542ed7ae82857f3d8bf82bd27
parent3974a4b6b06153614f6ed055165dde6527b8fe2d (diff)
downloadbinutils-gdb-dd1a320be63abd442e85607f8052ff597901efe5.tar.gz
* elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
xtensa_default_isa is initialized.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-xtensa.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 12121766d46..d608100fded 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index e4e5cc831c1..fea89dded97 100644
--- a/bfd/elf32-xtensa.c
+++ b/bfd/elf32-xtensa.c
@@ -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