From 6aa341c73943a7063a43a6a71976f6e5068660d3 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 20 Nov 2008 09:28:06 +0000 Subject: 2008-11-20 Tristan Gingold * bfd.c (is32bit): Use architecture information for non-ELF targets. --- bfd/bfd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bfd/bfd.c') diff --git a/bfd/bfd.c b/bfd/bfd.c index 1900c14..847da52 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c @@ -1475,9 +1475,8 @@ is32bit (bfd *abfd) return bed->s->elfclass == ELFCLASS32; } - /* For non-ELF, make a guess based on the target name. */ - return (strstr (bfd_get_target (abfd), "64") == NULL - && strcmp (bfd_get_target (abfd), "mmo") != 0); + /* For non-ELF targets, use architecture information. */ + return bfd_arch_bits_per_address (abfd) <= 32; } #endif -- cgit v1.1