1# Expect script for FRV FDPIC linker tests 2# Copyright (C) 2003-2016 Free Software Foundation, Inc. 3# 4# This file is part of the GNU Binutils. 5# 6# This program is free software; you can redistribute it and/or modify 7# it under the terms of the GNU General Public License as published by 8# the Free Software Foundation; either version 3 of the License, or 9# (at your option) any later version. 10# 11# This program is distributed in the hope that it will be useful, 12# but WITHOUT ANY WARRANTY; without even the implied warranty of 13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14# GNU General Public License for more details. 15# 16# You should have received a copy of the GNU General Public License 17# along with this program; if not, write to the Free Software 18# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 19# MA 02110-1301, USA. 20# 21 22if {![istarget frv*-*-*] || ![is_elf_format]} { 23 return 24} 25 26global ASFLAGS 27set saved_ASFLAGS "$ASFLAGS" 28set ASFLAGS "$ASFLAGS -mfdpic" 29 30global LDFLAGS 31set saved_LDFLAGS "$LDFLAGS" 32set LDFLAGS "$LDFLAGS -melf32frvfd" 33 34run_dump_test "fdpic-static-1" 35run_dump_test "fdpic-pie-1" 36run_dump_test "fdpic-shared-1" 37 38run_dump_test "fdpic-static-2" 39run_dump_test "fdpic-pie-2" 40run_dump_test "fdpic-shared-2-fail" 41run_dump_test "fdpic-shared-2" 42run_dump_test "fdpic-shared-local-2" 43 44run_dump_test "fdpic-shared-3" 45 46run_dump_test "fdpic-shared-4" 47 48run_dump_test "fdpic-static-5" 49run_dump_test "fdpic-pie-5" 50run_dump_test "fdpic-shared-5" 51 52run_dump_test "fdpic-static-6" 53run_dump_test "fdpic-pie-6-fail" 54run_dump_test "fdpic-pie-6" 55run_dump_test "fdpic-shared-6-fail" 56run_dump_test "fdpic-shared-6" 57 58run_dump_test "fdpic-static-7" 59run_dump_test "fdpic-pie-7" 60run_dump_test "fdpic-shared-7" 61 62run_dump_test "fdpic-static-8" 63run_dump_test "fdpic-pie-8" 64run_dump_test "fdpic-shared-8-fail" 65run_dump_test "fdpic-shared-8" 66run_dump_test "fdpic-shared-local-8" 67 68set LDFLAGS "$saved_LDFLAGS" 69set ASFLAGS "$saved_ASFLAGS" 70