From 009600a9b73eefb51e3833f38e97a5ac61781f90 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 23 Sep 2010 11:55:47 +0000 Subject: [PATCH] * ld-d10v/reloc-007.d: Don't error. * ld-d10v/reloc-008.d: Likewise. * ld-d10v/reloc-015.d: Likewise. * ld-d10v/reloc-016.d: Likewise. * ld-d10v/reloc-012.ld: Use a sane offset. --- ld/testsuite/ChangeLog | 8 ++++++++ ld/testsuite/ld-d10v/reloc-007.d | 3 ++- ld/testsuite/ld-d10v/reloc-008.d | 3 ++- ld/testsuite/ld-d10v/reloc-012.ld | 6 +++--- ld/testsuite/ld-d10v/reloc-015.d | 3 ++- ld/testsuite/ld-d10v/reloc-016.d | 3 ++- 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 745743af43..36cc675165 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2010-09-23 Alan Modra + + * ld-d10v/reloc-007.d: Don't error. + * ld-d10v/reloc-008.d: Likewise. + * ld-d10v/reloc-015.d: Likewise. + * ld-d10v/reloc-016.d: Likewise. + * ld-d10v/reloc-012.ld: Use a sane offset. + 2010-09-20 Matthew Gretton-Dann * ld-arm/attr-merge-6.attr: Update test for change in canonical CPU diff --git a/ld/testsuite/ld-d10v/reloc-007.d b/ld/testsuite/ld-d10v/reloc-007.d index 2edb862a13..293a6df324 100644 --- a/ld/testsuite/ld-d10v/reloc-007.d +++ b/ld/testsuite/ld-d10v/reloc-007.d @@ -1,7 +1,8 @@ #source: reloc-005.s #ld: -T $srcdir/$subdir/reloc-007.ld #objdump: -D +# now that we treat addresses as wrapping, it isn't possible to fail #error: relocation truncated to fit: R_D10V_18_PCREL # Test 18 bit pc rel reloc bad boundary - +#pass diff --git a/ld/testsuite/ld-d10v/reloc-008.d b/ld/testsuite/ld-d10v/reloc-008.d index cb3cf4b916..273a23c35f 100644 --- a/ld/testsuite/ld-d10v/reloc-008.d +++ b/ld/testsuite/ld-d10v/reloc-008.d @@ -1,7 +1,8 @@ #source: reloc-005.s #ld: -T $srcdir/$subdir/reloc-008.ld #objdump: -D +# now that we treat addresses as wrapping, it isn't possible to fail #error: relocation truncated to fit: R_D10V_18_PCREL # Test 18 bit pc rel reloc normal bad - +#pass diff --git a/ld/testsuite/ld-d10v/reloc-012.ld b/ld/testsuite/ld-d10v/reloc-012.ld index 10b7e7cf0a..87546ecd74 100644 --- a/ld/testsuite/ld-d10v/reloc-012.ld +++ b/ld/testsuite/ld-d10v/reloc-012.ld @@ -1,10 +1,10 @@ SECTIONS { .text 0x01014000 : - { + { foo = .; - . = (. + 0x80004); - *(.text) + . = (. + 0x20004); + *(.text) } } diff --git a/ld/testsuite/ld-d10v/reloc-015.d b/ld/testsuite/ld-d10v/reloc-015.d index 5888aa730b..043f727e15 100644 --- a/ld/testsuite/ld-d10v/reloc-015.d +++ b/ld/testsuite/ld-d10v/reloc-015.d @@ -1,7 +1,8 @@ #source: reloc-005.s #ld: -T $srcdir/$subdir/reloc-015.ld #objdump: -D +# now that we treat addresses as wrapping, it isn't possible to fail #error: relocation truncated to fit: R_D10V_18_PCREL # Test 18 bit pc rel negative reloc bad boundary - +#pass diff --git a/ld/testsuite/ld-d10v/reloc-016.d b/ld/testsuite/ld-d10v/reloc-016.d index 402bcff8ee..e7d5e8e6f9 100644 --- a/ld/testsuite/ld-d10v/reloc-016.d +++ b/ld/testsuite/ld-d10v/reloc-016.d @@ -1,7 +1,8 @@ #source: reloc-005.s #ld: -T $srcdir/$subdir/reloc-016.ld #objdump: -D +# now that we treat addresses as wrapping, it isn't possible to fail #error: relocation truncated to fit: R_D10V_18_PCREL # Test 18 bit pc rel negative reloc normal bad - +#pass -- 2.34.1