1 # Expect script for ld-powerpc tests
2 # Copyright (C) 2002 Free Software Foundation
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.
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.
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.
19 if { ![istarget "powerpc*-*-*"] } {
23 # powerpc 32 bit ELF only at the moment.
25 if { [istarget "*-*-macos*"] || [istarget "*-*-netware*"]
26 || [istarget "*-*-pe"] || [istarget "*-*-winnt*"]
27 || [istarget "*-*-cygwin*"] || [istarget "*-*-aix*"]
28 || [istarget "*-*-beos*"] || [istarget "powerpc64*-*-*"] } {
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
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).
42 {"Reloc section order" "-shared -z nocombreloc" "" {reloc.s}
43 {{objdump -hw reloc.d}} "reloc.so"}
46 run_ld_link_tests $ppcelftests