# Expect script for run_dump_test based ld-m68k tests.
-# Copyright 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+# Copyright (C) 2006-2014 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
}
# List contains test-items with 3 items followed by 2 lists:
-# 0:name 1:ld options 2:assembler options
-# 3:filenames of assembler files 4: action and options. 5: name of output file
+# 0:name 1:ld early options 2:ld late options 3:assembler options
+# 4:filenames of assembler files 5: action and options. 6: name of output file
# Actions:
# objdump: Apply objdump options on result. Compare with regex (last arg).
# readelf: Apply readelf options on result. Compare with regex (last arg).
set m68k_mergeok_tests {
- {"merge isa-a isa-a:nodiv" "-T merge.ld" ""
+ {"merge isa-a isa-a:nodiv" "-T merge.ld" "" ""
{isaa.s isaa-nodiv.s} {{objdump -p isaa.d}} "isaa-nodiv"}
- {"merge isa-a isa-b" "-T merge.ld" ""
+ {"merge isa-a isa-b" "-T merge.ld" "" ""
{isaa.s isab.s} {{objdump -p isab.d}} "isab"}
- {"merge isa-a isa-aplus" "-T merge.ld" ""
+ {"merge isa-a isa-aplus" "-T merge.ld" "" ""
{isaa.s isaaplus.s} {{objdump -p isaaplus.d}} "isaplus"}
- {"merge isa-b isa-b:nousp" "-T merge.ld" ""
+ {"merge isa-b isa-b:nousp" "-T merge.ld" "" ""
{isab.s isab-nousp.s} {{objdump -p isab.d}} "isab"}
- {"merge isa-a isa-a:mac" "-T merge.ld" ""
+ {"merge isa-a isa-a:mac" "-T merge.ld" "" ""
{isaa.s isaa-mac.s} {{objdump -p isaa-mac.d}} "isaa-mac"}
- {"merge isa-b isa-b:float" "-T merge.ld" ""
+ {"merge isa-b isa-b:float" "-T merge.ld" "" ""
{isab.s isab-float.s} {{objdump -p isab-float.d}} "isab-float"}}
run_ld_link_tests $m68k_mergeok_tests
foreach { id sources } { a { plt1.s } b { plt1-empty.s plt1.s } } {
foreach arch { 68020 cpu32 isab isac } {
run_ld_link_tests [list \
- [list "PLT 1$id ($arch)" "-shared -T plt1.ld" "-m$arch" \
+ [list "PLT 1$id ($arch)" "-shared -T plt1.ld" "" "-m$arch" \
$sources [list [list objdump -dr plt1-$arch.d]] \
plt1-${id}-${arch}.so]]
}
set m68k_tls_tests {
{"TLS definition"
- "-shared" "" {tls-def-1.s}
+ "-shared" "" "" {tls-def-1.s}
{{nm -ngD tls-def-1.d}}
"tls-def-1.so"}
{"TLS direct symbol use"
- "-shared tmpdir/tls-def-1.so" "" {tls-gd-1.s}
+ "-shared tmpdir/tls-def-1.so" "" "" {tls-gd-1.s}
{{nm -ngD tls-gd-1.d2} {readelf -d tls-gd-1.d3}}
"tls-gd-1.so"}
{"TLS indirect symbol use"
- "tmpdir/tls-gd-1.so -rpath-link ./" "" {tls-main-1.s}
+ "--copy-dt-needed-entries tmpdir/tls-gd-1.so -rpath-link ./" "" "" {tls-main-1.s}
{{readelf -d tls-main-1.d}}
"tls-main-1"}}