diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-09 12:45:57 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-09 12:45:57 -0700 |
commit | 9d45a7de8b80336b9965ee99353c34be85b1b98f (patch) | |
tree | a6d01c038ffbba8ea6d594a958cc53e680e176a5 /bfd/elf32-bfin.c | |
parent | 777a42f1f86b60d11cfe0e5964036823e6920f79 (diff) | |
download | gdb-9d45a7de8b80336b9965ee99353c34be85b1b98f.zip gdb-9d45a7de8b80336b9965ee99353c34be85b1b98f.tar.gz gdb-9d45a7de8b80336b9965ee99353c34be85b1b98f.tar.bz2 |
bfin: Don't create .interp section for info->nointerp
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".
Diffstat (limited to 'bfd/elf32-bfin.c')
-rw-r--r-- | bfd/elf32-bfin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c index 09e50ce..94c7c2a 100644 --- a/bfd/elf32-bfin.c +++ b/bfd/elf32-bfin.c @@ -5336,7 +5336,7 @@ bfin_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED, 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); |