From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id 617F2385DC31; Thu, 25 Aug 2022 04:33:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 617F2385DC31 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: bfd-cvs@sourceware.org Subject: [binutils-gdb] PR10372, SH: ld test with sim/sh/run fails always X-Act-Checkin: binutils-gdb X-Git-Author: Alan Modra X-Git-Refname: refs/heads/master X-Git-Oldrev: c6e42384f1a1fe678ae947afd3558b5188c3e10e X-Git-Newrev: 8f401e317af76b1f55fa05d5d6903814c2a5a0bf Message-Id: <20220825043333.617F2385DC31@sourceware.org> Date: Thu, 25 Aug 2022 04:33:33 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2022 04:33:33 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D8f401e317af7= 6b1f55fa05d5d6903814c2a5a0bf commit 8f401e317af76b1f55fa05d5d6903814c2a5a0bf Author: Alan Modra Date: Thu Aug 25 12:24:39 2022 +0930 PR10372, SH: ld test with sim/sh/run fails always =20 PR 10372 * testsuite/ld-sh/start.s: Add _start sym. Use trapa 34. Crea= te an alloc .stack section. Diff: --- ld/testsuite/ld-sh/start.s | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ld/testsuite/ld-sh/start.s b/ld/testsuite/ld-sh/start.s index 2af4c799f33..71071ed33bd 100644 --- a/ld/testsuite/ld-sh/start.s +++ b/ld/testsuite/ld-sh/start.s @@ -1,6 +1,8 @@ .section .text .global start + .global _start start: +_start: =20 mov.l stack_k,r15 =20 @@ -19,9 +21,11 @@ main_k: =20 .global _trap _trap:=09 - trapa #3 + trapa #34 rts nop =20 - .section .stack -_stack: .long 0xdeaddead + .section .stack,"aw",%nobits + .balign 4096 + .space 4096 +_stack: