summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pe-x86-64.exp
blob: 473405660020206e6d77c6e3b2ca4342ae226e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Expect script for ELF tests with pe-x86-64 inputs.
#   Copyright (C) 2020-2021 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
# MA 02110-1301, USA.
#

# Only for Linux/x86-64.
if {![istarget "x86_64-*-linux*"] } {
    return
}

run_ld_link_tests [list \
    [list \
	"Build pe-x86-64-1" \
	"-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \
	"" \
	"" \
	{pe-x86-64-1a.obj.bz2 pe-x86-64-1b.obj.bz2 pe-x86-64-1c.obj.bz2} \
	{{objdump {-dw --sym} pe-x86-64-1.od}} \
	"pe-x86-64-1" \
    ] \
    [list \
	"Build pe-x86-64-2" \
	"-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \
	"" \
	"" \
	{pe-x86-64-2a.obj.bz2 pe-x86-64-2b.obj.bz2 pe-x86-64-2c.obj.bz2} \
	{{objdump {-dw --sym} pe-x86-64-2.od}} \
	"pe-x86-64-2" \
    ] \
    [list \
	"Build pe-x86-64-3" \
	"-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \
	"" \
	"" \
	{pe-x86-64-3a.obj.bz2 pe-x86-64-3b.obj.bz2 pe-x86-64-3c.obj.bz2 \
	 pe-x86-64-3d.obj.bz2 } \
	{{objdump {-dw --sym} pe-x86-64-3.od}} \
	"pe-x86-64-3" \
    ] \
    [list \
	"Build pe-x86-64-4" \
	"-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \
	"" \
	"" \
	{pe-x86-64-4a.obj.bz2 pe-x86-64-4b.obj.bz2 pe-x86-64-4c.obj.bz2 \
	 pe-x86-64-4d.obj.bz2 } \
	{{objdump {-dw --sym} pe-x86-64-4.od}} \
	"pe-x86-64-4" \
    ] \
    [list \
	"Build pe-x86-64-5" \
	"-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \
	"" \
	"" \
	{pe-x86-64-5.obj.bz2 } \
	{{objdump {-dw --sym} pe-x86-64-5.od} \
	 {readelf {-s -x .data} pe-x86-64-5.rd}} \
	"pe-x86-64-5" \
    ] \
    [list \
	"Build pe-x86-64-6" \
	"-m elf_x86_64 --entry=main -z max-page-size=0x1000 -z separate-code" \
	"" \
	"" \
	{pe-x86-64-6.obj.bz2 } \
	{{objdump {-dw --sym} pe-x86-64-6.od}} \
	"pe-x86-64-6" \
    ] \
]