Browse Source

more fixes, more fixes (for Solaris)

master
parent
commit
108f45d0fc
  1. 30
      binutils/binutils.patch
  2. 2
      binutils/binutils.spec

30
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:

2
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

Loading…
Cancel
Save