2001-03-29 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 30 Mar 2001 01:26:43 +0000 (01:26 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 30 Mar 2001 01:26:43 +0000 (01:26 +0000)
* readelf.c (process_unwind): Only do unwind sections for
IA64.

binutils/ChangeLog
binutils/readelf.c

index ad1d9562bea0235c91fbf4acdb356656ba693e9d..dc8163eec8a31c0bcc226811d380b923d6084f18 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-29  H.J. Lu  <hjl@gnu.org>
+
+       * readelf.c (process_unwind): Only do unwind sections for
+       IA64.
+
 2001-03-28  H.J. Lu  <hjl@gnu.org>
 
        * Makefile.am ($(srcdir)/dlltool.1): Remove the extra target.
index b589e36459baedbe88613d24d6712b91df0cc31f..ade1d17540817e03b2abe0497fd25899f6fe2dd1 100644 (file)
@@ -3411,6 +3411,12 @@ process_unwind (file)
   unsigned long i, addr_size;
   struct unw_aux_info aux;
 
+  if (elf_header.e_machine != EM_IA_64)
+    {
+      printf (_("\nThere are no unwind sections in this file.\n"));
+      return 1;
+    }
+
   memset (& aux, 0, sizeof (aux));
 
   addr_size = is_32bit_elf ? 4 : 8;
This page took 0.04235 seconds and 4 git commands to generate.