]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-x86-64/pe-x86-64.exp
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-x86-64 / pe-x86-64.exp
1 # Expect script for ELF tests with pe-x86-64 inputs.
2 # Copyright (C) 2020-2024 Free Software Foundation, Inc.
3 #
4 # This file is part of the GNU Binutils.
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19 # MA 02110-1301, USA.
20 #
21
22 # Only for Linux/x86-64.
23 if {![istarget "x86_64-*-linux*"] } {
24 return
25 }
26
27 run_ld_link_tests [list \
28 [list \
29 "Build pe-x86-64-1" \
30 "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \
31 "" \
32 "" \
33 {pe-x86-64-1a.obj.bz2 pe-x86-64-1b.obj.bz2 pe-x86-64-1c.obj.bz2} \
34 {{objdump {-dw --sym} pe-x86-64-1.od}} \
35 "pe-x86-64-1" \
36 ] \
37 [list \
38 "Build pe-x86-64-2" \
39 "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \
40 "" \
41 "" \
42 {pe-x86-64-2a.obj.bz2 pe-x86-64-2b.obj.bz2 pe-x86-64-2c.obj.bz2} \
43 {{objdump {-dw --sym} pe-x86-64-2.od}} \
44 "pe-x86-64-2" \
45 ] \
46 [list \
47 "Build pe-x86-64-3" \
48 "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \
49 "" \
50 "" \
51 {pe-x86-64-3a.obj.bz2 pe-x86-64-3b.obj.bz2 pe-x86-64-3c.obj.bz2 \
52 pe-x86-64-3d.obj.bz2 } \
53 {{objdump {-dw --sym} pe-x86-64-3.od}} \
54 "pe-x86-64-3" \
55 ] \
56 [list \
57 "Build pe-x86-64-4" \
58 "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \
59 "" \
60 "" \
61 {pe-x86-64-4a.obj.bz2 pe-x86-64-4b.obj.bz2 pe-x86-64-4c.obj.bz2 \
62 pe-x86-64-4d.obj.bz2 } \
63 {{objdump {-dw --sym} pe-x86-64-4.od}} \
64 "pe-x86-64-4" \
65 ] \
66 [list \
67 "Build pe-x86-64-5" \
68 "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \
69 "" \
70 "" \
71 {pe-x86-64-5.obj.bz2 } \
72 {{objdump {-dw --sym} pe-x86-64-5.od} \
73 {readelf {-s -x .data} pe-x86-64-5.rd}} \
74 "pe-x86-64-5" \
75 ] \
76 [list \
77 "Build pe-x86-64-6" \
78 "-m elf_x86_64 --entry=main -z max-page-size=0x1000 -z separate-code" \
79 "" \
80 "" \
81 {pe-x86-64-6.obj.bz2 } \
82 {{objdump {-dw --sym} pe-x86-64-6.od}} \
83 "pe-x86-64-6" \
84 ] \
85 ]