diff options
Diffstat (limited to 'ld/testsuite/ld-scripts')
-rw-r--r-- | ld/testsuite/ld-scripts/expr.exp | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/pr14962-2.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/pr14962-2.t | 11 |
3 files changed, 22 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/expr.exp b/ld/testsuite/ld-scripts/expr.exp index 0f92d97..ee8da7f 100644 --- a/ld/testsuite/ld-scripts/expr.exp +++ b/ld/testsuite/ld-scripts/expr.exp @@ -25,3 +25,4 @@ run_dump_test expr2 run_dump_test sane1 run_dump_test assign-loc run_dump_test pr14962 +run_dump_test pr14962-2 diff --git a/ld/testsuite/ld-scripts/pr14962-2.d b/ld/testsuite/ld-scripts/pr14962-2.d new file mode 100644 index 0000000..5e71433 --- /dev/null +++ b/ld/testsuite/ld-scripts/pr14962-2.d @@ -0,0 +1,10 @@ +#ld: -T pr14962-2.t +#source: pr14962a.s +#nm: -n +#notarget: rx-*-* frv-linux + +#... +0+2000 [AT] _start +#... +0+2000 A x +#pass diff --git a/ld/testsuite/ld-scripts/pr14962-2.t b/ld/testsuite/ld-scripts/pr14962-2.t new file mode 100644 index 0000000..f2c603b --- /dev/null +++ b/ld/testsuite/ld-scripts/pr14962-2.t @@ -0,0 +1,11 @@ +TOTO = 4096; +TOTO += 4096; + +SECTIONS +{ + .text TOTO : + { + x = ABSOLUTE(TOTO); + *(*.text) + } +} |