PR24511, nm should not mark symbols in .init_array as "t"
[external/binutils.git] / ld / testsuite / ld-scripts / pr18963.t
1 SECTIONS
2 {
3   . = 0x80000;
4   A = .;
5   .text :
6   {
7     _start = .;
8     *(.text)
9     . = 0x10000;
10   }
11   B = .;
12   .data :
13   {
14     *(.data)
15     . = 0x10000;
16   }
17   C = .;
18   .bss :
19   {
20     *(.bss)
21     . = 0x10000;
22   }
23   D = A - C + B;
24   E = A + B - C;
25   /DISCARD/ : {*(*)}
26 }
27
28 ASSERT(D == E, "Addition is not commutative");