diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-03-31 06:36:17 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-03-31 06:36:17 +0000 |
commit | e58d53afc0fdc341ae26bf42cf63f81fd95d35a2 (patch) | |
tree | 80c467de258406e4e60de80f7e930e49aecde2ed /binutils | |
parent | cdbc6895e50c685493695b864b5c6f4e0eca23ea (diff) | |
download | fsf-binutils-gdb-e58d53afc0fdc341ae26bf42cf63f81fd95d35a2.zip fsf-binutils-gdb-e58d53afc0fdc341ae26bf42cf63f81fd95d35a2.tar.gz fsf-binutils-gdb-e58d53afc0fdc341ae26bf42cf63f81fd95d35a2.tar.bz2 |
2001-03-30 H.J. Lu <hjl@gnu.org>
* readelf.c (process_unwind): Just return if do_unwind is 0.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/readelf.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 469fb00..77297bc 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2001-03-30 H.J. Lu <hjl@gnu.org> + + * readelf.c (process_unwind): Just return if do_unwind is 0. + 2001-03-28 Roger Sayle <roger@metaphorics.com> * dlltool.c (make_one_lib_file): Fix section flags for diff --git a/binutils/readelf.c b/binutils/readelf.c index ade1d17..2e144cf 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -3411,6 +3411,9 @@ process_unwind (file) unsigned long i, addr_size; struct unw_aux_info aux; + if (!do_unwind) + return 1; + if (elf_header.e_machine != EM_IA_64) { printf (_("\nThere are no unwind sections in this file.\n")); @@ -3421,9 +3424,6 @@ process_unwind (file) addr_size = is_32bit_elf ? 4 : 8; - if (!do_unwind) - return 1; - for (i = 0, sec = section_headers; i < elf_header.e_shnum; ++i, ++sec) { if (sec->sh_type == SHT_SYMTAB) |