From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27785 invoked by alias); 3 Jul 2013 20:54:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 27754 invoked by uid 89); 3 Jul 2013 20:54:11 -0000 X-Spam-SWARE-Status: No, score=-4.8 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 03 Jul 2013 20:53:46 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1UuU3c-0003XX-Ef from Luis_Gustavo@mentor.com ; Wed, 03 Jul 2013 13:53:44 -0700 Received: from NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 3 Jul 2013 13:53:44 -0700 Received: from [172.30.14.191] ([172.30.14.191]) by NA1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 3 Jul 2013 13:53:43 -0700 Message-ID: <51D48F54.4070509@codesourcery.com> Date: Wed, 03 Jul 2013 20:54:00 -0000 From: Luis Machado Reply-To: lgustavo@codesourcery.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: "Maciej W. Rozycki" CC: Pedro Alves , Tom Tromey , Stan Shebs , GDB Patches , Ulrich Weigand Subject: Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64. References: <51D1AD43.3060904@codesourcery.com> <8761wsgb8i.fsf@fleche.redhat.com> <51D3050C.4070309@codesourcery.com> <51D30BB0.3050906@earthlink.net> <87wqp8estz.fsf@fleche.redhat.com> <51D32100.4000901@codesourcery.com> <51D43DBB.5090803@redhat.com> <51D47A05.9020404@codesourcery.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-07/txt/msg00161.txt.bz2 On 07/03/2013 05:35 PM, Maciej W. Rozycki wrote: > On Wed, 3 Jul 2013, Luis Machado wrote: > >>> if [istarget "alpha*-*-*"] then { >>> # SREC etc cannot handle 64-bit addresses. Force the test >>> # program into the low 31 bits of the address space. >>> lappend options "additional_flags=-Wl,-taso" >>> } >>> >>> (For MIPS N64, if you wanted, I guess you could do similarly >>> to Alpha, and rebuild with: >>> >>> lappend options "ldflags=-Wl,-Tdata=0x600000" >>> >>> to force use of low addresses.) > [...] >> >> As for MIPS, attempting to force the use of low addresses, just like alpha, >> seems to do more than what the tools expect at the moment, and i get a SIGSEGV >> in the dynamic loader. > > Hmm, while (unlike Alpha's -taso option) there is no way to force an > entire n64 MIPS process into the 31-bit address space, the dynamic > executable itself should work just fine mapped low. However the default > linker script relies on the start address of the text (0x120000000, unless > overridden) rather than data segment to get things right and moving the > linker's output address pointer backwards in the middle of the binary > being linker may yield strange results. Can you try (or have you tried) > -Ttext=... instead? I don't see a segfault with Ttext, but the text addresses are still based on 0x120000000. Luis