From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19949 invoked by alias); 10 Jul 2014 08:16:23 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 19926 invoked by uid 89); 10 Jul 2014 08:16:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 10 Jul 2014 08:16:21 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Thu, 10 Jul 2014 09:16:18 +0100 Received: from [10.1.205.157] ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 10 Jul 2014 09:16:18 +0100 Message-ID: <53BE4BD2.2070201@arm.com> Date: Thu, 10 Jul 2014 08:16:00 -0000 From: Jiong Wang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: "binutils@sourceware.org" Subject: [PATCH/AArch64] Fix testcase glitch for linux target X-MC-Unique: 114071009161811501 Content-Type: multipart/mixed; boundary="------------050104060603010701080302" X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00117.txt.bz2 This is a multi-part message in MIME format. --------------050104060603010701080302 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable Content-length: 436 the testcase for previous --emit-relocs issue was written & tested for bare= -metal, while for linux target, the start address will include "SIZEOF_HEADERS" . =3D SEGMENT_START("text-segment", 0x400000) + SIZEOF_HEADERS; should specify -T relocs.ld in the testcase to be consistent will all other= emit-relocs* testcases ok for trunk? thanks ld/testsuite/ * ld-aarch64/emit-relocs-local-addend.d: Use target linker script. --------------050104060603010701080302 Content-Type: text/x-patch; name=fix-test.patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="fix-test.patch" Content-length: 1704 diff --git a/ld/testsuite/ld-aarch64/emit-relocs-local-addend.d b/ld/testsu= ite/ld-aarch64/emit-relocs-local-addend.d index 1739e64..9d652c2 100644 --- a/ld/testsuite/ld-aarch64/emit-relocs-local-addend.d +++ b/ld/testsuite/ld-aarch64/emit-relocs-local-addend.d @@ -1,16 +1,16 @@ #source: emit-relocs-local-addend-foo.s #source: emit-relocs-local-addend-bar.s -#ld: -e0 --emit-relocs +#ld: -T relocs.ld -e0 --emit-relocs #readelf: -r Relocation section '\.rela\.text' at offset 0x102f8 contains 4 entries: Offset Info Type Sym\. Value Sym\. Name = \+ Addend -000000400000 000200000113 R_AARCH64_ADR_PRE 0000000000400018 \.rodata \+ 0 -000000400004 000200000115 R_AARCH64_ADD_ABS 0000000000400018 \.rodata \+ 0 -00000040000c 000200000113 R_AARCH64_ADR_PRE 0000000000400018 \.rodata \+ = 10 -000000400010 000200000115 R_AARCH64_ADD_ABS 0000000000400018 \.rodata \+ = 10 +000000010000 000200000113 R_AARCH64_ADR_PRE 0000000000010018 \.rodata \+ 0 +000000010004 000200000115 R_AARCH64_ADD_ABS 0000000000010018 \.rodata \+ 0 +00000001000c 000200000113 R_AARCH64_ADR_PRE 0000000000010018 \.rodata \+ = 10 +000000010010 000200000115 R_AARCH64_ADD_ABS 0000000000010018 \.rodata \+ = 10 Relocation section '\.rela\.rodata' at offset 0x10358 contains 2 entries: Offset Info Type Sym\. Value Sym. Name \= + Addend -000000400020 000200000101 R_AARCH64_ABS64 0000000000400018 \.rodata \+ 0 -000000400030 000200000101 R_AARCH64_ABS64 0000000000400018 \.rodata \+ = 10 +000000010020 000200000101 R_AARCH64_ABS64 0000000000010018 \.rodata \+ 0 +000000010030 000200000101 R_AARCH64_ABS64 0000000000010018 \.rodata \+ = 10= --------------050104060603010701080302--