From 108f45d0fc17f1eb48657262064298115bc0d7fd Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Thu, 22 Aug 2002 15:43:52 +0000 Subject: [PATCH] more fixes, more fixes (for Solaris) --- binutils/binutils.patch | 30 ++++++++++++++++++++++++++++++ binutils/binutils.spec | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 binutils/binutils.patch diff --git a/binutils/binutils.patch b/binutils/binutils.patch new file mode 100644 index 0000000000..c321ceacf2 --- /dev/null +++ b/binutils/binutils.patch @@ -0,0 +1,30 @@ +--- bfd/elf.c.orig 2002-07-30 20:19:42.000000000 +0200 ++++ bfd/elf.c 2002-08-22 17:41:47.000000000 +0200 +@@ -441,7 +441,7 @@ + isymend = intsym_buf + symcount; + for (esym = extsym_buf, isym = intsym_buf, shndx = extshndx_buf; + isym < isymend; +- esym += extsym_size, isym++, shndx = shndx != NULL ? shndx + 1 : NULL) ++ (char *)esym += extsym_size, isym++, shndx = shndx != NULL ? shndx + 1 : NULL) + (*bed->s->swap_symbol_in) (ibfd, esym, (const PTR) shndx, isym); + + out: +@@ -4235,6 +4235,18 @@ + else + i_ehdrp->e_type = ET_REL; + ++ /* OpenPKG platform branding BEGIN */ ++#if defined(OPENPKG_OS_FREEBSD) ++ i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD; ++#elif defined(OPENPKG_OS_LINUX) ++ i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_LINUX; ++#elif defined(OPENPKG_OS_SOLARIS) ++ i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_SOLARIS; ++#else ++ i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_NONE; ++#endif ++ /* OpenPKG platform branding END */ ++ + switch (bfd_get_arch (abfd)) + { + case bfd_arch_unknown: diff --git a/binutils/binutils.spec b/binutils/binutils.spec index 379c5fbcc2..70245e6ee9 100644 --- a/binutils/binutils.spec +++ b/binutils/binutils.spec @@ -29,7 +29,7 @@ Summary: GNU Binary Utilities URL: http://sources.redhat.com/binutils/ Vendor: Free Software Foundation Packager: The OpenPKG Project -Distribution: OpenPKG [BASE] +Distribution: OpenPKG [CORE] Group: Utility License: GPL Version: 2.13