commit 350c762df1ed37cb0e13633cdaa5950c079b96f1 Author: Egeyar Bagcioglu Date: Wed Oct 3 16:24:21 2018 +0000 Do not attempt to place symbols into a discarded .dynsym. Prevent getting an error about dynamic symbols in sections indexed 64K+ when .dynsym is discarded. diff --git a/bfd/elflink.c b/bfd/elflink.c index 02618be..f451309 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -10025,6 +10025,7 @@ elf_link_output_extsym (struct bfd_hash_entry *bh, void *data) there now. We already know the symbol index. We also fill in the entry in the .hash section. */ if (elf_hash_table (flinfo->info)->dynsym != NULL + && !discarded_section(elf_hash_table (flinfo->info)->dynsym) && h->dynindx != -1 && elf_hash_table (flinfo->info)->dynamic_sections_created) {