devel/binutils: initial commit
[grimoire-witchcraft.git] / devel / binutils / patches / kfbsd-binutils.diff
blobc0c14b882cad1a8f428a87c523b7b9484620271f
2 - biarch enabled binutils for kfreebsd-amd64
3 - hack elfosabi - same as in binutils_elfosabi.diff
4 - multiarch - similar as in binutils.diff
6 Status: not yet clean
8 diff -ur binutils-2.16.1cvs20060413.old/bfd/elf.c binutils-2.16.1cvs20060413/bfd/elf.c
9 --- binutils-2.16.1cvs20060413.old/bfd/elf.c 2006-04-13 21:31:09.000000000 +0200
10 +++ binutils-2.16.1cvs20060413/bfd/elf.c 2006-04-18 21:20:46.000000000 +0200
11 @@ -4853,6 +4853,8 @@
12 bfd_big_endian (abfd) ? ELFDATA2MSB : ELFDATA2LSB;
13 i_ehdrp->e_ident[EI_VERSION] = bed->s->ev_current;
15 + i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD;
17 if ((abfd->flags & DYNAMIC) != 0)
18 i_ehdrp->e_type = ET_DYN;
19 else if ((abfd->flags & EXEC_P) != 0)