* ld-elf/comm-data.exp: Run for *-*-gnu*.
[binutils.git] / ld / testsuite / ld-powerpc / tocopt4b.s
blobee77d10bfdc7e7fed0e0a3b0582c6a5b1d7b7823
1 .section .toc,"aw"
2 .globl xt
3 xt:
4 .quad x
6 # This testcase will fail with a warning "xt defined on removed toc entry"
7 # if a large-toc access like the following is added to this file, because
8 # toc analysis only considers toc accesses from the current object file.
9 # The small-toc access from tocopt4a.s doesn't cause xt entry to be marked
10 # !can_optimize. The testcase only passes because toc analysis considers
11 # *no* access from the current file as being sufficiently unusual to
12 # warrant keeping the toc entry. So, if you use global symbols on toc
13 # entries, don't mix code models.
15 # .text
16 # addis 9,2,xt@toc@ha
17 # ld 9,xt@toc@l(9)