+2014-12-23 Alan Modra <amodra@gmail.com>
+
+ * ldexp.c (exp_fold_tree_1 <etree_provide>): Leave bfd_link_hash_common
+ symbols alone.
+
2014-12-23 Alan Modra <amodra@gmail.com>
* ldexp.c (update_definedness): Correct logic setting by_object.
h = bfd_link_hash_lookup (link_info.hash, tree->assign.dst,
FALSE, FALSE, TRUE);
if (h == NULL
- || (h->type != bfd_link_hash_new
- && h->type != bfd_link_hash_undefined
- && h->type != bfd_link_hash_common
- && !(h->type == bfd_link_hash_defined
+ || !(h->type == bfd_link_hash_new
+ || h->type == bfd_link_hash_undefined
+ || (h->type == bfd_link_hash_defined
&& (h->u.def.section->flags
& SEC_LINKER_CREATED) != 0)))
{
- /* Do nothing. The symbol was never referenced, or was
- defined by some object. */
+ /* Do nothing. The symbol was never referenced, or
+ was defined in some object file. Undefined weak
+ symbols stay undefined. */
break;
}
}
+2014-12-23 Alan Modra <amodra@gmail.com>
+
+ * ld-elf/endsym.s, *ld-elf/endsym.d: New test.
+
2014-12-19 Matthew Fortune <matthew.fortune@imgtec.com>
* ld-mips-elf/attr-gnu-4-00.d: Relax check for ISA extension.