bfd/
PR 27271
* elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
on symbols defined in absolute or other special sections.
ld/
* testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
(cherry picked from commit
c4566785ac265b3e4b3cde0e43733975c58d9175)
+2021-01-29 Alan Modra <amodra@gmail.com>
+
+ PR 27271
+ * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
+ on symbols defined in absolute or other special sections.
+
2021-01-26 Alan Modra <amodra@gmail.com>
* elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
if (!elf_hash_table (info)->is_relocatable_executable
|| ((h->root.type == bfd_link_hash_defined
|| h->root.type == bfd_link_hash_defweak)
+ && h->root.u.def.section->owner != NULL
&& h->root.u.def.section->owner->no_export)
|| (h->root.type == bfd_link_hash_common
+ && h->root.u.c.p->section->owner != NULL
&& h->root.u.c.p->section->owner->no_export))
return TRUE;
}
+2021-01-29 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
+
2021-01-27 Nick Clifton <nickc@redhat.com>
Import from mainline:
{objdump -sj.got static-app-1rb.sd}
{objdump -R static-app-1rb.od}}
"static-app-1rb"}
+
+ {"C6X shared library with --export-dynamic"
+ "-shared --export-dynamic -Tdsbt.ld --dsbt-size=3 --hash-style=sysv" ""
+ "-mdsbt -mpic -mpid=near" {shlib-1.s shlib-2.s}
+ {} "pr27271.so"}
}
run_ld_link_tests $shlibtests