*** empty log message ***
[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 }
9 /* Same for alignment at beginning and end. */
10 .text2 ALIGN (4096) :
75ff4589 11 {
75ff4589 12 *(.text2)
bdd87c77 13 . = ALIGN (4096);
75ff4589 14 }
bdd87c77
AM
15 /* Same for alignment just at end, although we need to be careful in
16 the expression used to align. */
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.226807 seconds and 4 git commands to generate.