Check incompatible existing default symbol definition
[deliverable/binutils-gdb.git] / ld / testsuite / ld-powerpc / tocopt4b.s
1 .section .toc,"aw"
2 .globl xt
3 xt:
4 .quad x
5 #
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.
14 #
15 # .text
16 # addis 9,2,xt@toc@ha
17 # ld 9,xt@toc@l(9)
This page took 0.03176 seconds and 4 git commands to generate.