diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-01-13 17:07:52 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-01-13 17:07:52 +0000 |
commit | 75e68ef97a85b6b649b5f7fc574238e6e13d402b (patch) | |
tree | 48c0066c944033171bfbb74d1f5d9a774ab0c0f6 /ld | |
parent | c4de7027e3081f32895dc41d121a96e9e6717128 (diff) | |
download | gdb-75e68ef97a85b6b649b5f7fc574238e6e13d402b.zip gdb-75e68ef97a85b6b649b5f7fc574238e6e13d402b.tar.gz gdb-75e68ef97a85b6b649b5f7fc574238e6e13d402b.tar.bz2 |
Add a testcase for PR ld/12356.
2011-01-13 H.J. Lu <hongjiu.lu@intel.com>
PR ld/12356
* ld-scripts/defined.exp: Run defined5.
* ld-scripts/defined5.d: New.
* ld-scripts/defined5.s: Likewise.
* ld-scripts/defined5.t: Likewise.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/defined.exp | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/defined5.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/defined5.s | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/defined5.t | 7 |
5 files changed, 32 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 61a6117..94c35e3 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,5 +1,14 @@ 2011-01-13 H.J. Lu <hongjiu.lu@intel.com> + PR ld/12356 + * ld-scripts/defined.exp: Run defined5. + + * ld-scripts/defined5.d: New. + * ld-scripts/defined5.s: Likewise. + * ld-scripts/defined5.t: Likewise. + +2011-01-13 H.J. Lu <hongjiu.lu@intel.com> + * ld-scripts/defined4.d: Xfail rs6000-*-aix*. Skip mips*-*-* and mmix-*-*. diff --git a/ld/testsuite/ld-scripts/defined.exp b/ld/testsuite/ld-scripts/defined.exp index 6d0c9d5..10f14da 100644 --- a/ld/testsuite/ld-scripts/defined.exp +++ b/ld/testsuite/ld-scripts/defined.exp @@ -67,4 +67,5 @@ set prms_id 0 run_dump_test "defined2" run_dump_test "defined3" run_dump_test "defined4" +run_dump_test "defined5" set LDFLAGS "$saved_LDFLAGS" diff --git a/ld/testsuite/ld-scripts/defined5.d b/ld/testsuite/ld-scripts/defined5.d new file mode 100644 index 0000000..3977c93 --- /dev/null +++ b/ld/testsuite/ld-scripts/defined5.d @@ -0,0 +1,9 @@ +#ld: -Tdefined5.t +#nm: -B +#source: defined5.s +#xfail: rs6000-*-aix* + +# Check that arithmetic on DEFINED works. +#... +0+1000 D defined +#pass diff --git a/ld/testsuite/ld-scripts/defined5.s b/ld/testsuite/ld-scripts/defined5.s new file mode 100644 index 0000000..592e54c --- /dev/null +++ b/ld/testsuite/ld-scripts/defined5.s @@ -0,0 +1,6 @@ + .globl defined + .data + .byte 0 + .section .data.cacheline_aligned +defined: + .byte 0 diff --git a/ld/testsuite/ld-scripts/defined5.t b/ld/testsuite/ld-scripts/defined5.t new file mode 100644 index 0000000..189da6b --- /dev/null +++ b/ld/testsuite/ld-scripts/defined5.t @@ -0,0 +1,7 @@ +defined = addr1; +SECTIONS { + .data.cacheline_aligned : { *(.data.cacheline_aligned) } + . = ALIGN (0x1000); + .data : { *(.data) } + addr1 = ADDR (.data); +} |