From: H.J. Lu Date: Fri, 30 Mar 2001 01:26:43 +0000 (+0000) Subject: 2001-03-29 H.J. Lu X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=763d7f51318d147e894c9c776d74c91602fe5cbf;p=pf3gnuchains%2Fpf3gnuchains3x.git 2001-03-29 H.J. Lu * readelf.c (process_unwind): Only do unwind sections for IA64. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index ad1d9562be..dc8163eec8 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 b589e36459..ade1d17540 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;