crisv32.patch 552 B

123456789101112
  1. diff -Nur binutils-2.35.orig/bfd/elf32-cris.c binutils-2.35/bfd/elf32-cris.c
  2. --- binutils-2.35.orig/bfd/elf32-cris.c 2020-07-24 11:12:19.000000000 +0200
  3. +++ binutils-2.35/bfd/elf32-cris.c 2020-09-16 10:45:43.610956675 +0200
  4. @@ -3358,7 +3358,7 @@
  5. /* No need to do anything if we're not creating a shared object. */
  6. if (! bfd_link_pic (info)
  7. - || UNDEFWEAK_NO_DYNAMIC_RELOC (info, h))
  8. + || (h != NULL && UNDEFWEAK_NO_DYNAMIC_RELOC (info, h)))
  9. break;
  10. /* We may need to create a reloc section in the dynobj and made room