From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18712 invoked by alias); 4 Jul 2013 12:13:41 -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 18673 invoked by uid 89); 4 Jul 2013 12:13:40 -0000 X-Spam-SWARE-Status: No, score=-4.6 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; Thu, 04 Jul 2013 12:13:36 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1UuiPm-00077Z-CL from Maciej_Rozycki@mentor.com ; Thu, 04 Jul 2013 05:13:34 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 4 Jul 2013 05:13:34 -0700 Received: from [172.30.64.122] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.2.247.3; Thu, 4 Jul 2013 13:13:32 +0100 Date: Thu, 04 Jul 2013 12:13:00 -0000 From: "Maciej W. Rozycki" To: Luis Machado 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. In-Reply-To: <51D56120.1040001@codesourcery.com> Message-ID: 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> <51D48F54.4070509@codesourcery.com> <51D56120.1040001@codesourcery.com> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2013-07/txt/msg00169.txt.bz2 On Thu, 4 Jul 2013, Luis Machado wrote: > > Try -Ttext-segment=... instead, sorry about the confusion. > > That also doesn't seem to prevent thing from being linked at addresses > > 32-bits. Code is still at 0x120000000 apparently. > > (gdb) break checkpoint1^M > Breakpoint 1 at 0x120000cdc: file gdb/testsuite/gdb.base/dump.c, line 19. Works for me: $ cat text.c int main(void) { return 0; } $ mips-linux-gnu-gcc -mabi=64 -O2 -Wl,-Ttext-segment=0x12340000 -o text text.c $ mips-linux-gnu-readelf -l text Elf file type is EXEC (Executable file) Entry point 0x123407c0 There are 7 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flags Align PHDR 0x0000000000000040 0x0000000012340040 0x0000000012340040 0x0000000000000188 0x0000000000000188 R E 8 INTERP 0x0000000000000ab0 0x0000000012340ab0 0x0000000012340ab0 0x000000000000000f 0x000000000000000f R 1 [Requesting program interpreter: /lib64/ld.so.1] LOAD 0x0000000000000000 0x0000000012340000 0x0000000012340000 0x0000000000000ae4 0x0000000000000ae4 R E 10000 LOAD 0x0000000000000ae8 0x0000000012350ae8 0x0000000012350ae8 0x00000000000000f0 0x0000000000000108 RW 10000 DYNAMIC 0x0000000000000330 0x0000000012340330 0x0000000012340330 0x00000000000001b0 0x00000000000001b0 RWE 8 NOTE 0x0000000000000ac4 0x0000000012340ac4 0x0000000012340ac4 0x0000000000000020 0x0000000000000020 R 4 NULL 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 8 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .MIPS.options .dynamic .hash .dynsym .dynstr .gnu.version .gnu.version_r .init .text .MIPS.stubs .fini .rodata .interp .eh_frame .note.ABI-tag 03 .ctors .dtors .jcr .data .rld_map .got .sdata .bss 04 .dynamic 05 .note.ABI-tag 06 $ Maciej