From cba8ccced64a579ae5691aa5223a41ad0172095a Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 13 Jan 2011 13:29:55 +0000 Subject: PR ld/12356 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE. (Expression Section): Update. * ld.h (ld_config_type): Add sane_expr. * ldgram.y (ifile_p1): Add LD_FEATURE. * ldlex.l (LD_FEATYRE): New. * ldemul.c (after_parse_default): Delete code handling ld_compatibility. * ldexp.h (struct ldexp_control): Delete uses_defined. * ldexp.c: Remove all uses of uses_defined. (fold_name): Test config.sane_expr rather than ld_compatibility. (exp_fold_tree_1): Likewise. Adjust handling of assignments during first phase. * ldlang.h (ld_compatibility): Delete. (lang_ld_feature): Declare. * ldlang.c (ld_compatibility): Delete. (open_input_bfds): Only handle assignments for --defsym. (lang_ld_feature): New function. --- ld/ldemul.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'ld/ldemul.c') diff --git a/ld/ldemul.c b/ld/ldemul.c index 3c07ceb364..f1f3979578 100644 --- a/ld/ldemul.c +++ b/ld/ldemul.c @@ -226,16 +226,6 @@ 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 -- cgit v1.2.1