* emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
[deliverable/binutils-gdb.git] / ld / testsuite / ld-powerpc / powerpc.exp
CommitLineData
17c2bdee
AM
1# Expect script for ld-powerpc tests
2# Copyright (C) 2002 Free Software Foundation
3#
4# This file is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17#
18
19if { ![istarget "powerpc*-*-*"] } {
20 return
21}
22
b1e61c4b 23# powerpc 32 bit ELF only at the moment.
17c2bdee
AM
24
25if { [istarget "*-*-macos*"] || [istarget "*-*-netware*"]
26 || [istarget "*-*-pe"] || [istarget "*-*-winnt*"]
27 || [istarget "*-*-cygwin*"] || [istarget "*-*-aix*"]
b1e61c4b 28 || [istarget "*-*-beos*"] || [istarget "powerpc64*-*-*"] } {
17c2bdee
AM
29 return
30}
31
32# List contains test-items with 3 items followed by 2 lists:
33# 0:name 1:ld options 2:assembler options
34# 3:filenames of assembler files 4: action and options. 5: name of output file
35
36# Actions:
37# objdump: Apply objdump options on result. Compare with regex (last arg).
38# nm: Apply nm options on result. Compare with regex (last arg).
39# readelf: Apply readelf options on result. Compare with regex (last arg).
40
41set ppcelftests {
4565652e 42 {"Reloc section order" "-shared -z nocombreloc" "" {reloc.s}
17c2bdee 43 {{objdump -hw reloc.d}} "reloc.so"}
e1a9cb8e
NC
44 {"APUinfo section processing" "" "-me500" {apuinfo1.s apuinfo2.s}
45 {{readelf -x5 apuinfo.rd}} "apuinfo"}
17c2bdee
AM
46}
47
48run_ld_link_tests $ppcelftests
This page took 0.039257 seconds and 4 git commands to generate.