aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c6
1 files changed, 3 insertions, 3 deletions
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)