[clang] Propagate -ftime-report to offload lto (#122143)
[llvm-project.git] / lld / test / ELF / linkerscript / got-write-offset.s
blob323da7b4a46b383bac5dc5637a6ab666a194b129
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux-gnu %s -o %t
3 # RUN: echo "SECTIONS { \
4 # RUN: .data 0x1000 : { *(.data) } \
5 # RUN: .got 0x2000 : { \
6 # RUN: LONG(0) \
7 # RUN: *(.got) \
8 # RUN: } \
9 # RUN: };" > %t.script
10 # RUN: ld.lld -shared -o %t.out --script %t.script %t
11 # RUN: llvm-objdump -s %t.out | FileCheck %s
12 .text
13 .global foo
14 foo:
15 movl bar@GOT, %eax
16 .data
17 .local bar
18 bar:
19 .zero 4
20 # CHECK: Contents of section .data:
21 # CHECK-NEXT: 1000 00000000
22 # CHECK: Contents of section .got:
23 # CHECK-NEXT: 2000 00000000 00100000