+2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/23958
+ * elflink.c (_bfd_elf_add_default_symbol): Override the previous
+ definition from IR object.
+
2018-12-08 Stafford Horne <shorne@gmail.com>
* elf32-or1k.c (or1k_grok_prstatus): New function.
if (! bfd_link_relocatable (info))
{
bh = &hi->root;
+ if (bh->type == bfd_link_hash_defined
+ && (bh->u.def.section->owner->flags & BFD_PLUGIN) != 0)
+ {
+ /* Mark the previous definition from IR object as
+ undefined so that the generic linker will override
+ it. */
+ bh->type = bfd_link_hash_undefined;
+ bh->u.undef.abfd = bh->u.def.section->owner;
+ }
if (! (_bfd_generic_link_add_one_symbol
(info, abfd, shortname, BSF_INDIRECT,
bfd_ind_section_ptr,
+2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/23958
+ * testsuite/ld-plugin/lto.exp: Run PR ld/23958 test.
+ * testsuite/ld-plugin/pr23958.c: New file.
+ * testsuite/ld-plugin/pr23958.t: Likewise.
+
2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
* NEWS: Updated for property change report.
{pr23818a.c pr23818b.c} \
{{"readelf" {-s --wide} "pr23818.d"}} \
"libpr23818.so"] \
+ [list "Build libpr23958.so" \
+ "-shared -flto -Wl,-version-script,pr23958.t" \
+ "-g -flto $lto_fat" \
+ {pr23958.c} \
+ "" \
+ "libpr23958.so"] \
]
if { [at_least_gcc_version 4 7] } {
--- /dev/null
+void
+dwarf_bytesize (void)
+{
+}
+
+asm (".symver dwarf_bytesize,dwarf_bytesize@@@ELFUTILS_0.143");
--- /dev/null
+ELFUTILS_0.143 {
+global:
+ dwarf_bytesize;
+};