Fix identity in ChangeLog.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-m68k / m68k.exp
CommitLineData
0b2e31dc
NS
1# Expect script for run_dump_test based ld-m68k tests.
2# Copyright 2006 Free Software Foundation, Inc.
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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17#
18# Test m68k object merging
19
20if { ![is_elf_format] || ![istarget m68k-*-*] } {
21 return
22}
23
24# List contains test-items with 3 items followed by 2 lists:
25# 0:name 1:ld options 2:assembler options
26# 3:filenames of assembler files 4: action and options. 5: name of output file
27
28# Actions:
29# objdump: Apply objdump options on result. Compare with regex (last arg).
30# nm: Apply nm options on result. Compare with regex (last arg).
31# readelf: Apply readelf options on result. Compare with regex (last arg).
32
33set m68k_mergeok_tests {
34 {"merge isa-a isa-a:nodiv" "-T merge.ld" ""
35 {isaa.s isaa-nodiv.s} {{objdump -p isaa.d}} "isaa"}
36 {"merge isa-a isa-b" "-T merge.ld" ""
37 {isaa.s isab.s} {{objdump -p isab.d}} "isab"}
38 {"merge isa-a isa-aplus" "-T merge.ld" ""
39 {isaa.s isaaplus.s} {{objdump -p isaaplus.d}} "isaplus"}
40 {"merge isa-b isa-b:nousp" "-T merge.ld" ""
41 {isab.s isab-nousp.s} {{objdump -p isab.d}} "isab"}
42 {"merge isa-a isa-a:mac" "-T merge.ld" ""
43 {isaa.s isaa-mac.s} {{objdump -p isaa-mac.d}} "isaa-mac"}
44 {"merge isa-b isa-b:float" "-T merge.ld" ""
45 {isab.s isab-float.s} {{objdump -p isab-float.d}} "isab-float"}}
46
47run_ld_link_tests $m68k_mergeok_tests
a9d34880
RS
48
49run_dump_test "merge-error-1a"
50run_dump_test "merge-error-1b"
51run_dump_test "merge-error-1c"
52run_dump_test "merge-error-1d"
53run_dump_test "merge-error-1e"
54run_dump_test "merge-ok-1a"
55run_dump_test "merge-ok-1b"
fb405f8a 56run_dump_test "merge-ok-1c"
cc3e26be
RS
57
58foreach { id sources } { a { plt1.s } b { plt1-empty.s plt1.s } } {
59 foreach arch { 68020 cpu32 isab } {
60 run_ld_link_tests [list \
61 [list "PLT 1$id ($arch)" "-shared -T plt1.ld" "-m$arch" \
62 $sources [list [list objdump -dr plt1-$arch.d]] \
63 plt1-${id}-${arch}.so]]
64 }
65}
This page took 0.041066 seconds and 4 git commands to generate.