aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/deffilep.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/ld/deffilep.y b/ld/deffilep.y
index 4967ff1..fb12e6d 100644
--- a/ld/deffilep.y
+++ b/ld/deffilep.y
@@ -610,12 +610,11 @@ cmp_export_elem (const def_file_export *e, const char *ex_name,
{
int r;
- if ((r = are_names_equal (ex_name, e->name)) != 0)
+ if ((r = are_names_equal (its_name ? its_name : ex_name,
+ e->its_name ? e->its_name : e->name)) != 0)
return r;
if ((r = are_names_equal (in_name, e->internal_name)) != 0)
return r;
- if ((r = are_names_equal (its_name, e->its_name)) != 0)
- return r;
return (ord - e->ordinal);
}