This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.
- From: "Maciej W. Rozycki" <macro at codesourcery dot com>
- To: Luis Machado <lgustavo at codesourcery dot com>
- Cc: Pedro Alves <palves at redhat dot com>, Tom Tromey <tromey at redhat dot com>, Stan Shebs <stanshebs at earthlink dot net>, GDB Patches <gdb-patches at sourceware dot org>, Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Thu, 4 Jul 2013 13:13:26 +0100
- Subject: Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.
- References: <51D1AD43 dot 3060904 at codesourcery dot com> <8761wsgb8i dot fsf at fleche dot redhat dot com> <51D3050C dot 4070309 at codesourcery dot com> <51D30BB0 dot 3050906 at earthlink dot net> <87wqp8estz dot fsf at fleche dot redhat dot com> <51D32100 dot 4000901 at codesourcery dot com> <51D43DBB dot 5090803 at redhat dot com> <51D47A05 dot 9020404 at codesourcery dot com> <alpine dot DEB dot 1 dot 10 dot 1307032122270 dot 20590 at tp dot orcam dot me dot uk> <51D48F54 dot 4070509 at codesourcery dot com> <alpine dot DEB dot 1 dot 10 dot 1307032205410 dot 20590 at tp dot orcam dot me dot uk> <51D56120 dot 1040001 at codesourcery dot com>
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
- References:
- [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.
- Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.
- Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.
- Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.
- Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.
- Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.
- Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.
- Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.
- Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.
- Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.
- Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.
- Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.