]>
Commit | Line | Data |
---|---|---|
abd4c01a | 1 | # Test expressions in a linker script. |
cc3e2771 | 2 | # By Nathan Sidwell, CodeSourcery LLC |
250d07de | 3 | # Copyright (C) 2006-2021 Free Software Foundation, Inc. |
cc3e2771 | 4 | # |
f96b4a7b NC |
5 | # This file is part of the GNU Binutils. |
6 | # | |
7 | # This program is free software; you can redistribute it and/or modify | |
cc3e2771 | 8 | # it under the terms of the GNU General Public License as published by |
f96b4a7b | 9 | # the Free Software Foundation; either version 3 of the License, or |
cc3e2771 | 10 | # (at your option) any later version. |
f96b4a7b | 11 | # |
cc3e2771 NS |
12 | # This program is distributed in the hope that it will be useful, |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | # GNU General Public License for more details. | |
f96b4a7b | 16 | # |
cc3e2771 NS |
17 | # You should have received a copy of the GNU General Public License |
18 | # along with this program; if not, write to the Free Software | |
f96b4a7b NC |
19 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
20 | # MA 02110-1301, USA. | |
cc3e2771 | 21 | |
231b7382 AM |
22 | set old_LDFLAGS $LDFLAGS |
23 | if { [istarget spu*-*-*] } then { | |
24 | set LDFLAGS "$LDFLAGS --no-overlays --local-store 0:0" | |
25 | } elseif { [is_pecoff_format] } then { | |
26 | set LDFLAGS "$LDFLAGS --image-base 0" | |
e553d5b2 AM |
27 | } elseif { [is_xcoff_format] } then { |
28 | set LDFLAGS "$LDFLAGS -bnogc" | |
231b7382 AM |
29 | } |
30 | ||
cc3e2771 | 31 | run_dump_test expr1 |
abd4c01a | 32 | run_dump_test expr2 |
6a2bb080 | 33 | run_dump_test sane1 |
602f5faf | 34 | run_dump_test assign-loc |
8d708c8c | 35 | run_dump_test pr14962 |
fa72205c | 36 | run_dump_test pr14962-2 |
231b7382 | 37 | run_dump_test pr18963 |
76f361eb | 38 | run_dump_test pr22267 |
975f8a9e | 39 | |
231b7382 | 40 | set LDFLAGS $old_LDFLAGS |