public inbox for prelink@sourceware.org
 help / color / mirror / Atom feed
From: "Joseph S. Myers" <joseph@codesourcery.com>
To: prelink@sourceware.org
Subject: [ARM prelink 3/3] Adjust tests for ARM
Date: Wed, 04 Mar 2009 01:45:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.64.0903040144170.15240@digraph.polyomino.org.uk> (raw)

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  <joseph@codesourcery.com>

	* 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

             reply	other threads:[~2009-03-04  1:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-04  1:45 Joseph S. Myers [this message]
2009-03-11 12:01 ` Jakub Jelinek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0903040144170.15240@digraph.polyomino.org.uk \
    --to=joseph@codesourcery.com \
    --cc=prelink@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).