From owner-cvs-src-old@FreeBSD.ORG Tue Aug 10 09:24:37 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 C68C2106564A for ; Tue, 10 Aug 2010 09:24:37 +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 B53F98FC2B for ; Tue, 10 Aug 2010 09:24:37 +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 o7A9ObGe020706 for ; Tue, 10 Aug 2010 09:24:37 GMT (envelope-from adrian@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o7A9ObY4020705 for cvs-src-old@freebsd.org; Tue, 10 Aug 2010 09:24:37 GMT (envelope-from adrian@repoman.freebsd.org) Message-Id: <201008100924.o7A9ObY4020705@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to adrian@repoman.freebsd.org using -f From: Adrian Chadd Date: Tue, 10 Aug 2010 09:24:19 +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: Tue, 10 Aug 2010 09:24:37 -0000 adrian 2010-08-10 09:24:19 UTC FreeBSD src repository Modified files: usr.sbin/crunch/crunchide exec_elf32.c Log: SVN rev 211137 on 2010-08-10 09:24:19Z by adrian Port over changes to the crunch symbol hiding method from NetBSD. The older symbol hiding method breaks for MIPS. This implements symbol hiding through renaming to a symbol name which is highly unlikely to clash. The NetBSD code didn't use byte-swapping macros for endian-awareness; so it didn't work when cross-compiling a MIPS world on i386/amd64. This patch includes those (as best as I could figure what they should be) and has been tested to generate valid MIPS crunch binaries both cross- and native- compiled. Revision Changes Path 1.18 +89 -135 src/usr.sbin/crunch/crunchide/exec_elf32.c