From patchwork Tue Dec 10 22:07:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 22233 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EEA5523908 for ; Tue, 10 Dec 2013 22:07:23 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id i4sf21753861oah.10 for ; Tue, 10 Dec 2013 14:07:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:cc:subject:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=kA6XVFG84AgsXinzr2gAyfbxKfRLUDGtlBm2c0ZJpkU=; b=QuVshgn39umjCYUP5VxbC6HhFEHCl6bvyfICsXm9giri8zlZxmohcixY9Lb6LChZnI 4d+sBtWeuI1gZEW8OjitptZtvd9kOfsOsZRNmOQKINhkaebJlspCOoXHCNdY7voy09kS l4fyd6C8+76/3UBlEfgRbknOA6eTHFWtecDr9B9ayMahYPXenz902NI/U0KJGrrhP53B i2N7zzmb3ZJ8NPzvAJXh9eye1XDjsH9j36hIEHMs1QrraUdTSAU5gf7K5lW71Vxy1FnA HbS7gxVXtptcTWatuCxWYG9wJMrLNbbO4DSprLV1CDlZIZVKrR0E8r/fAHQjPOSMUXLd aVWA== X-Gm-Message-State: ALoCoQndze6ZnNv85AxoqzsFrDAKR+pss8J3m6plNdPKRol9szlAdNFsszAcXLXR2qrLtu2lNC5v X-Received: by 10.50.126.69 with SMTP id mw5mr9331430igb.7.1386713242913; Tue, 10 Dec 2013 14:07:22 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.145 with SMTP id u17ls2668174qef.42.gmail; Tue, 10 Dec 2013 14:07:22 -0800 (PST) X-Received: by 10.58.144.168 with SMTP id sn8mr970413veb.33.1386713242691; Tue, 10 Dec 2013 14:07:22 -0800 (PST) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id bj1si5576968ved.40.2013.12.10.14.07.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Dec 2013 14:07:22 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id ia6so5044674vcb.18 for ; Tue, 10 Dec 2013 14:07:22 -0800 (PST) X-Received: by 10.52.162.168 with SMTP id yb8mr12341630vdb.8.1386713242580; Tue, 10 Dec 2013 14:07:22 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp222815vcz; Tue, 10 Dec 2013 14:07:22 -0800 (PST) X-Received: by 10.180.206.41 with SMTP id ll9mr3129wic.7.1386713241587; Tue, 10 Dec 2013 14:07:21 -0800 (PST) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by mx.google.com with ESMTPS id hn3si7534593wjb.100.2013.12.10.14.07.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Dec 2013 14:07:21 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.171 is neither permitted nor denied by best guess record for domain of will.newton@linaro.org) client-ip=209.85.212.171; Received: by mail-wi0-f171.google.com with SMTP id bz8so6058666wib.4 for ; Tue, 10 Dec 2013 14:07:21 -0800 (PST) X-Received: by 10.194.176.163 with SMTP id cj3mr22995031wjc.8.1386713241026; Tue, 10 Dec 2013 14:07:21 -0800 (PST) Received: from localhost.localdomain (cpc6-seac21-2-0-cust453.7-2.cable.virginm.net. [82.1.113.198]) by mx.google.com with ESMTPSA id o9sm8858277wib.10.2013.12.10.14.07.19 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Dec 2013 14:07:19 -0800 (PST) Message-ID: <52A79096.8020405@linaro.org> Date: Tue, 10 Dec 2013 22:07:18 +0000 From: Will Newton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: binutils@sourceware.org CC: Patch Tracking Subject: [PATCH] ld/testsuite/ld-aarch64: Fixup IFUNC tests to work on all targets X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Make the ifunc-21 and ifunc-22 tests more generic to support aarch64_be and ELF targets. ld/testsuite/ChangeLog: 2013-12-10 Will Newton * ld-aarch64/ifunc-21.d: Make test more generic to support aarch64_be and ELF targets. * ld-aarch64/ifunc-22.d: Likewise. --- ld/testsuite/ld-aarch64/ifunc-21.d | 25 ++++++++++--------------- ld/testsuite/ld-aarch64/ifunc-22.d | 2 +- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/ld/testsuite/ld-aarch64/ifunc-21.d b/ld/testsuite/ld-aarch64/ifunc-21.d index fa139b2..9ea01e6 100644 --- a/ld/testsuite/ld-aarch64/ifunc-21.d +++ b/ld/testsuite/ld-aarch64/ifunc-21.d @@ -8,24 +8,19 @@ .*: file format elf64-(little|big)aarch64 Contents of section .text: - 02a0 .* + [0-9a-f]+ .* Contents of section .got.plt: - 103a8 0+ 0+ 0+ 0+ .* - 103b8 0+ 0+ [0-9a-f]+ 0+ .* + [0-9a-f]+ 0+ 0+ 0+ 0+ .* + (103b8|10408) 0+ 0+ [0-9a-f]+ [0-9a-f]+ .* Disassembly of section .text: -0+2a0 : - 2a0: d65f03c0 ret +.* : + .*: d65f03c0 ret -0+2a4 : - 2a4: 90000080 adrp x0, 10000 <.*> - 2a8: f941e000 ldr x0, \[x0,#960\] - 2ac: d65f03c0 ret +.* : + .*: 90000080 adrp x0, 10000 <.*> + .*: .* ldr x0, \[x0,#(960|1040)\] + .*: d65f03c0 ret -Disassembly of section .got.plt: - -.*: -.* -.* -.* +#pass \ No newline at end of file diff --git a/ld/testsuite/ld-aarch64/ifunc-22.d b/ld/testsuite/ld-aarch64/ifunc-22.d index f28b039..7f0978d 100644 --- a/ld/testsuite/ld-aarch64/ifunc-22.d +++ b/ld/testsuite/ld-aarch64/ifunc-22.d @@ -8,4 +8,4 @@ .*: file format elf64-(little|big)aarch64 Contents of section \.got: - 4100f0 00000000 00000000 d0004000 00000000 ..........@..... + [0-9a-f]+ 00000000 00000000 (d0004000|18004000|00000000) (00000000|004000d0|00400018) .*