From fdca10273835a854f2170a5332cec4de81bd9c4a Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 6 Aug 2007 14:41:51 +0000 Subject: [PATCH] * ld-pe/pe.exp: Special diff file for x86_64-mingw target. * ld-pe/secrel_64.d: New. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-pe/pe.exp | 9 ++++++++- ld/testsuite/ld-pe/secrel_64.d | 28 ++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 ld/testsuite/ld-pe/secrel_64.d diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 5815901..4aab42a 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-08-06 Kai Tietz + + * ld-pe/pe.exp: Special diff file for x86_64-mingw target. + * ld-pe/secrel_64.d: New. + 2007-08-03 Daniel Jacobowitz * ld-srec/srec.exp: XFAIL for powerpc*-*-*. diff --git a/ld/testsuite/ld-pe/pe.exp b/ld/testsuite/ld-pe/pe.exp index b330e10..12b330d 100644 --- a/ld/testsuite/ld-pe/pe.exp +++ b/ld/testsuite/ld-pe/pe.exp @@ -29,9 +29,16 @@ if { ![istarget i*86-*-cygwin*] return } -set pe_tests { +if {[istarget x86_64-*-mingw*] } { + set pe_tests { + {".secrel32" "" "" {secrel1.s secrel2.s} + {{objdump -s secrel_64.d}} "secrel.x"} + } +} else { + set pe_tests { {".secrel32" "" "" {secrel1.s secrel2.s} {{objdump -s secrel.d}} "secrel.x"} + } } run_ld_link_tests $pe_tests diff --git a/ld/testsuite/ld-pe/secrel_64.d b/ld/testsuite/ld-pe/secrel_64.d new file mode 100644 index 0000000..aba1bf1 --- /dev/null +++ b/ld/testsuite/ld-pe/secrel_64.d @@ -0,0 +1,28 @@ + +tmpdir/secrel\.x: +file format pei-.* + +Contents of section \.text: + .*1000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<< + .*1010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>>< + .*1020 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<< + .*1030 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>>< + .*1040 ffffffff ffffffff 00000000 00000000 ................ + .*1050 ffffffff ffffffff 00000000 00000000 ................ +Contents of section \.data: + .*2000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<< + .*2010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>>< + .*2020 3e3e3e3e 04000000 110d0000 00111600 >>>>............ + .*2030 0000111f 00000011 3c3c3c3c 3c3c3c3c ........<<<<<<<< + .*2040 3e3e3e3e 04000000 110d0000 00111600 >>>>............ + .*2050 0000111f 00000011 3c3c3c3c 3c3c3c3c ........<<<<<<<< + .*2060 3e3e3e3e 04000000 110d0000 00111600 >>>>............ + .*2070 0000111f 00000011 3c3c3c3c 3c3c3c3c ........<<<<<<<< + .*2080 3e3e3e3e 24000000 112d0000 00113600 >>>>\$....-....6. + .*2090 0000113f 00000011 3c3c3c3c 3c3c3c3c ...\?....<<<<<<<< +Contents of section \.rdata: + .*3000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<< + .*3010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>>< + .*3020 3e3e3e3e 00000000 00000000 00000000 >>>>............ +Contents of section \.idata: + .*4000 00000000 00000000 00000000 00000000 ................ + .*4010 00000000 .... -- 2.7.4