[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

diff for setting osabi on elf headers



hi,

the following patch changes bfd's function responsible for preparing elf
headers, so that it sets the osabi field to ELFOSABI_OPENBSD.

comments?

-p.
Index: elf.c
===================================================================
RCS file: /cvs/src/gnu/usr.bin/binutils/bfd/elf.c,v
retrieving revision 1.16
diff -u -r1.16 elf.c
--- elf.c	2003/01/30 21:10:51	1.16
+++ elf.c	2003/05/10 19:08:29
@@ -3285,7 +3285,7 @@
     bfd_big_endian (abfd) ? ELFDATA2MSB : ELFDATA2LSB;
   i_ehdrp->e_ident[EI_VERSION] = bed->s->ev_current;
 
-  i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_NONE;
+  i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_OPENBSD;
   i_ehdrp->e_ident[EI_ABIVERSION] = 0;
 
   for (count = EI_PAD; count < EI_NIDENT; count++)