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: Wed, 3 Jul 2013 21:35:16 +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>
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?
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.