This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, testsuite] Don't run SREC, IHEX and TEKHEX tests for MIPS N64.


On 07/03/2013 06:08 PM, Maciej W. Rozycki wrote:
On Wed, 3 Jul 2013, Luis Machado wrote:

   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.

  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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]