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