diff options
author | H.J. Lu <hjl@lucon.org> | 2001-03-30 01:26:43 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2001-03-30 01:26:43 +0000 |
commit | 763d7f51318d147e894c9c776d74c91602fe5cbf (patch) | |
tree | a41411c4b58b2454f9944717962e890457ea09de | |
parent | 11ea83bf7087ad0932822087d7b7e0104caa88ec (diff) | |
download | binutils-redhat-763d7f51318d147e894c9c776d74c91602fe5cbf.tar.gz |
2001-03-29 H.J. Lu <hjl@gnu.org>
* readelf.c (process_unwind): Only do unwind sections for
IA64.
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 6 |
2 files changed, 11 insertions, 0 deletions
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 <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. 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; |