X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-xtensa%2Fxtensa.exp;fp=ld%2Ftestsuite%2Fld-xtensa%2Fxtensa.exp;h=e6dc827ee492e93c7e61fd11593d8367118afb50;hp=0000000000000000000000000000000000000000;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/ld/testsuite/ld-xtensa/xtensa.exp b/ld/testsuite/ld-xtensa/xtensa.exp new file mode 100644 index 0000000..e6dc827 --- /dev/null +++ b/ld/testsuite/ld-xtensa/xtensa.exp @@ -0,0 +1,54 @@ +# Expect script for ld-xtensa tests +# Copyright (C) 2008 Free Software Foundation +# +# This file is part of the GNU Binutils. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +# MA 02110-1301, USA. +# + +if { !([istarget "xtensa*-*-linux*"]) } { + return +} + +# 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 + +# Actions: +# objdump: Apply objdump options on result. Compare with regex (last arg). +# nm: Apply nm options on result. Compare with regex (last arg). +# readelf: Apply readelf options on result. Compare with regex (last arg). + +set xtensatests { + {"TLS -shared transitions" + "-shared -melf32xtensa" "" {tlspic1.s tlspic2.s} + {{readelf -WSsrl tlspic.rd} + {objdump "-drj.text --start-address=0x350" tlspic.dd} + {objdump "-sj.text --stop-address=0x350" tlspic.sd} + {objdump -sj.tdata tlspic.td}} + "libtlspic.so"} + {"Helper shared library" "-shared -melf32xtensa" + "" {tlslib.s} {} "libtlslib.so"} + {"TLS exec transitions" + "-melf32xtensa tmpdir/libtlslib.so" "" {tlsbin.s} + {{readelf -WSsrl tlsbin.rd} + {objdump "-drj.text --start-address=0x400238" tlsbin.dd} + {objdump "-sj.text --stop-address=0x400238" tlsbin.sd} + {objdump -sj.tdata tlsbin.td}} + "tlsbin"} +} + +run_ld_link_tests $xtensatests