400-mips_no_dynamic_linking_sym.patch 603 B

123456789101112131415161718
  1. --- a/bfd/elfxx-mips.c
  2. +++ b/bfd/elfxx-mips.c
  3. @@ -7888,6 +7888,7 @@ _bfd_mips_elf_create_dynamic_sections (b
  4. name = SGI_COMPAT (abfd) ? "_DYNAMIC_LINK" : "_DYNAMIC_LINKING";
  5. bh = NULL;
  6. + if (0) {
  7. if (!(_bfd_generic_link_add_one_symbol
  8. (info, abfd, name, BSF_GLOBAL, bfd_abs_section_ptr, 0,
  9. NULL, FALSE, get_elf_backend_data (abfd)->collect, &bh)))
  10. @@ -7900,6 +7901,7 @@ _bfd_mips_elf_create_dynamic_sections (b
  11. if (! bfd_elf_link_record_dynamic_symbol (info, h))
  12. return FALSE;
  13. + }
  14. if (! mips_elf_hash_table (info)->use_rld_obj_head)
  15. {