3 # RUN: llvm-mc -filetype=obj -triple=powerpc64 %s -o %t
4 # RUN: ld.lld -r %t -o %t2
5 # RUN: llvm-objdump -s --section=.symtab %t2 | FileCheck %s
11 .type _start,@function
16 addis 2, 12, .TOC.-.Lfunc_gep0@ha
17 addi 2, 2, .TOC.-.Lfunc_gep0@l
19 .localentry _start, .Lfunc_lep0-.Lfunc_gep0
20 # The code below is not important, it just needs to access some
21 # global data or function, in order to use the TOC.
22 # In this case, it performs the following:
24 # Also note that this code is not intended to be run, but only
25 # to check if the linker will preserve the localentry info.
35 .size _start, .Lfunc_end0-.Lfunc_begin0
40 // We expect the st_other byte to
be 0x60:
41 // localentry
= 011 (gep
+ 2 instructions
), reserved
= 000,
42 // visibility
= 00 (STV_DEFAULT
)
43 // Currently
, llvm-objdump does
not support displaying
44 // st_other
's PPC64 specific flags, thus we check the
45 // result of the hexdump of .symtab section.
47 // CHECK: 0060 00000003 12600001 00000000 00000000