1 # Expect script
for ELF tests with pe
-x86
-64 inputs.
2 # Copyright
(C
) 2020-2025 Free Software Foundation
, Inc.
4 # This file is part of the GNU Binutils.
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.
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.
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
,
22 # Only
for Linux
/x86
-64.
23 if {![istarget
"x86_64-*-linux*"] } {
27 run_ld_link_tests
[list \
30 "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code --no-rosegment" \
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
}} \
39 "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code --no-rosegment" \
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
}} \
48 "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code --no-rosegment" \
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
}} \
58 "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code --no-rosegment" \
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
}} \
68 "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code --no-rosegment" \
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
}} \
78 "-m elf_x86_64 --entry=main -z max-page-size=0x1000 -z separate-code --no-rosegment" \
81 {pe
-x86
-64-6.
obj.bz2
} \
82 {{objdump
{-dw
--sym
} pe
-x86
-64-6.od
}} \