OSDN Git Service

Fix the merging of .PPC.EMB.apuinfo sections. Add a test to make sure that
[pf3gnuchains/pf3gnuchains4x.git] / ld / testsuite / ld-powerpc / powerpc.exp
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
23 # powerpc 32 bit ELF only at the moment.
24
25 if { [istarget "*-*-macos*"] || [istarget "*-*-netware*"]
26      || [istarget "*-*-pe"] || [istarget "*-*-winnt*"]
27      || [istarget "*-*-cygwin*"] || [istarget "*-*-aix*"]
28      || [istarget "*-*-beos*"] || [istarget "powerpc64*-*-*"] } {
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 {
42     {"Reloc section order" "-shared -z nocombreloc" "" {reloc.s}
43      {{objdump -hw reloc.d}} "reloc.so"}
44     {"APUinfo section processing" "" "-me500" {apuinfo1.s apuinfo2.s}
45    {{readelf -x5 apuinfo.rd}} "apuinfo"}
46 }
47
48 run_ld_link_tests $ppcelftests