* MAINTAINERS: Update my email address.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-pe / pe.exp
CommitLineData
6482c264 1# Expect script for export table in executables tests\r
f96b4a7b 2# Copyright 2004, 2006, 2007\r
6482c264
NC
3# Free Software Foundation, Inc.\r
4#\r
f96b4a7b
NC
5# This file is part of the GNU Binutils.\r
6#\r
7# This program is free software; you can redistribute it and/or modify\r
6482c264 8# it under the terms of the GNU General Public License as published by\r
f96b4a7b 9# the Free Software Foundation; either version 3 of the License, or\r
6482c264 10# (at your option) any later version.\r
f96b4a7b 11#\r
6482c264
NC
12# This program is distributed in the hope that it will be useful,\r
13# but WITHOUT ANY WARRANTY; without even the implied warranty of\r
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
15# GNU General Public License for more details.\r
f96b4a7b 16#\r
6482c264
NC
17# You should have received a copy of the GNU General Public License\r
18# along with this program; if not, write to the Free Software\r
f96b4a7b
NC
19# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,\r
20# MA 02110-1301, USA.\r
6482c264
NC
21#\r
22 \r
f0927246 23# This test can only be run on PE/COFF platforms that support .secrel32.\r
0be14fe0
NC
24if { ![istarget i*86-*-cygwin*]\r
25 && ![istarget i*86-*-pe]\r
26 && ![istarget i*86-*-mingw*]\r
42037fe5 27 && ![istarget x86_64-*-mingw*]\r
0be14fe0 28 && ![istarget arm-wince-pe] } {\r
6482c264
NC
29 return\r
30}\r
31\r
fdca1027
NC
32if {[istarget x86_64-*-mingw*] } {\r
33 set pe_tests {\r
34 {".secrel32" "" "" {secrel1.s secrel2.s}\r
35 {{objdump -s secrel_64.d}} "secrel.x"}\r
36 }\r
5b9c6027
DK
37} elseif {[istarget i*86-*-cygwin*] } {\r
38 set pe_tests {\r
39 {".secrel32" "--disable-auto-import" "" {secrel1.s secrel2.s}\r
40 {{objdump -s secrel.d}} "secrel.x"}\r
41 }\r
fdca1027
NC
42} else {\r
43 set pe_tests {\r
6482c264
NC
44 {".secrel32" "" "" {secrel1.s secrel2.s}\r
45 {{objdump -s secrel.d}} "secrel.x"}\r
fdca1027 46 }\r
6482c264
NC
47}\r
48\r
49run_ld_link_tests $pe_tests\r
50572669
L
50\r
51run_dump_test "image_size"\r
8b747e1a 52run_dump_test "export_dynamic_warning"\r
This page took 0.207354 seconds and 4 git commands to generate.