Extend PE matching regexp in PR 19457 test to match cygwin and mingw targets.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-scripts / empty-aligned.t
CommitLineData
75ff4589
L
1SECTIONS
2{
3 .text : { *(.text) }
bdd87c77
AM
4 /* Alignment at beginning shouldn't result in empty section being kept. */
5 .text1 ALIGN (4096) :
6 {
7 *(.text1)
8 }
2edab91c
AM
9 /* Same for alignment at beginning and end, although we need to be
10 careful in the expression used to align. */
bdd87c77 11 .text2 ALIGN (4096) :
75ff4589 12 {
75ff4589 13 *(.text2)
2edab91c 14 . = ALIGN (. != 0 ? 4096 : 1);
75ff4589 15 }
2edab91c 16 /* Same for alignment just at end. */
75ff4589
L
17 .text3 :
18 {
19 *(.text3)
bdd87c77
AM
20 . = ALIGN (. != 0 ? 4096 : 1);
21 }
22 /* Same when setting vma and lma. This also shouldn't result in
23 .text3 being kept. */
24 .text4 ADDR (.text3) + SIZEOF (.text3) + 8192 : AT (LOADADDR (.text3))
25 {
26 *(.text4)
75ff4589 27 }
8bf3b8c2 28 /DISCARD/ : { *(*) }
75ff4589 29}
This page took 0.44435 seconds and 4 git commands to generate.