~ubuntu-branches/ubuntu/utopic/binutils-arm64-cross/utopic

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/ld/testsuite/ld-powerpc/tocopt4b.s

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-06-20 17:38:09 UTC
  • Revision ID: package-import@ubuntu.com-20130620173809-app8lzgvymy5fg6c
Tags: 0.7
Build-depend on binutils-source (>= 2.23.52.20130620-1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)