You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1022 B
31 lines
1022 B
|
24 years ago
|
--- 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:
|