Don't create the .interp section with "ld --no-dynamic-linker". This
fixed:
FAIL: PR ld/20828 forcibly exported symbol version without section GC
FAIL: PR ld/20828 forcibly exported symbol version with section GC
FAIL: readelf version information
* elf32-bfin.c (bfin_size_dynamic_sections): Don't create the
.interp section with "ld --no-dynamic-linker".
+2017-10-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf32-bfin.c (bfin_size_dynamic_sections): Don't create the
+ .interp section with "ld --no-dynamic-linker".
+
2017-10-09 Alan Modra <amodra@gmail.com>
PR 22212
if (elf_hash_table (info)->dynamic_sections_created)
{
/* Set the contents of the .interp section to the interpreter. */
- if (bfd_link_executable (info))
+ if (bfd_link_executable (info) && !info->nointerp)
{
s = bfd_get_linker_section (dynobj, ".interp");
BFD_ASSERT (s != NULL);