aboutsummaryrefslogtreecommitdiff
path: root/bfd/tekhex.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-11-07 21:22:02 +1030
committerAlan Modra <amodra@gmail.com>2014-11-07 21:24:49 +1030
commit56aedec7ab6a1da818ed900827e3a2eb1f5cc5d2 (patch)
tree8475176ba0e291e8844eb5a4991868e3debd06f3 /bfd/tekhex.c
parente5242d4bede9761e9847ca85f8477b4e275a6e22 (diff)
downloadgdb-56aedec7ab6a1da818ed900827e3a2eb1f5cc5d2.zip
gdb-56aedec7ab6a1da818ed900827e3a2eb1f5cc5d2.tar.gz
gdb-56aedec7ab6a1da818ed900827e3a2eb1f5cc5d2.tar.bz2
tekhex architecure
is a don't care. * tekhex.c (tekhex_set_arch_mach): Ignore unknown arch errors.
Diffstat (limited to 'bfd/tekhex.c')
-rw-r--r--bfd/tekhex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/tekhex.c b/bfd/tekhex.c
index aaebcee..0328689 100644
--- a/bfd/tekhex.c
+++ b/bfd/tekhex.c
@@ -677,7 +677,9 @@ tekhex_set_arch_mach (bfd *abfd,
enum bfd_architecture arch,
unsigned long machine)
{
- return bfd_default_set_arch_mach (abfd, arch, machine);
+ /* Ignore errors about unknown architecture. */
+ return (bfd_default_set_arch_mach (abfd, arch, machine)
+ || arch == bfd_arch_unknown);
}
/* We have to save up all the Tekhexords for a splurge before output. */