From owner-cvs-src-old@FreeBSD.ORG Thu Aug 12 14:17:19 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7617410656C4 for ; Thu, 12 Aug 2010 14:17:19 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6458B8FC0C for ; Thu, 12 Aug 2010 14:17:19 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o7CEHJXH055954 for ; Thu, 12 Aug 2010 14:17:19 GMT (envelope-from adrian@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o7CEHJ42055953 for cvs-src-old@freebsd.org; Thu, 12 Aug 2010 14:17:19 GMT (envelope-from adrian@repoman.freebsd.org) Message-Id: <201008121417.o7CEHJ42055953@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to adrian@repoman.freebsd.org using -f From: Adrian Chadd Date: Thu, 12 Aug 2010 14:16:57 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/crunch/crunchide exec_elf32.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2010 14:17:19 -0000 adrian 2010-08-12 14:16:57 UTC FreeBSD src repository Modified files: usr.sbin/crunch/crunchide exec_elf32.c Log: SVN rev 211222 on 2010-08-12 14:16:57Z by adrian Fix crunchide to work on sparc64 and perhaps other 64 bit platforms. I used the wrong type when setting st_name in the symbol table entry struct. It's an Elf64_Word which is defined as an unsigned 32 bit int on both 32 and 64 bit platforms. To make things sensible, define some new macros to use as "word" macros and use those, rather than simply using the explicit 32 bit macros. Revision Changes Path 1.19 +6 -1 src/usr.sbin/crunch/crunchide/exec_elf32.c