Commit | Line | Data |
---|---|---|
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 | ||
19 | if { ![istarget "powerpc*-*-*"] } { | |
20 | return | |
21 | } | |
22 | ||
b1e61c4b | 23 | # powerpc 32 bit ELF only at the moment. |
17c2bdee AM |
24 | |
25 | if { [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 | ||
41 | set ppcelftests { | |
4565652e | 42 | {"Reloc section order" "-shared -z nocombreloc" "" {reloc.s} |
17c2bdee AM |
43 | {{objdump -hw reloc.d}} "reloc.so"} |
44 | } | |
45 | ||
46 | run_ld_link_tests $ppcelftests |