On Mon, Nov 12, 2007 at 02:09:17PM +0100, Petr Salinger wrote: >only in patch2: >unchanged: >--- nasm-0.99.06.orig/output/outelf32.c >+++ nasm-0.99.06/output/outelf32.c >@@ -1000,7 +1000,11 @@ > /* > * Output the ELF header. > */ >+#ifdef __FreeBSD_kernel__ >+ fwrite("\177ELF\1\1\1\11\0\0\0\0\0\0\0\0", 16, 1, elffp); >+#else > fwrite("\177ELF\1\1\1\0\0\0\0\0\0\0\0\0", 16, 1, elffp); >+#endif > fwriteint16_t(1, elffp); /* ET_REL relocatable file */ > fwriteint16_t(3, elffp); /* EM_386 processor ID */ > fwriteint32_t(1L, elffp); /* EV_CURRENT file format version */ >only in patch2: >unchanged: >--- nasm-0.99.06.orig/output/outelf64.c >+++ nasm-0.99.06/output/outelf64.c >@@ -1033,7 +1033,11 @@ > /* > * Output the ELF header. > */ >+#ifdef __FreeBSD_kernel__ >+ fwrite("\177ELF\2\1\1\11\0\0\0\0\0\0\0\0", 16, 1, elffp); >+#else > fwrite("\177ELF\2\1\1\0\0\0\0\0\0\0\0\0", 16, 1, elffp); >+#endif > fwriteint16_t(ET_REL, elffp); /* relocatable file */ > fwriteint16_t(EM_X86_64, elffp); /* processor ID */ > fwriteint32_t(1L, elffp); /* EV_CURRENT file format version */
http://sourceforge.net/tracker/index.php?func=detail&aid=1830909&group_id=6208&atid=106208 Followups: >Date: 2007-11-12 23:11 >Sender: hpa (Project Admin) >Logged In: YES >user_id=58697 >Originator: NO > >The attached patch is unacceptable, since it makes a distinction based on >the compiler *HOST*, not on the compiler *target*. What does binutils do >if this field is zero? Is there any option that makes binutils treat it as >a "generic" binary?
signature.asc
Description: Digital signature