diff options
Diffstat (limited to 'ld/testsuite/ld-scripts')
-rw-r--r-- | ld/testsuite/ld-scripts/libpr33265-1.a | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/libpr33265-2.a | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/libpr33265-3a.a | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/libpr33265-3b.a | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/libpr33265-3c.a | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/linker-script-not-found.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/pr24576-1.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/pr24576-2.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/pr33265-1.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/pr33265-2.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/pr33265-3.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/provide-8.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/rgn-at3.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/script.exp | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/sort_b_n_a-2.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/sort_no-2.d | 2 |
16 files changed, 36 insertions, 8 deletions
diff --git a/ld/testsuite/ld-scripts/libpr33265-1.a b/ld/testsuite/ld-scripts/libpr33265-1.a new file mode 100644 index 0000000..eab1008 --- /dev/null +++ b/ld/testsuite/ld-scripts/libpr33265-1.a @@ -0,0 +1 @@ +GROUP ( libpr33265-1.a ) diff --git a/ld/testsuite/ld-scripts/libpr33265-2.a b/ld/testsuite/ld-scripts/libpr33265-2.a new file mode 100644 index 0000000..10f4b91 --- /dev/null +++ b/ld/testsuite/ld-scripts/libpr33265-2.a @@ -0,0 +1 @@ +GROUP ( ./././././/libpr33265-2.a ) diff --git a/ld/testsuite/ld-scripts/libpr33265-3a.a b/ld/testsuite/ld-scripts/libpr33265-3a.a new file mode 100644 index 0000000..bdd4f9a --- /dev/null +++ b/ld/testsuite/ld-scripts/libpr33265-3a.a @@ -0,0 +1 @@ +GROUP ( ./././././/libpr33265-3b.a ) diff --git a/ld/testsuite/ld-scripts/libpr33265-3b.a b/ld/testsuite/ld-scripts/libpr33265-3b.a new file mode 100644 index 0000000..7458328 --- /dev/null +++ b/ld/testsuite/ld-scripts/libpr33265-3b.a @@ -0,0 +1 @@ +GROUP ( ./././././/libpr33265-3c.a ) diff --git a/ld/testsuite/ld-scripts/libpr33265-3c.a b/ld/testsuite/ld-scripts/libpr33265-3c.a new file mode 100644 index 0000000..4583c09 --- /dev/null +++ b/ld/testsuite/ld-scripts/libpr33265-3c.a @@ -0,0 +1 @@ +GROUP ( libpr33265-3a.a ) diff --git a/ld/testsuite/ld-scripts/linker-script-not-found.d b/ld/testsuite/ld-scripts/linker-script-not-found.d new file mode 100644 index 0000000..61d4d8a --- /dev/null +++ b/ld/testsuite/ld-scripts/linker-script-not-found.d @@ -0,0 +1,3 @@ +#source: default-script.s +#ld: -T misspelled.ld +#error: cannot open linker script file misspelled\.ld: .*\Z diff --git a/ld/testsuite/ld-scripts/pr24576-1.d b/ld/testsuite/ld-scripts/pr24576-1.d new file mode 100644 index 0000000..6cc7621 --- /dev/null +++ b/ld/testsuite/ld-scripts/pr24576-1.d @@ -0,0 +1,3 @@ +#source: default-script.s +#ld: -defsym _START=0x800 -T default-script.t -T default-script.t +#error: .*default-script.t\)' appears multiple times diff --git a/ld/testsuite/ld-scripts/pr24576-2.d b/ld/testsuite/ld-scripts/pr24576-2.d new file mode 100644 index 0000000..2d26ab3 --- /dev/null +++ b/ld/testsuite/ld-scripts/pr24576-2.d @@ -0,0 +1,3 @@ +#source: default-script.s +#ld: -defsym _START=0x800 -T ././/default-script.t -T default-script.t +#error: .*default-script.t\)' appears multiple times diff --git a/ld/testsuite/ld-scripts/pr33265-1.d b/ld/testsuite/ld-scripts/pr33265-1.d new file mode 100644 index 0000000..b0df33d --- /dev/null +++ b/ld/testsuite/ld-scripts/pr33265-1.d @@ -0,0 +1,3 @@ +#source: start.s +#ld: -r --whole-archive -lpr33265-1 +#error: .*group nested too deeply.* diff --git a/ld/testsuite/ld-scripts/pr33265-2.d b/ld/testsuite/ld-scripts/pr33265-2.d new file mode 100644 index 0000000..6e9da74 --- /dev/null +++ b/ld/testsuite/ld-scripts/pr33265-2.d @@ -0,0 +1,3 @@ +#source: start.s +#ld: -r --whole-archive -lpr33265-2 +#error: .*group nested too deeply.* diff --git a/ld/testsuite/ld-scripts/pr33265-3.d b/ld/testsuite/ld-scripts/pr33265-3.d new file mode 100644 index 0000000..a2f42fa --- /dev/null +++ b/ld/testsuite/ld-scripts/pr33265-3.d @@ -0,0 +1,3 @@ +#source: start.s +#ld: -r --whole-archive -lpr33265-3a +#error: .*group nested too deeply.* diff --git a/ld/testsuite/ld-scripts/provide-8.d b/ld/testsuite/ld-scripts/provide-8.d index 1dd5553..250b044 100644 --- a/ld/testsuite/ld-scripts/provide-8.d +++ b/ld/testsuite/ld-scripts/provide-8.d @@ -1,7 +1,9 @@ #source: provide-5.s #ld: -T provide-8.t #nm: -B -#xfail: mmix-*-* *-*-pe spu-*-* *-*-mingw* *-*-cygwin +#xfail: mmix-*-* spu-*-* +# Placing a symbol outside of the image isn't well-defined in PE. +#notarget: *-*-pe *-*-mingw* *-*-cygwin #... 0+4000 D __FOO diff --git a/ld/testsuite/ld-scripts/rgn-at3.d b/ld/testsuite/ld-scripts/rgn-at3.d index b0ea08a..1d21956 100644 --- a/ld/testsuite/ld-scripts/rgn-at3.d +++ b/ld/testsuite/ld-scripts/rgn-at3.d @@ -2,13 +2,9 @@ # source: rgn-at.s # ld: -T rgn-at3.t # objdump: -w -h -# xfail: rx-*-* *-*-nacl* +# xfail: rx-*-* # FAILS on the RX because the linker has to set LMA == VMA for the # Renesas loader. -# FAILs on NaCl targets because the linker extends the first segment -# to fill out the page, making its p_vaddr+p_memsz cover the sh_addr -# of .bss too, which makes BFD compute its LMA from the p_paddr of the -# text segment. .*: file format .* diff --git a/ld/testsuite/ld-scripts/script.exp b/ld/testsuite/ld-scripts/script.exp index 5206563..7a23f43 100644 --- a/ld/testsuite/ld-scripts/script.exp +++ b/ld/testsuite/ld-scripts/script.exp @@ -233,9 +233,16 @@ run_dump_test "pr20302" run_dump_test "output-section-types" run_dump_test "ld-version" run_dump_test "ld-version-2" +run_dump_test "pr24576-1" +run_dump_test "pr24576-2" +run_dump_test "linker-script-not-found" run_dump_test "segment-start" {{name (default)}} run_dump_test "segment-start" {{name (overridden)} \ {ld -Ttext-segment=0x10000000}} +run_dump_test "pr33265-1" +run_dump_test "pr33265-2" +run_dump_test "pr33265-3" + set LDFLAGS $old_LDFLAGS diff --git a/ld/testsuite/ld-scripts/sort_b_n_a-2.d b/ld/testsuite/ld-scripts/sort_b_n_a-2.d index 4c9d8fe..2fd920d 100644 --- a/ld/testsuite/ld-scripts/sort_b_n_a-2.d +++ b/ld/testsuite/ld-scripts/sort_b_n_a-2.d @@ -1,7 +1,7 @@ #source: sort_n_a-a.s #source: sort_n_a-b.s #ld: -T sort_b_n_a.t --sort-section name -#name: SORT_BY_NAME(SORT_BY_ALIGNMENT()) --sort-section alignment +#name: SORT_BY_NAME(SORT_BY_ALIGNMENT()) --sort-section name #nm: -n #... diff --git a/ld/testsuite/ld-scripts/sort_no-2.d b/ld/testsuite/ld-scripts/sort_no-2.d index e0943d5..c85cc34 100644 --- a/ld/testsuite/ld-scripts/sort_no-2.d +++ b/ld/testsuite/ld-scripts/sort_no-2.d @@ -1,6 +1,6 @@ #source: sort_b_a.s #ld: -T sort_no.t -#name: no SORT_BY_NAME/SORT_BY_ALIGNMENT/SORT +#name: no SORT_BY_NAME/SORT_BY_ALIGNMENT/SORT (2) #nm: -n #... |