mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
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.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
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>
|
2011-01-13 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* ld-scripts/defined4.d: Xfail rs6000-*-aix*. Skip mips*-*-*
|
* ld-scripts/defined4.d: Xfail rs6000-*-aix*. Skip mips*-*-*
|
||||||
|
@ -67,4 +67,5 @@ set prms_id 0
|
|||||||
run_dump_test "defined2"
|
run_dump_test "defined2"
|
||||||
run_dump_test "defined3"
|
run_dump_test "defined3"
|
||||||
run_dump_test "defined4"
|
run_dump_test "defined4"
|
||||||
|
run_dump_test "defined5"
|
||||||
set LDFLAGS "$saved_LDFLAGS"
|
set LDFLAGS "$saved_LDFLAGS"
|
||||||
|
9
ld/testsuite/ld-scripts/defined5.d
Normal file
9
ld/testsuite/ld-scripts/defined5.d
Normal file
@ -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
|
6
ld/testsuite/ld-scripts/defined5.s
Normal file
6
ld/testsuite/ld-scripts/defined5.s
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.globl defined
|
||||||
|
.data
|
||||||
|
.byte 0
|
||||||
|
.section .data.cacheline_aligned
|
||||||
|
defined:
|
||||||
|
.byte 0
|
7
ld/testsuite/ld-scripts/defined5.t
Normal file
7
ld/testsuite/ld-scripts/defined5.t
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
defined = addr1;
|
||||||
|
SECTIONS {
|
||||||
|
.data.cacheline_aligned : { *(.data.cacheline_aligned) }
|
||||||
|
. = ALIGN (0x1000);
|
||||||
|
.data : { *(.data) }
|
||||||
|
addr1 = ADDR (.data);
|
||||||
|
}
|
Reference in New Issue
Block a user