From 991cda6c972e92d3a14fdccc6bfa2d23d646c69a Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 30 Mar 2011 17:41:36 +0000 Subject: [PATCH] * ld-elf/elf.exp: Force 32-bit start address for alpha. * ld-elf/group8a.d: Don't disable for alpha. * ld-elf/group8b.d: Likewise. * ld-gc/start.s: Use .dc.a instead of .long. --- ld/testsuite/ChangeLog | 7 +++++++ ld/testsuite/ld-elf/elf.exp | 6 ++++++ ld/testsuite/ld-elf/group8a.d | 2 +- ld/testsuite/ld-elf/group8b.d | 2 +- ld/testsuite/ld-gc/start.s | 2 +- 5 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 6a824e38e10..f90788f3dbe 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2011-03-30 Richard Henderson + + * ld-elf/elf.exp: Force 32-bit start address for alpha. + * ld-elf/group8a.d: Don't disable for alpha. + * ld-elf/group8b.d: Likewise. + * ld-gc/start.s: Use .dc.a instead of .long. + 2011-03-24 Alan Modra * ld-powerpc/tlsmark.s: Delete non-optimizable section. diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 0cf63c19a48..73a417cf298 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -29,6 +29,12 @@ set old_ldflags $LDFLAGS if { [istarget spu*-*-*] } { set LDFLAGS "$LDFLAGS --local-store 0:0" } +if { [istarget alpha*-*-* ] } { + # The compress1 test is written expecting 32-bit addresses; force the + # executable down into the low address space to match. + # ??? How can we adjust just the one testcase? + set LDFLAGS "$LDFLAGS -Ttext-segment 0x1000000" +} if { [is_remote host] } then { remote_download host merge.ld diff --git a/ld/testsuite/ld-elf/group8a.d b/ld/testsuite/ld-elf/group8a.d index ce40a383dbd..bad4123065b 100644 --- a/ld/testsuite/ld-elf/group8a.d +++ b/ld/testsuite/ld-elf/group8a.d @@ -2,7 +2,7 @@ #ld: -r --gc-sections --entry foo #readelf: -g --wide #notarget: arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-* -#notarget: alpha-*-* hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-* +#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-* #xfail: cr16-*-* crx-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others # cr16 and crx use non-standard scripts with memory regions, which don't play diff --git a/ld/testsuite/ld-elf/group8b.d b/ld/testsuite/ld-elf/group8b.d index bb928c58cf7..fb371986ca6 100644 --- a/ld/testsuite/ld-elf/group8b.d +++ b/ld/testsuite/ld-elf/group8b.d @@ -2,7 +2,7 @@ #ld: -r --gc-sections --entry bar #readelf: -g --wide #notarget: arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-* -#notarget: alpha-*-* hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-* +#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-* #xfail: cr16-*-* crx-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others # cr16 and crx use non-standard scripts with memory regions, which don't play diff --git a/ld/testsuite/ld-gc/start.s b/ld/testsuite/ld-gc/start.s index d9f1b2d0706..a417a97b22c 100644 --- a/ld/testsuite/ld-gc/start.s +++ b/ld/testsuite/ld-gc/start.s @@ -1,6 +1,6 @@ .globl _start _start: - .long __start__foo + .dc.a __start__foo .section _foo,"aw",%progbits foo: .long 1