2 # Check creation of GOT entries for global symbols in case of executable
3 # file linking. Symbols defined in DSO should get entries in the global part
4 # of the GOT. Symbols defined in the executable itself should get local GOT
5 # entries and does not need a row in .dynsym table.
7 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \
8 # RUN: %S/Inputs/mips-dynamic.s -o %t.so.o
9 # RUN: ld.lld -shared %t.so.o -o %t.so
10 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
11 # RUN: ld.lld %t.o %t.so -o %t.exe
12 # RUN: llvm-readobj -dt -t -mips-plt-got %t.exe | FileCheck %s
17 # CHECK-NEXT: Value: 0x0
19 # CHECK-NEXT: Binding: Global
23 # CHECK-NEXT: Value: 0x20008
25 # CHECK-NEXT: Binding: Global
27 # CHECK: DynamicSymbols [
28 # CHECK-NOT: Name: bar
30 # CHECK: Local entries [
32 # CHECK-NEXT: Address:
33 # CHECK-NEXT: Access: -32744
34 # CHECK-NEXT: Initial: 0x20008
38 # CHECK-NEXT: Global entries [
40 # CHECK-NEXT: Address:
41 # CHECK-NEXT: Access: -32740
42 # CHECK-NEXT: Initial: 0x0
43 # CHECK-NEXT: Value: 0x0
44 # CHECK-NEXT: Type: None
45 # CHECK-NEXT: Section: Undefined
46 # CHECK-NEXT: Name: _foo@
54 lw $t0,%got(_foo)($gp)