aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/data.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-scripts/data.exp')
-rw-r--r--ld/testsuite/ld-scripts/data.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/testsuite/ld-scripts/data.exp b/ld/testsuite/ld-scripts/data.exp
index 772be15..8f7fe2d 100644
--- a/ld/testsuite/ld-scripts/data.exp
+++ b/ld/testsuite/ld-scripts/data.exp
@@ -20,7 +20,9 @@
# MA 02110-1301, USA.
set old_LDFLAGS $LDFLAGS
-if { [is_xcoff_format] } then {
+if { [is_pecoff_format] } then {
+ set LDFLAGS "$LDFLAGS --image-base 0"
+} elseif { [is_xcoff_format] } then {
set LDFLAGS "$LDFLAGS -bnogc"
}