Browse Source
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.gdb_7_3-branch
5 changed files with 32 additions and 0 deletions
@ -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 |
|||
@ -0,0 +1,6 @@ |
|||
.globl defined |
|||
.data |
|||
.byte 0 |
|||
.section .data.cacheline_aligned |
|||
defined: |
|||
.byte 0 |
|||
@ -0,0 +1,7 @@ |
|||
defined = addr1; |
|||
SECTIONS { |
|||
.data.cacheline_aligned : { *(.data.cacheline_aligned) } |
|||
. = ALIGN (0x1000); |
|||
.data : { *(.data) } |
|||
addr1 = ADDR (.data); |
|||
} |
|||
Loading…
Reference in new issue