This is the mail archive of the binutils@sources.redhat.com 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]

objdump -f test fails on x86-64



On x86-64 I get a failure for objdump -f:

Executing on host: /builds/sourceware-src/cross/binutils/objdump  -f tmpdir/bint
est.o   (timeout = 300)

tmpdir/bintest.o:     file format elf64-x86-64
architecture: x86-64, flags 0x00000011:
HAS_RELOC, HAS_SYMS
start address 0x0000000000000000


tmpdir/bintest.o:     file format elf64-x86-64
architecture: x86-64, flags 0x00000011:
HAS_RELOC, HAS_SYMS
start address 0x0000000000000000

The regex tested is:
:[     ]*file format.*architecture:[   ]*(a29k|alliant|alpha|arc|arm|convex|d10v|d30v|fr30|h8|hppa|i386|i860|i960|m32r|m68hc11|m68hc12|m68k|m88k|MCore|mips|mn10200|mn10300|ns32k|pj|powerpc|pyramid|romp|rs6000|s390|sh|sparc|tahoe|tic54x|tms320c54x|v850|vax|we32k|z8k|z8001|z8002|x86_64).*HAS_RELOC.*HAS_SYMS

One fix for this is to add x86-64 to the list of expected cpus (see
appended patch).  A better solution would be to fix target_cpu to use
x86-64 - but how can I change this?

Please advise whether the appended patch is ok or how this can be
fixed,

Thanks,
Andreas

2001-11-19  Andreas Jaeger  <aj@suse.de>

	* testsuite/binutils-all/objdump.exp: Add x86-64.

============================================================
Index: binutils/testsuite/binutils-all/objdump.exp
--- binutils/testsuite/binutils-all/objdump.exp	2001/05/24 22:01:25	1.9
+++ binutils/testsuite/binutils-all/objdump.exp	2001/11/19 09:26:55
@@ -40,7 +40,7 @@ lappend cpus_expected d10v d30v fr30 h8 
 lappend cpus_expected m32r m68hc11 m68hc12 m68k m88k MCore
 lappend cpus_expected mips mn10200 mn10300 ns32k pj powerpc pyramid
 lappend cpus_expected romp rs6000 s390 sh sparc tahoe tic54x tms320c54x v850
-lappend cpus_expected vax we32k z8k z8001 z8002
+lappend cpus_expected vax we32k x86-64 z8k z8001 z8002
 
 # Make sure the target CPU shows up in the list.
 lappend cpus_expected ${target_cpu}

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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