4deb240f7bcc60a89e32c531c771633c5545539c
[deliverable/binutils-gdb.git] / ld / testsuite / ld-scripts / empty-aligned.t
1 SECTIONS
2 {
3 .text : { *(.text) }
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) :
11 {
12 *(.text2)
13 . = ALIGN (4096);
14 }
15 /* Same for alignment just at end, although we need to be careful in
16 the expression used to align. */
17 .text3 :
18 {
19 *(.text3)
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)
27 }
28 .data : { *(.data) }
29 .bss : { *(.bss) }
30 }
This page took 0.034661 seconds and 3 git commands to generate.