ld/x86: Update -z report-relative-reloc
[binutils-gdb.git] / ld / testsuite / ld-scripts / pr18963.t
1 SECTIONS
2 {
3 . = 0x800;
4 A = .;
5 .text :
6 {
7 _start = .;
8 *(.text)
9 . = 0x100;
10 }
11 B = .;
12 .data :
13 {
14 *(.data)
15 . = 0x100;
16 }
17 C = .;
18 .bss :
19 {
20 *(.bss)
21 . = 0x100;
22 }
23 D = A - C + B;
24 E = A + B - C;
25 /DISCARD/ : {*(*)}
26 }
27
28 ASSERT(D == E, "Addition is not commutative");