24 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux-gnu %s -o %t3# RUN: echo "SECTIONS { \4# RUN: .data 0x1000 : { *(.data) } \5# RUN: .got 0x2000 : { \6# RUN: LONG(0) \7# RUN: *(.got) \8# RUN: } \9# RUN: };" > %t.script10# RUN: ld.lld -shared -o %t.out --script %t.script %t11# RUN: llvm-objdump -s %t.out | FileCheck %s12.text13.global foo14foo:15 movl bar@GOT, %eax16.data17.local bar18bar:19 .zero 420# CHECK: Contents of section .data:21# CHECK-NEXT: 1000 0000000022# CHECK: Contents of section .got:23# CHECK-NEXT: 2000 00000000 0010000024