[Glibc-bsd-commits] r5315 - in trunk/freebsd-glue: debian src

rmh at alioth.debian.org rmh at alioth.debian.org
Wed Jan 8 14:04:03 UTC 2014


Author: rmh
Date: 2014-01-08 14:04:03 +0000 (Wed, 08 Jan 2014)
New Revision: 5315

Modified:
   trunk/freebsd-glue/debian/changelog
   trunk/freebsd-glue/src/get_elf_arch.c
Log:
Add __ELF_WORD_SIZE to <machine/__get_elf_arch.h>.

Modified: trunk/freebsd-glue/debian/changelog
===================================================================
--- trunk/freebsd-glue/debian/changelog	2014-01-08 11:59:48 UTC (rev 5314)
+++ trunk/freebsd-glue/debian/changelog	2014-01-08 14:04:03 UTC (rev 5315)
@@ -2,6 +2,7 @@
 
   * Only include <sys/sysctl.h> when needed (should fix FTBFS on
     hurd-i386).
+  * Add __ELF_WORD_SIZE to <machine/__get_elf_arch.h>.
 
  -- Robert Millan <rmh at debian.org>  Wed, 08 Jan 2014 12:59:25 +0100
 

Modified: trunk/freebsd-glue/src/get_elf_arch.c
===================================================================
--- trunk/freebsd-glue/src/get_elf_arch.c	2014-01-08 11:59:48 UTC (rev 5314)
+++ trunk/freebsd-glue/src/get_elf_arch.c	2014-01-08 14:04:03 UTC (rev 5315)
@@ -17,6 +17,7 @@
     perror ("read");
 
   printf ("#define ELF_ARCH %u\n", ehdr.e_machine);
+  printf ("#define __ELF_WORD_SIZE %u\n", ehdr.e_ident[EI_CLASS] == ELFCLASS64 ? 64 : 32);
 
   close (fd);
 




More information about the Glibc-bsd-commits mailing list