From f1467e3315649f7b5ff3d223b4618e6b79b17107 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 30 Mar 2001 01:26:43 +0000 Subject: [PATCH] 2001-03-29 H.J. Lu * readelf.c (process_unwind): Only do unwind sections for IA64. --- binutils/ChangeLog | 5 +++++ binutils/readelf.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index ad1d9562bea..dc8163eec8a 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2001-03-29 H.J. Lu + + * readelf.c (process_unwind): Only do unwind sections for + IA64. + 2001-03-28 H.J. Lu * Makefile.am ($(srcdir)/dlltool.1): Remove the extra target. diff --git a/binutils/readelf.c b/binutils/readelf.c index b589e36459b..ade1d175408 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; -- 2.30.2