diff options
author | Nick Clifton <nickc@redhat.com> | 2016-06-28 15:55:22 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-06-28 15:55:22 +0100 |
commit | 1b857aeed3f5cfddc4b5b1f5836ccd341aeb9f5d (patch) | |
tree | c28844672924e63b06760f863c0402fd35a7780f /ld | |
parent | 50c901ede915776db734ea77225ebd3558fab2f6 (diff) | |
download | gdb-1b857aeed3f5cfddc4b5b1f5836ccd341aeb9f5d.zip gdb-1b857aeed3f5cfddc4b5b1f5836ccd341aeb9f5d.tar.gz gdb-1b857aeed3f5cfddc4b5b1f5836ccd341aeb9f5d.tar.bz2 |
Fix more linker testsuite failures.
bfin * elf32-bfin.c (bfin_adjust_dynamic_symbol): Fail if a COPY reloc
is needed.
ld * testsuite/ld-elf/comm-data.exp: Expect comm-data2 test to fail
for bfin.
* testsuite/ld-elf/elf.exp: Expect pr14170 and symbolic function
tests to fail for bfin.
* testsuite/ld-elf/endsym.d: Expect to fail with cr16, crx, dlx,
nds32 and visium.
* testsuite/ld-elf/var1.d: Expect to fail with d30v, dlx, ft32 and
microblaze.
* testsuite/ld-pe/pe.exp: Expect foreign symbol test to fail for
mcore-pe.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 27 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/comm-data.exp | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/endsym.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/var1.d | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-pe/pe.exp | 2 |
6 files changed, 44 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 9b6ff77..631fec5 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,30 @@ +2016-06-28 Nick Clifton <nickc@redhat.com> + + * testsuite/ld-elf/comm-data.exp: Expect comm-data2 test to fail + for bfin. + * testsuite/ld-elf/elf.exp: Expect pr14170 and symbolic function + tests to fail for bfin. + * testsuite/ld-elf/endsym.d: Expect to fail with cr16, crx, dlx, + nds32 and visium. + * testsuite/ld-elf/var1.d: Expect to fail with d30v, dlx, ft32 and + microblaze. + * testsuite/ld-pe/pe.exp: Expect foreign symbol test to fail for + mcore-pe. + +2016-06-28 Nick Clifton <nickc@redhat.com> + + * testsuite/ld-elf/merge.d: Add m68hc11 to list of targets that + expect to fail this test. + * testsuite/ld-scripts/overlay-size.d: Skip the entire test for + RX. + * testsuite/ld-scripts/rgn-at10.d: No longer expect this test to + fail for the RX. + * testsuite/ld-scripts/rgn-at11.d: Likewise. + * testsuite/ld-scripts/rgn-at2.d: Likewise. + * testsuite/ld-scripts/rgn-at6.d: Likewise. + * testsuite/ld-scripts/rgn-at7.d: Likewise. + * testsuite/ld-scripts/rgn-at8.d: Likewise. + 2016-06-28 James Clarke <jrtc27@jrtc27.com> * testsuite/ld-elf/symbolic-func.r: Allow non-zero offsets from diff --git a/ld/testsuite/ld-elf/comm-data.exp b/ld/testsuite/ld-elf/comm-data.exp index c7bf41d..1b75a79 100644 --- a/ld/testsuite/ld-elf/comm-data.exp +++ b/ld/testsuite/ld-elf/comm-data.exp @@ -68,6 +68,9 @@ if [istarget "*-*-hpux*"] { append AFLAGS " --defsym HPUX=1" } +# bfin does not currently support copy relocs. +setup_xfail "bfin-*-*" + setup_xfail "arm*-*-*" "ld/13802" # List targets here that keep copy relocs rather than eliminating diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index af0b091..2dfd0e8 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -70,6 +70,10 @@ if { ![istarget hppa64*-hpux*] } { run_ld_link_tests { {"Build shared library for pr14170" "-shared" "" "" "pr14170b.s" {} "pr14170.so" } + } + # bfin does not currently support copy relocs. + setup_xfail "bfin-*-*" + run_ld_link_tests { {"PR ld/14170" "tmpdir/pr14170a.o tmpdir/pr14170.so" "" "" "pr14170c.s" { } "pr14170" } @@ -103,6 +107,10 @@ if { [check_shared_lib_support] } then { {"Build pr17068b.a" "" "" "" {pr17068b.s pr17068e.s} {} "pr17068b.a"} + } + # bfin does not currently support copy relocs. + setup_xfail "bfin-*-*" + run_ld_link_tests { {"pr17068 link --as-needed lib in group" "--as-needed" "--start-group tmpdir/pr17068a.a tmpdir/pr17068.so tmpdir/pr17068b.a --end-group" "" {start.s pr17068.s} {} "pr17068"} @@ -111,6 +119,8 @@ if { [check_shared_lib_support] } then { setup_xfail "tic6x-*-*" # Fails on MIPS because ABI trickery means that a NULL reloc is also emitted. setup_xfail "mips*-*-*" + # Fails on bfin because relocations are not created. + setup_xfail "bfin-*-*" run_ld_link_tests { {"-Bsymbolic-functions" "-shared -Bsymbolic-functions" "" "" diff --git a/ld/testsuite/ld-elf/endsym.d b/ld/testsuite/ld-elf/endsym.d index 483cc83..eefdd43 100644 --- a/ld/testsuite/ld-elf/endsym.d +++ b/ld/testsuite/ld-elf/endsym.d @@ -3,7 +3,7 @@ #ld: --sort-common #nm: -n #notarget: hppa*-*-hpux* -#xfail: m68hc1*-* xgate-* +#xfail: m68hc1*-* xgate-* cr16-*-* crx-*-* dlx-*-* nds32*-*-* visium-*-* #... .* end diff --git a/ld/testsuite/ld-elf/var1.d b/ld/testsuite/ld-elf/var1.d index 718efb7..36a1f63 100644 --- a/ld/testsuite/ld-elf/var1.d +++ b/ld/testsuite/ld-elf/var1.d @@ -1,5 +1,6 @@ #ld: $srcdir/$subdir/var1.t --sort-section name #nm: -n +#xfail: d30v-*-* dlx-*-* ft32-*-* microblaze-*-* #... [0-9a-f]* D var1 diff --git a/ld/testsuite/ld-pe/pe.exp b/ld/testsuite/ld-pe/pe.exp index a31f6e7..8d86e8f 100644 --- a/ld/testsuite/ld-pe/pe.exp +++ b/ld/testsuite/ld-pe/pe.exp @@ -101,4 +101,6 @@ set foreign_sym_test { {{nm -C non-c-lang-syms.d}} "non-c-lang-syms.x"} } +# MCore rearranges symbol order. +setup_xfail mcore-*-pe run_ld_link_tests $foreign_sym_test |