This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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][gold] Fix test in 64 bits


> Chatting on IRC Ian noted that using -m32 is not safe and it is better
> to change the test. This patch does that.
>
> 2010-09-08 ?Rafael Espindola ?<espindola@google.com>
>
> ? ? ? ?* Makefile.am (memory_test.stdout): Run readelf with -W
> ? ? ? ?* Makefile.in: Regenerate.
> ? ? ? ?* testsuite/memory_test.sh: Make the regexps accept both 32 and 64 bit outputs.

This test is failing on both 32-bit and 64-bit x86 builds:

FAIL: memory_test.sh (exit: 1)
==============================

pattern "  LOAD           0x00203c 0x0*00004000 0x0*0000603c
0x0000\?2a 0x0000\?2a R E 0x1000" not found in file
memory_test.stdout.

The program headers that it's trying to match (from memory_test.stdout):

Program Headers:
  Type           Offset   VirtAddr           PhysAddr
FileSiz  MemSiz   Flg Align
  LOAD           0x001000 0x0000000000000000 0x0000000000000000
0x000002 0x000002 R   0x1000
  LOAD           0x00112c 0x0000000000001000 0x000000000000012c
0x000002 0x000002 R   0x1000
  LOAD           0x002000 0x0000000000005000 0x0000000000005000
0x000002 0x000002 R   0x1000
  LOAD           0x00203c 0x0000000000004000 0x000000000000603c
0x000002 0x000002 R   0x1000

I've rebuilt binutils in the same build tree, so as far as I can tell,
the test is using an up-to-date readelf.

-cary


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