From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31839 invoked by alias); 4 Mar 2009 01:45:04 -0000 Received: (qmail 31830 invoked by uid 22791); 4 Mar 2009 01:45:03 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Mar 2009 01:44:57 +0000 Received: (qmail 2263 invoked from network); 4 Mar 2009 01:44:54 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 4 Mar 2009 01:44:54 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.69) (envelope-from ) id 1LegAH-0004z9-S8 for prelink@sourceware.org; Wed, 04 Mar 2009 01:44:53 +0000 Date: Wed, 04 Mar 2009 01:45:00 -0000 From: "Joseph S. Myers" To: prelink@sourceware.org Subject: [ARM prelink 3/3] Adjust tests for ARM Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact prelink-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: prelink-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00006.txt.bz2 This is the third of three patches with various fixes to the prelinker's ARM support. This one adds ARM to the list of architectures requiring shared libraries to be PIC. Please commit if OK. 2009-03-04 Joseph Myers * testsuite/reloc2.sh, testsuite/tls3.sh: Add ARM to architectures requiring PIC shared libraries. diff -rupN prelink.tls/testsuite/reloc2.sh prelink.tests/testsuite/reloc2.sh --- prelink.tls/testsuite/reloc2.sh 2009-03-03 17:05:15.000000000 -0800 +++ prelink.tests/testsuite/reloc2.sh 2009-03-03 17:27:46.000000000 -0800 @@ -2,7 +2,7 @@ . `dirname $0`/functions.sh SHFLAGS= case "`uname -m`" in - ia64|ppc*|x86_64|mips*) SHFLAGS=-fpic;; # Does not support non-pic shared libs + ia64|ppc*|x86_64|mips*|arm*) SHFLAGS=-fpic;; # Does not support non-pic shared libs s390*) if file reloc1lib1.so | grep -q 64-bit; then SHFLAGS=-fpic; fi;; esac # Disable this test under SELinux if textrel diff -rupN prelink.tls/testsuite/tls3.sh prelink.tests/testsuite/tls3.sh --- prelink.tls/testsuite/tls3.sh 2009-03-03 17:05:15.000000000 -0800 +++ prelink.tests/testsuite/tls3.sh 2009-03-03 17:28:00.000000000 -0800 @@ -7,7 +7,7 @@ echo '__thread int a; int main (void) { ( ./tlstest || { rm -f tlstest; exit 77; } ) 2>/dev/null || exit 77 SHFLAGS= case "`uname -m`" in - ia64|ppc*|x86_64|alpha*|s390*|mips*) SHFLAGS=-fpic;; # Does not support non-pic shared libs + ia64|ppc*|x86_64|alpha*|s390*|mips*|arm*) SHFLAGS=-fpic;; # Does not support non-pic shared libs esac # Disable this test under SELinux if textrel test -z "$SHFLAGS" -a -x /usr/sbin/getenforce -a "`/usr/sbin/getenforce`" = Enforcing && exit 77 -- Joseph S. Myers joseph@codesourcery.com