Commit | Line | Data |
---|---|---|
0b65791f SC |
1 | ! Test gc-sections and datalabel references. |
2 | ! | |
3 | ! Datalabel reference to symbol in section .text2 should | |
4 | ! prevent .text2 from being discarded. | |
5 | ! Section .spurious can be discarded. | |
6 | .mode SHmedia | |
7 | ||
8 | .text | |
9 | .global start | |
10 | .global foo | |
11 | start: .long datalabel foo | |
12 | ||
13 | .section .text2,"ax" | |
14 | foo: .long 23 | |
15 | ||
16 | .section .spurious,"ax" | |
17 | .long 17 |