aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-03-30 01:26:43 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-03-30 01:26:43 +0000
commitf1467e3315649f7b5ff3d223b4618e6b79b17107 (patch)
tree61ab4b455d05b773d270f0a126e512f07daed418 /binutils/readelf.c
parent0068722893c2b04ae34b633e59ab289f31c794a9 (diff)
downloadfsf-binutils-gdb-f1467e3315649f7b5ff3d223b4618e6b79b17107.zip
fsf-binutils-gdb-f1467e3315649f7b5ff3d223b4618e6b79b17107.tar.gz
fsf-binutils-gdb-f1467e3315649f7b5ff3d223b4618e6b79b17107.tar.bz2
2001-03-29 H.J. Lu <hjl@gnu.org>
* readelf.c (process_unwind): Only do unwind sections for IA64.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index b589e36..ade1d17 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -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;