From owner-freebsd-mips@FreeBSD.ORG Fri Aug 6 23:31:30 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AF93106564A for ; Fri, 6 Aug 2010 23:31:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 37DAD8FC08 for ; Fri, 6 Aug 2010 23:31:29 +0000 (UTC) Received: by iwn10 with SMTP id 10so2106868iwn.13 for ; Fri, 06 Aug 2010 16:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=/QoVX39h+aHNBCQvHpjw46SXE2jatENxBCM8G7vojZM=; b=KnAQmj5YhaiReaVeGbgXVEzxV3iV7xUpynLKw6LkDJfzR+9cm3HYMTRsaDpVjb0YBn koxBn6rnDM/O6KnVQOU81iOl9dG3B8AMFxs/Fskd355zeKGKRJIKZQFgRrGoo9PpdfrO brCsvFIXsiJzpgpE6p4TzGTCA/cc4GoCsQ39U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=a/AeVX0zDtMKvj3YDxlqXSiOqqvEMbH7mJVbNcxHJADB31YWUKfW88Th5aX3/jWv2n DtD0qFtNjZGD1FaCjIDNzgeSvCCHMf/HD/G5nMs2WQ7Gi+dH4XvcGdGNm7X4UXKwf63R a/wgQcdRqHlSCo1PQ9rB+H2JFyGw5ylDWpVuE= MIME-Version: 1.0 Received: by 10.231.14.200 with SMTP id h8mr13479792iba.188.1281137489278; Fri, 06 Aug 2010 16:31:29 -0700 (PDT) Received: by 10.231.158.71 with HTTP; Fri, 6 Aug 2010 16:31:29 -0700 (PDT) Date: Sat, 7 Aug 2010 07:31:29 +0800 Message-ID: From: Adrian Chadd To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: crunchide fixes for -mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2010 23:31:30 -0000 Hi, I've just fixed up crunchide to generate MIPS-happy hidden symbols. This is a port of the netbsd exec_elf32.c but using the byte order macros in ours. I've tested it compiling both locally-built crunch'ed binaries and cross-compile'd crunch binaries. I've generated both (functioning!) static and dynamic rescue binaries for MIPS. I haven't (yet) tested 32/64 bit x86 binaries or any other platforms. Because the change in symbol hiding was done for MIPS relocation-related reasons, I'd like a MIPS-centric review please. http://people.freebsd.org/~adrian/crunchide-mips32-fix-from-netbsd.diff Thanks! Adrian