aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binutils/dwarf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 2b1eec4..63e6d2e 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -10666,9 +10666,9 @@ display_gdb_index (struct dwarf_section *section,
kind = GDB_INDEX_SYMBOL_KIND_VALUE (cu);
cu = GDB_INDEX_CU_VALUE (cu);
/* Convert to TU number if it's for a type unit. */
- if (cu >= cu_list_elements / 2)
+ if (cu >= cu_list_elements)
printf ("%cT%lu", num_cus > 1 ? '\t' : ' ',
- (unsigned long) (cu - cu_list_elements / 2));
+ (unsigned long) (cu - cu_list_elements));
else
printf ("%c%lu", num_cus > 1 ? '\t' : ' ', (unsigned long) cu);