binutils.patch 802 B

12345678910111213141516171819202122232425
  1. --- bfd/elf.c.orig 2002-07-30 20:19:42.000000000 +0200
  2. +++ bfd/elf.c 2002-08-22 17:41:47.000000000 +0200
  3. @@ -441,7 +441,7 @@
  4. isymend = intsym_buf + symcount;
  5. for (esym = extsym_buf, isym = intsym_buf, shndx = extshndx_buf;
  6. isym < isymend;
  7. - esym += extsym_size, isym++, shndx = shndx != NULL ? shndx + 1 : NULL)
  8. + (char *)esym += extsym_size, isym++, shndx = shndx != NULL ? shndx + 1 : NULL)
  9. (*bed->s->swap_symbol_in) (ibfd, esym, (const PTR) shndx, isym);
  10. out:
  11. @@ -4235,6 +4235,12 @@
  12. else
  13. i_ehdrp->e_type = ET_REL;
  14. + /* OpenPKG platform branding BEGIN */
  15. +#if defined(OPENPKG_OS_FREEBSD)
  16. + i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD;
  17. +#endif
  18. + /* OpenPKG platform branding END */
  19. +
  20. switch (bfd_get_arch (abfd))
  21. {
  22. case bfd_arch_unknown: