Fix decision about when a .interp section should exist

This commit is contained in:
Nick Clifton 2003-11-11 13:32:38 +00:00
parent 08e3ab9089
commit 893c4fe299
12 changed files with 27 additions and 11 deletions

View file

@ -1642,7 +1642,7 @@ elf64_hppa_size_dynamic_sections (output_bfd, info)
if (elf_hash_table (info)->dynamic_sections_created)
{
/* Set the contents of the .interp section to the interpreter. */
if (! info->shared)
if (info->executable)
{
s = bfd_get_section_by_name (dynobj, ".interp");
BFD_ASSERT (s != NULL);