aboutsummaryrefslogtreecommitdiff
path: root/ld/ldemul.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldemul.c')
-rw-r--r--ld/ldemul.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/ldemul.c b/ld/ldemul.c
index f1f3979..3c07ceb 100644
--- a/ld/ldemul.c
+++ b/ld/ldemul.c
@@ -226,6 +226,16 @@ after_parse_default (void)
void
after_open_default (void)
{
+ struct bfd_link_hash_entry *h;
+
+ h = bfd_wrapped_link_hash_lookup (link_info.output_bfd,
+ &link_info,
+ "__ld_compatibility",
+ FALSE, FALSE, TRUE);
+ if (h != NULL
+ && (h->type == bfd_link_hash_defined
+ || h->type == bfd_link_hash_defweak))
+ ld_compatibility = h->u.def.value;
}
void